P
Protoman
I have this file: example.hpp
Will Dev-Cpp (or any other compiler) accept this?: #include "cexample"
Thanks!!!
Will Dev-Cpp (or any other compiler) accept this?: #include "cexample"
Thanks!!!
I have this file: example.hpp
Will Dev-Cpp (or any other compiler) accept this?: #include "cexample"
Thanks!!!
If the file cexample exists! What does example.hpp have to do with it?
#include does exactly what it says on the tin.
Andre said:The OP is probably getting confused with what:
#include <string.h>
and
#include <cstring>
Have to do with each other, and does it apply to user-supplied include
files (such as example.hpp).
Answer is... no, if you don't supply a file extension on the #include
statment, the compiler (or at least no compiler that I am aware of) will
not automatically add _anything_ to the filename. It will attempt to
include exactly the name you specified.
Protoman said:Then can I name the file "cexample"? and it'll work?
Then can I name the file "cexample"? and it'll work?
Then can I name the file "cexample"? and it'll work?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.