Codeblocks and C++
reddit.com·12w·

I’ve just started again with this stuff. I took an Intro To Programming class a while ago and am going back thru stuff for the next level class which will be next semester.

I dont understand the basics of files


EDIT:

To do this like a programmer would does it make sense to have the main.cpp file then for example create 6 more files 3 .cpp and 3 .h for 3 separate classes, that way I could isolate each class but still use them through objects in the main.cpp? Is this normal? Idk what the fuck I’m doing

EDIT OVER - - -

I created code in a file called main.cpp I understand that you can create other files In main.cpp I made a class with member variables and 2 member functions Inside the main() I used a constructor when creating an object I then called a member function that …

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help