M
Michael
Hi i recently came across some code that looked like this which I've never
ever seen before! I appreicate it may be 'c' but is it valid in c++??
//main.c
int main()
{
int a;
int b;
//Get values for a & b;
if(a==1)
{
#include "DoA.c"
}
else
{
#include "DoB.c"
}
// More stuff
return 0;
}
//DoA.c
b =4;
//DoB.c
b=6;
Is this valid? Or just obscure?
ever seen before! I appreicate it may be 'c' but is it valid in c++??
//main.c
int main()
{
int a;
int b;
//Get values for a & b;
if(a==1)
{
#include "DoA.c"
}
else
{
#include "DoB.c"
}
// More stuff
return 0;
}
//DoA.c
b =4;
//DoB.c
b=6;
Is this valid? Or just obscure?