R
Roman Töngi
In c++ there does not exist an if-statement as for example in Visual Basic,
does it?
//VB-analogy:
if (cond.)
statement;
else if (cond.)
statement;
else
statement;
In c++ only nested if-else-constructs are possible, right?
So, the above example would have the following logic in c++:
if (cond.)
statement;
else
if (cond.)
statement;
else
statement;
which is different from the first. Have I grasped this correctly?
Thanks
does it?
//VB-analogy:
if (cond.)
statement;
else if (cond.)
statement;
else
statement;
In c++ only nested if-else-constructs are possible, right?
So, the above example would have the following logic in c++:
if (cond.)
statement;
else
if (cond.)
statement;
else
statement;
which is different from the first. Have I grasped this correctly?
Thanks