Re: [Dev-C++] include files those with a .h?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Fabien V. <fv...@fr...> - 2000-12-29 22:37:03
|
Hi. You can include whatever file you want. The files don't have to end with the .h extension. However, the file you include must contain datas that are understandable by the Compiler. The .h extension is here just to say that it is a HEADER file. To include files you 2 ways: #include <stdio.h> Using < > you tell the compiler that the file is stored in the include folder of Dev C++. If your files is somewhere else you use: #include "C:/SOMEWHERE/myfile.txt" Between the " " you put the complete path where your file is. That's all. VIVES Fabien. fv...@fr... http://fvives.free.fr ( Ti92 Fargo programming...). > ok i've got my dev cpp ver 4.0 ready to boogy with! > > cos i'm a novice at the moment bear with me..simple questions first. > > all the include files for a program end with .h correct? > > so when you compile a program and it has errors saying it can not find the > .h files you have them stored on the hard drive in the wrong place! > > So saying that do all the include files have to be in the dev cpp include > directory? or is there a simpler easier way to go about it? > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |