Hi,
Any one can help me find out, why I got the error on this program please.
attached my source code.
This is a discussion on c/c++ within the C Programming forums, part of the General Programming Boards category; Hi, Any one can help me find out, why I got the error on this program please. attached my source ...
Hi,
Any one can help me find out, why I got the error on this program please.
attached my source code.
Last edited by thdinh; 04-02-2003 at 03:48 AM.
#include "stack.h"
#include "fileio.c"
#include "stack.c"
#include "string.c"
are these files standard?? i dont seem to have them.
What error? Be a bit more specific...
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
They the stack.h string.h and fileio.h are standard headders.Originally posted by GhOsT_DeStRoYeR
#include "stack.h"
#include "fileio.c"
#include "stack.c"
#include "string.c"
are these files standard?? i dont seem to have them.
Including .c files usualy makes compiers not very happy.
Why are you including the .c files any ways..
And the #include "" will include a non-standard headder
I would relace the #include ""'s with
#include <stack.h>
#include <fileio.h>
#include <string.h>
HTH
Maybe the Posix standard, but certainly not the C standard. The C standard library only uses string.h from that list.They the stack.h string.h and fileio.h are standard headders.
Yea, including source files is a bad idea. Linking isn't done with the preprocessor.Including .c files usualy makes compiers not very happy.![]()
I though that fileio was standard for C++. But then I dont code in C++ so Im not farmilar with the C++ standard libs. The title of the thread is why I looked included the fileio.h
Thanks