From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: INPUT IN C++ Date: 3 Mar 1997 01:28:50 GMT Organization: Oxford University Lines: 23 Message-ID: <5fd9gi$t4n@news.ox.ac.uk> References: <3319FA4B DOT 53EA AT aracnet DOT com> NNTP-Posting-Host: mc31.merton.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 Merton College, Oxford.