|
From: Chris B. <ch...@cb...> - 2000-10-26 20:42:24
|
Hi everyone. I wrote a function using dev c that overloads the insertion operator for a class. I used the getch() function within this function and everything worked fine. However, when I took this code to college the next day and compiled it under MS Vusual C++ it caused all sorts of problems. My lecturer said this was to do with getch using different buffers that cin. Is there a way to make sure that getch will work with cin on all compilers? Thanks in advance. Chris |