The solution for the gets() problem with the remaining LF or CR in buffer can be solved by using scanf("%s",variable)
or by calling getchar() until it returns 0.
You could wirte a small function that empites the buffer,
containing somewhat like
while ( getchac() ) ;
perhaps you´ll...
I am designing a C++ Class, which contains information about Modems (ComPort, Internal Card or Virtual) on a Windows system. I tried to read from the Registry, but after my method worked on Win9x it won´t work on Win2k.
i queried HKEY_LOCAL_MACHINE\Enum\Root\Modem, numerated the subkeys (for...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.