Absolute newbie question

  • Thread starter Thread starter bm1968
  • Start date Start date
B

bm1968

Sorry, I have an absolute newbie question...

Can you please tell me what I'm doing wrong here? Compiler says "Missing
";" before '&&' and when I click the error, it points to the first line
of the code below

if ( lLeft > 0 ) && ( lTop > 0 ) && ( lWidth > 0 ) && ( lHeight > 0)
{

//DoSomething;

if( myaverage->total == 0)
{
std::cout<<"\a"<<endl;
}

//DoSomething;
}

Thanks a lot!
BM
 
Compiler says "Missing
";" before '&&' and when I click the error, it points to the first line
of the code below

Look at the *preceding* line(s) for a missing semi-colon.

- Wayne

- Wayne A. King
(e-mail address removed)
 
Sorry, I have an absolute newbie question...

Can you please tell me what I'm doing wrong here? Compiler says
"Missing ";" before '&&' and when I click the error, it points to
the first line of the code below

if ( lLeft > 0 ) && ( lTop > 0 ) && ( lWidth > 0 ) && ( lHeight > 0)

The condition in the if-statement has to be enclosed in a set of
parenthesis.
{

//DoSomething;

if( myaverage->total == 0)

Just like here!


Bo Persson
 
Back
Top