Hey, I’m trying to put a c++ project together using Dev-c++. Is there any reason why I can’t define 2 NEW different classes in different .h files in the same project?
sirkraven
0
Newbie Poster
Recommended Answers
Jump to Post>Is there any reason why I can’t define 2 NEW different classes in different .h files in the same project?
No. The only reason for not doing this is organization, if you have classes in their own separate source and header files, the code, and thus the project, tends to …
Jump to Post> where do you recomend putting in the line
At the top of every file that needs to use the functions/classes that are declared or defined in the header.
All 5 Replies
John A
1,896
Vampirical Lurker
Team Colleague
sirkraven
0
Newbie Poster
John A
1,896
Vampirical Lurker
Team Colleague
sirkraven
0
Newbie Poster
John A
1,896
Vampirical Lurker
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.