Code:#include <iostream.h> #include <conio.h> void main() { char c; c = getch(); // Gets and stores a user-input character cout << c << endl; cout << "Press any key to exit."; getch(); // No variable, used to get into an input-event loop. }
thnx....
u mean to say dat getch() is used to display d output for d user----if we don't use it, den although d program will run, but d output will not be displayed???did i get it right??
Here something for you Mr. Garfield: *www.planet-source-code.com/vb/Tutorial/default.asp?lngWId=3
^^switch to some other good compiler. If it's compulsory due to college then bear with the agony and pain of coding in Turbo C++
Yes but the compiler and the language you are using was what existed in late 1980s. That's even before Jurassic age at the rate technology develops. Modern compilers provide better binaries, useful error and warning messages and even allow for easy use of new elements of the programming languages - like namespaces in C++. Its always good to use something new.hey....i've just started learning c++....till now..i dint hav much problm wid turbo...
Yes but the compiler and the language you are using was what existed in late 1980s. That's even before Jurassic age at the rate technology develops. Modern compilers provide better binaries, useful error and warning messages and even allow for easy use of new elements of the programming languages - like namespaces in C++. Its always good to use something new.
*www.thinkdigit.com/forum/showthread.php?t=103652&highlight=dosbox