Hello.
I have a piece of code:
int foo;
for(;;)
{
foo=someFunc(sh moo);
(foo==10) ? break : cout<<foo<<endl ;
}
And compiler throw error:
"ISO C++ forbids omitting the middle term of a ?: expression"
So what did i omit here?
I use g++ 3.3.5 with -Wall -pedantic.
--
empty
I have a piece of code:
int foo;
for(;;)
{
foo=someFunc(sh moo);
(foo==10) ? break : cout<<foo<<endl ;
}
And compiler throw error:
"ISO C++ forbids omitting the middle term of a ?: expression"
So what did i omit here?
I use g++ 3.3.5 with -Wall -pedantic.
--
empty
Comment