Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~274 People Reached
Favorite Forums
Favorite Tags
c++ x 5
Member Avatar for afromong

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

Member Avatar for afromong
0
81
Member Avatar for afromong

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??

Member Avatar for stilllearning
0
87
Member Avatar for afromong

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 …

Member Avatar for chunalt787
0
106