Test if stdin has input for C++ (windows and/or linux)

后端 未结 3 938
别跟我提以往
别跟我提以往 2020-12-03 17:45

I basically want to test if stdin has input (like if you echo and pipe it). I have found solutions that work, but they are ugly, and I like my solutions to be clean.

3条回答
提交回复
热议问题