does the cin.seekg(0,std::ios::beg) work on standard input? or is there even such a function where i can re-access the beginning of the input after already reading it ? thank you in advance
Asked
Active
Viewed 22 times
0
-
It works on standard input if standard input is a file. – melpomene May 28 '17 at 15:13
-
@melpomene is it possible to put the standard input (which is not a file) in a file so I can access it? – New dragon May 28 '17 at 15:17