No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi if i want to say if (int <= 0 || int is not a number) how could i do this i want to make sure that a positive number is input not a negative number or word or symbol hope this makes sense | |
basically if i ask for an string i.e. i ask someone a question cout<< "is this correct yes or no?"; cin >> a; and then a number is input the program just goes crazy how do i solve this?? | |
I am a noob therefore this question is hopefully very easy for someone to answer! in my code i have asked a question if the answer is yes i want the program to continue onto the next question (this is fine) if however the answer no or enter an incorrect … |