Search
 
SCRIPT & CODE EXAMPLE
 

CPP

detect end of user input cpp

while (cin.peek() != EOF) {
  // To do your stuff...
  // NOTE: peek() will set failbit when peeking end of stream and return EOF(-1).
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: lutris 
Cpp :: debugging c/c++ with visual studio code 
Cpp :: how to delete a file in cpp 
Cpp :: cout hex c++ 
Cpp :: how to initialize array with new in c++ 
Cpp :: c++ keyboard input 
Cpp :: c++ pi float 
Cpp :: remove from vector by value c++ 
Cpp :: initialize vector of vector c++ 
Cpp :: sort vector struct c++ 
Cpp :: palindrome checker in c++ 
Cpp :: for loop f# 
Cpp :: cpp create lambda with recursion 
Cpp :: C++ Vector Operation Add Element 
Cpp :: bee 1002 solution 
Cpp :: char to integer c++ 
Cpp :: implementing split function in c++ 
Cpp :: c++ 14 for sublime windoes build system 
Cpp :: c detect os 
Cpp :: how to make Dijkstra in c++ 
Cpp :: c++ Program to check if a given year is leap year 
Cpp :: quicksort 
Cpp :: c++ multiple inheritance 
Cpp :: attention nlp 
Cpp :: c++ random number 
Cpp :: template c++ 
Cpp :: vector of threads thread pool c++ 
Cpp :: stack class implementation to file unix-style in c++ 
Cpp :: converting decimal to binary in cpp 
Cpp :: C++ program to sizes of data types 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =