P
pentiumPunk
for some reason i thought i could have more if statements than else
statements.
if (!inputFile)
{
cerr<<"file not found";
}
if (something)
{
do operation;
}
else
{
do somethingElse;
}
in g++, i get an error message saying "parse error before else" which
translated to visual c++ means not same amout of elses as if's. i didnt know
that was illegal. was i wrong?
statements.
if (!inputFile)
{
cerr<<"file not found";
}
if (something)
{
do operation;
}
else
{
do somethingElse;
}
in g++, i get an error message saying "parse error before else" which
translated to visual c++ means not same amout of elses as if's. i didnt know
that was illegal. was i wrong?