
Newbie source code management question!
Hi guys, was wondering if I could get some help or a couple of links to any sites that explain how to seperate your code up into seperate files, .h files etc and how to include them in your projects!
I would like to be able to have several different files for related functions and include them in any of my projects - I know this is probably simple but I just cant figure it out properly!
Any links or comments would be very welcome!
Thanks a lot,
Adam

http://www.gamedev.net/reference/programming/features/orgfiles/
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Thanks!
So if I split functions into a file called "test.cpp" and it has a header file "test.h", do I just #include <test.h> in my project and it will auto use test.cpp too or do I have to specify both files?
Thanks again, Adam
[edited by - WoolyUK on October 9, 2002 5:38:17 AM]
So if I split functions into a file called "test.cpp" and it has a header file "test.h", do I just #include <test.h> in my project and it will auto use test.cpp too or do I have to specify both files?
Thanks again, Adam
[edited by - WoolyUK on October 9, 2002 5:38:17 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement