Just like the topic says, I was wondering if there are any different ways to write IF statements besides the following:
if(x > 0)
{
cout << "X is Greater than 0";
}
else
{
cout << "X is Less than 0";
}
OR...
cout << (x > 0 ? "X is Greater than 0" : "X is Less than 0");
OR...
x > 10 ? cout << "It is Greater than 0" : cout << "It is Below 10";
Thanks for the Help!!
Mike