samedi 22 septembre 2018

How to use && operators in c++

How do I use the && operator in c++? When I try to use it, I enter this code:

if (timeEntered >= 0) && (timeEntered !> 5) {
        cout << "E";
}

But, for some reason it doesn't work. It gives me the error 'expected identifier'. Does anyone know how to fix this? Thank you!

Aucun commentaire:

Enregistrer un commentaire