Mail Archives: djgpp/1997/03/02/21:42:03
Brian (bardito AT aracnet DOT com) wrote:
: I'm new to c++ programming. I downloaded djgpp and compiled a very
: basic program, so I know how to work it. I was just wondering how do
: you input into a program like having it ask you your name and you type
: it in and then it prints it to the screen.
: All help greatly apperciated. - bardito AT aracnet DOT com
Under C++ you would normally use cout, cin, << and >>, like so:
cout << "What is your name? ";
cin >> s;
cout << "Your name is " << s;
where s is an array of chars.
This question should really have been asked elsewhere - this newsgroup
is intended for discussion of DJGPP issues, not the C (or C++) language
itself. I suggest that you get a good book on C/C++ programming, or read
one of the many web tutorials there are lying around.
--
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.
- Raw text -