answersLogoWhite

0

cin.clear();

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What are some different ways to clear the input buffer in C and Cpp?

In C++ we clear an input buffer as follows: std::cin.clear(); // clear the error state (if any) std::cin.ignore (numeric_limits<streamsize>::max()); // read and ignore everything until EOF


How do you read input buffer of keyboard using C?

scanf();


What is the header for basic input or output in C Plus Plus?

For basic input and output in C++: #include


How do you alternate the input numbers using for loop in c plus plus?

Input a variable.


How do you enter a sentence as input in c plus plus?

Use the C++ getline() function from the standard library.


How can you get c and c plus plus output statements to work together?

The C and C++ library routines for output might, or might not, include use of different buffers. If they are the same buffer (unlikely) then you can simply intermix the techniques. If they are not the same buffer then you need to do a flush sequence between techniques.


Input output function in c plus plus?

input is the << operator and output is the >> operator


What is clear in c plus plus?

clear() is an inbuilt function defined in c++ defined in conio.h. It is used for clearing the console. The systax is:clear();


How do you check a user's text input in C plus plus?

Use an SLR parser algorithm.


Is cin an output identifier in c plus plus?

No. In C++ with <iostream>, cin is a prefedined class that represents stdin, so it is an input identifier.


What are file modes in c plus plus?

I guess you mean either input/output/inout/append or binary/text.


How you can use two input in a single statement in c plus plus?

cout<<"______": cin >>__>>__; [example cout<<"enter no."; cin>>a>>b; ]