Hi guys, it's me the newbie again =) I've a new question. Here's a piece of code I copied from a book:
It seems that when I didn't end this line of command:Code://This programme shows an example of the AND && expression
#include <iostream>
int main()
{
using namespace std;
short number1 = 10;
char word = 't';
if (number1 == 10 && word == 't')
cout<< "Both sides of the AND expression are True";
cin.get();
return 0;
}
with a semi-colon, the whole script can still run and the main function is working. Why is that so ??? Thanks in advance guys :DCode:if (number1 == 10 && word == 't')