Hello, Im writing a program on a Unix machine which accepts input using only "cin >>", the inputs look something like this:
hello world test out
Once I have read "hello" using "cin >>" I need to check if there are more strings (such as "world", "test", and "out", excluding spaces) within this input stream without having to read-in the stream, is there a method of some sort to do this?
or, to rephrase the above question, is there a way to check if the input stream is empty (ignoring spaces) after reading in some of the strings?