Click here to Skip to main content
16,006,605 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: file find/copy Pin
22491724-Apr-05 17:56
22491724-Apr-05 17:56 
Questionfireing OLE Control Events??? Pin
tobi7823-Apr-05 8:37
tobi7823-Apr-05 8:37 
Generalarray of structs read in from a file Pin
Truby4223-Apr-05 8:23
Truby4223-Apr-05 8:23 
GeneralRe: array of structs read in from a file Pin
Peter Ritchie23-Apr-05 8:29
Peter Ritchie23-Apr-05 8:29 
GeneralWinhttp from service not working Pin
gP_t_gr823-Apr-05 8:09
gP_t_gr823-Apr-05 8:09 
GeneralRe: Winhttp from service not working Pin
22491723-Apr-05 9:42
22491723-Apr-05 9:42 
GeneralRe: Winhttp from service not working Pin
gP_t_gr824-Apr-05 19:20
gP_t_gr824-Apr-05 19:20 
GeneralGetting input in an array... Pin
Aqseel A. Mirza23-Apr-05 7:12
sussAqseel A. Mirza23-Apr-05 7:12 
Hello
I want to enter a name from the user in console based program. I used gets function as written below

char name[40];
cout <<"Enter Name "; (i also checked puts here)
gets(name);

cout <<"Enter age ";
cin>>age;

But it prints message "Enter Name " and then with out prompting me for name, it goes to next statement i.e. "Enter age ".
Can anyone tell me why this happens or please tell me any other way to get input in array on console screen.
Thanks
Aqeel A. Mirza


cout <<"We Believe in Excellence";
GeneralRe: Getting input in an array... Pin
Ravi Bhavnani23-Apr-05 7:43
professionalRavi Bhavnani23-Apr-05 7:43 
GeneralRe: Getting input in an array... Pin
Member 190113623-Apr-05 15:24
Member 190113623-Apr-05 15:24 
Generalcin.get is creating problem Pin
Aqueel25-Apr-05 1:55
Aqueel25-Apr-05 1:55 
GeneralRe: cin.get is creating problem Pin
Member 190113625-Apr-05 2:06
Member 190113625-Apr-05 2:06 
GeneralThanks Pin
Aqueel25-Apr-05 3:50
Aqueel25-Apr-05 3:50 
GeneralWM_KILLFOCUS Pin
PeteMan_R23-Apr-05 6:55
PeteMan_R23-Apr-05 6:55 
GeneralRe: WM_KILLFOCUS Pin
Peter Ritchie23-Apr-05 8:36
Peter Ritchie23-Apr-05 8:36 
GeneralRe: WM_KILLFOCUS Pin
PJ Arends23-Apr-05 14:55
professionalPJ Arends23-Apr-05 14:55 
GeneralRe: WM_KILLFOCUS Pin
PeteMan_R23-Apr-05 15:18
PeteMan_R23-Apr-05 15:18 
GeneralRe: WM_KILLFOCUS Pin
Ravi Bhavnani23-Apr-05 18:24
professionalRavi Bhavnani23-Apr-05 18:24 
GeneralRe: WM_KILLFOCUS Pin
Anonymous25-Apr-05 18:07
Anonymous25-Apr-05 18:07 
GeneralPlease help me! Pin
dSolariuM23-Apr-05 4:27
dSolariuM23-Apr-05 4:27 
GeneralRe: Please help me! Pin
Ravi Bhavnani23-Apr-05 7:46
professionalRavi Bhavnani23-Apr-05 7:46 
GeneralRe: Please help me! Pin
dSolariuM24-Apr-05 5:01
dSolariuM24-Apr-05 5:01 
GeneralRe: Please help me! Pin
Ravi Bhavnani24-Apr-05 5:51
professionalRavi Bhavnani24-Apr-05 5:51 
Generaltext over image Pin
Lampros Giampouras23-Apr-05 4:06
Lampros Giampouras23-Apr-05 4:06 
Generalvirtual static Pin
Konrad Windszus23-Apr-05 3:38
Konrad Windszus23-Apr-05 3:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.