need a similar function as "getchar()"
-
if I am using getchar(), then the execution of the program will stop here if no input is given. could someone help me figure out if there is another way? Aim: while any input is given, save it to a variable, if not, keep on executing program without stop. I have used multithread, but it did not work well when I put it running at background. I am using C
-
if I am using getchar(), then the execution of the program will stop here if no input is given. could someone help me figure out if there is another way? Aim: while any input is given, save it to a variable, if not, keep on executing program without stop. I have used multithread, but it did not work well when I put it running at background. I am using C
bloodwinner wrote:
I am using C
Then you can't be using .NET and you're in the wrong forum. Try the visual C++ forum.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )