Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[C++] Moving classes to header files
#5
No... You include headers, not other C files.

Both of your first two chunks would be in a single header because it's just a single class definition. Your third chunk would include that header, serve as the main entry point into the app and just happens to do nothing but call the instantiation member of your included class before it exits.
Reply


Messages In This Thread
[C++] Moving classes to header files - by Dusk - 2010-05-07, 09:34 PM
[C++] Moving classes to header files - by Eos - 2010-05-07, 09:41 PM
[C++] Moving classes to header files - by Eos - 2010-05-08, 12:40 AM
[C++] Moving classes to header files - by Russt - 2010-05-09, 12:18 AM
[C++] Moving classes to header files - by Eos - 2010-05-09, 12:25 AM
[C++] Moving classes to header files - by Spaz - 2010-05-09, 01:08 AM
[C++] Moving classes to header files - by Eos - 2010-05-09, 01:13 AM
[C++] Moving classes to header files - by Russt - 2010-05-20, 09:55 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)