From: donjr AT erols DOT com (No One Important) Newsgroups: comp.lang.c++,comp.os.msdos.djgpp Subject: Using cin.get() Outside Of main() Date: Thu, 27 Feb 1997 00:35:21 GMT Organization: Erol's Internet Services Lines: 27 Message-ID: <5f2ag5$l9m@boursy.news.erols.com> NNTP-Posting-Host: phd-as10s05.erols.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I am having trouble using cin.get() outside of the main function. I prompt the user for input eg. char FullName[256]; cout << "Enter Your Full Name\n:"; cin.get(FullName,256); and the program compiles without error, but when I run it it skips right by the cin.get() and displays Enter Your Full Name : (The rest of the program) I have been able to use it in main, however, with the way my program works, it is impossible to put it in main without throwing the whole thing off. Please e-mail any advice to donjr AT erols DOT com Thank you, David Loose