Advertisement
ivorakitin

shmem

Dec 18th, 2024 (edited)
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | Source Code | 0 0
  1. bool checkCin()
  2. {
  3.     if (cin)
  4.     {
  5.         cin.clear();
  6.         cin.ignore(numeric_limits<streamsize>::max(), '\n');
  7.         return true;           
  8.     }
  9.     else
  10.     {
  11.         cin.clear();
  12.         cin.ignore(numeric_limits<streamsize>::max(), '\n');
  13.         return false;
  14.     }  
  15. }
Tags: Shm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement