Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

entering char in int c++ avoid loop

cin.clear();
cin.ignore(100, '
'); //100 --> asks cin to discard 100 characters from the input stream.
 
PREVIOUS NEXT
Tagged: #entering #char #int #avoid #loop
ADD COMMENT
Topic
Name
6+4 =