Code::Blocks
Just got it, ive been watching some tutorials and stuff but they
dont seem to cover what i need. Can anyone please explain to me
how to use the " if " command?
14 years, 16 weeks ago
|
Digitx

Joined: 10th Jul 2009
Posts: 250
Re: Code::Blocks
if isn't a command, it's a logic term used in programming.
example:
if(i > 10)
{
cout >> "i is more than 10";
}
that means if the variable i is more than 10, it will print the string.
14 years, 16 weeks ago
| |