I am using DEV GNU c++ compiler on windows 7 OS. I need to know how a program with more than one source file can be compiled.
here is example,
#FILE1
void f1()
{
printf("this is another file under same program");
}
#FILE2
int main()
{
f1();
return 0;
}
Actually I need this to test how static, extern class specifier works with more than one file. So only I have to learn now how works with more than one files in a single program in C..
Thanks advance
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…