Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGet groups and the number of associated users in that group in a system ? Pin
Mogaambo12-May-09 19:54
Mogaambo12-May-09 19:54 
AnswerRe: Get groups and the number of associated users in that group in a system ? Pin
«_Superman_»12-May-09 20:07
professional«_Superman_»12-May-09 20:07 
AnswerRe: Get groups and the number of associated users in that group in a system ? Pin
Madhu Nair12-May-09 20:50
Madhu Nair12-May-09 20:50 
QuestionProblem in using toolbar. Pin
Le@rner12-May-09 19:47
Le@rner12-May-09 19:47 
Question[Message Deleted] Pin
lek25812-May-09 19:22
lek25812-May-09 19:22 
JokeRe: Creating ISO9660 Image File(URGENT PLEASE) Pin
Michael Schubert13-May-09 0:15
Michael Schubert13-May-09 0:15 
GeneralRe: Creating ISO9660 Image File(URGENT PLEASE) [modified] Pin
enhzflep13-May-09 5:15
enhzflep13-May-09 5:15 
QuestionTo read a complete string Pin
Pankaj D.Dubey12-May-09 18:52
Pankaj D.Dubey12-May-09 18:52 
AnswerRe: To read a complete string Pin
Chandrasekharan P12-May-09 19:10
Chandrasekharan P12-May-09 19:10 
AnswerRe: To read a complete string Pin
Madhu Nair12-May-09 19:20
Madhu Nair12-May-09 19:20 
AnswerRe: To read a complete string Pin
«_Superman_»12-May-09 19:31
professional«_Superman_»12-May-09 19:31 
Your question is not clear.
Where are you reading from? File? Standard input?
How are you reading it? scanf? cin?

I'm assuming that you are reading from standard input, ie, user input.

If you are using scanf, you can do this -
char sz[1024];
scanf("%[^\n]", sz);

If you are using cin, you can do this -
string s;
getline(cin,s);


«_Superman
I love work. It gives me something to do between weekends.

GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 19:50
Pankaj D.Dubey12-May-09 19:50 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 20:03
professional«_Superman_»12-May-09 20:03 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 20:16
Pankaj D.Dubey12-May-09 20:16 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 21:05
professional«_Superman_»12-May-09 21:05 
GeneralRe: To read a complete string Pin
Madhu Nair12-May-09 21:14
Madhu Nair12-May-09 21:14 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 21:28
Pankaj D.Dubey12-May-09 21:28 
GeneralRe: To read a complete string Pin
Chandrasekharan P12-May-09 21:54
Chandrasekharan P12-May-09 21:54 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 21:55
professional«_Superman_»12-May-09 21:55 
GeneralRe: To read a complete string Pin
Rajesh R Subramanian12-May-09 22:39
professionalRajesh R Subramanian12-May-09 22:39 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 22:49
professional«_Superman_»12-May-09 22:49 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 22:40
Pankaj D.Dubey12-May-09 22:40 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 22:56
professional«_Superman_»12-May-09 22:56 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 23:04
Pankaj D.Dubey12-May-09 23:04 
QuestionCustomised Browse for folder dialog problem Pin
VC++Maniac12-May-09 18:47
VC++Maniac12-May-09 18:47 

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.