Fix Please

This is a discussion on Fix Please within the C++ Programming forums, part of the General Programming Boards category; Okay i can't fix it with the limited knowledge i have... please someone help
Code:
#include <iostream>
using namespace std;
...

>> if (number)!(1&&2);
This line has a syntactic error and a semantic error. Lookup how to use && in your book/tutorial and pay attention to the difference between the example and your code. Then lookup the syntax for the if /else if statements.

if (!(1||2))
This is always false. Use the equality operator and actually make a comparison with your number.

if (number>0 && number<2)
While not as straight forward, it's right. The only number more than zero and less than two is one. It's also lame, because the game cheats. Use random numbers from a generator, Nestor.

if (!(1||2))
This is always false. Use the equality operator and actually make a comparison with your number.

if (number>0 && number<2)
While not as straight forward, it's right. The only number more than zero and less than two is one. It's also lame, because the game cheats. Use random numbers from a generator, Nestor.

Listem men, i started programing yesterday....well today 1 am, i havn't gotten as far as a random numbers generator:P but if you are bored you can explain how it can be a random number generator if the computer can't think for itself?