Advertisement

include other code.

Started by October 25, 2003 01:54 PM
4 comments, last by Soul Wound 21 years, 4 months ago
Hi, I know my question is very nob but I would know how to include file as .h, .c or .cpp in my source code. Thank you
#include "myfile.h"

This assumes that myfile.h is in your executable directory.
Advertisement
Is #include "file" enought?
http://www.gamedev.net/reference/programming/features/orgfiles/ has everything you need to know.

By the way, you #include headers, but you do not #include source files.

(Yes, I am aware of the export/template issue, but this is hardly a concern to someone who is still learning the very basics.)
ok, thank you

[edited by - soul wound on October 25, 2003 3:14:06 PM]
Whatever you do, do not include .c and .cpp files...It could make your computer explode! But seriously, it will lead you to a boatload of headaches.

______________________________________________________________
The Phoenix shall arise from the ashes... ThunderHawk -- ¦þ
MySite
______________________________________________________________
______________________________________________________________________________________The Phoenix shall arise from the ashes... ThunderHawk -- ¦þ"So. Any n00bs need some pointers? I have a std::vector<n00b*> right here..." - ZahlmanMySite | Forum FAQ | File Formats______________________________________________________________________________________

This topic is closed to new replies.

Advertisement