If statement help.

What is the proper form of the if statement?

if statement

or

if (statement)

Also, what is better?

if (statement == 1)

cout << "";
cin.get();

else

cout << "";
cin.get();


or

if (statement == 1) {

cout <<"";
cin.get();

}

else {

cout << "";
cin.get();

}

One more thing:

for (a < 1, a <= 2, a++)
{

cout <<a;
cout <<i;

} or };


Thanks in advance to all who reply to this and I apologize for this noob question.
Last edited on
Last edited on
Topic archived. No new replies allowed.