Hello,
I am trying to compile some code, which I believe is standard c or c++, but i get quite a few errors.
example:
void test ( int& d)
{
d= d+2;
}
main
{
int doo= 0;
test (doo);
}
it gives me these errors:
expected a ")"
identifier "d" is unidentified , which it clearly is and
unnamed prototyped parameters not allowed when body is present
another example:
bool t = false;
identifier "bool" is undefined
another example would be
for ( int i = 0; ..... etc etc)
wont work unless i is defined outside the for loop with volatile keyword i.e. volatile int i = 0 ,
is this how c/c++ work, or I am wrong or my compiler is worng?
Thank you