> Uhm, Im using Dev-C++.
So what?
[color=blue]
> Source looks like this
>
> /* GETCH.C: This program reads characters from
> * the keyboard until it receives a 'Y' or 'y'.
> */
>
> #include <conio.h>[/color]
Non standard.
[color=blue]
> #include <ctype.h>[/color]
Prefer c++ headers :
# include <cctype>
[color=blue]
> void main( void )[/color]
Yurk. Illegal
int main()
[color=blue]
> {
> int ch;
>
> _cputs( "Type 'Y' when finished typing keys: " );[/color]
What is _cputs()?
[color=blue]
> do
> {
> ch = _getch();[/color]
What is _getch()?
[color=blue]
> ch = toupper( ch );
> } while( ch != 'Y' );
>
> _putch( ch );
> _putch( '\r' ); /* Carriage return */
> _putch( '\n' ); /* Line feed */[/color]
What is _putch()?
[color=blue]
> }
>
> HELP HELP HELP![/color]
Please! Please! Please! Post a real question about the real C++ standard.
http://www.parashift.com/c++-faq-lite/how-to-post.html
Jonathan