Is there a real way of achieving this? I want to make the program more portable. If there isn't, what's the windows implementation?
Is there a real way of achieving this? I want to make the program more portable. If there isn't, what's the windows implementation?
Sorry, what this code is supposed to do?
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
Read in a character from cin without echoing it or waiting for eof.
I have implemented it with conio.h, but i'd much rather an ANSI way if there is one.
You mean it is getch()?
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
There is no standard way to do that. The stuff in conio or some other platform specific code will have to do.
This sort of operation is definitely dependant on the OS, so you won't be able to implement it completely OS independent - you could of course implement two different functions [choosing which or choosing to compile only one based on some architecture identifying define or such] or use someone elses already implemented third party function/library that solves this problem.
--
Mats
Cool, I think I'll just have a unix version and a windows version. Use whichever one is relevant.