Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>ios::clear</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ios::clear

Usage

   #include <iostream.hpp>
   void ios::clear(int new_value = 0);

Description

   Sets a new value for the error state variable.

Example 

   double d;

   cin >> d;
   if (cin.fail()) {
       cout << "try again\n";
       cin.clear();
       cin >> d;
   }





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson