In C language, I can stop input by keyboard using Ctrl-Z to indicate finish of input. How can I indicate the same result using the stream of C++, cin ??