Click here to Skip to main content
15,915,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionto interagate each word in a line of stringstream Pin
mrby12315-Mar-06 7:09
mrby12315-Mar-06 7:09 
QuestionRe: to interagate each word in a line of stringstream Pin
David Crow15-Mar-06 7:16
David Crow15-Mar-06 7:16 
AnswerRe: to interagate each word in a line of stringstream Pin
mrby12315-Mar-06 7:23
mrby12315-Mar-06 7:23 
QuestionRe: to interagate each word in a line of stringstream Pin
David Crow15-Mar-06 7:36
David Crow15-Mar-06 7:36 
AnswerRe: to interagate each word in a line of stringstream Pin
mrby12315-Mar-06 7:46
mrby12315-Mar-06 7:46 
GeneralRe: to interagate each word in a line of stringstream Pin
David Crow15-Mar-06 8:12
David Crow15-Mar-06 8:12 
GeneralRe: to interagate each word in a line of stringstream Pin
mrby12315-Mar-06 8:18
mrby12315-Mar-06 8:18 
QuestionRe: to interagate each word in a line of stringstream Pin
David Crow15-Mar-06 8:34
David Crow15-Mar-06 8:34 
mrby123 wrote:
f_ptr1.getline(buffer_seed,58,' ');


Why not read up to a newline character?

mrby123 wrote:
qq = string(buffer_seed);


Why convert buffer_seed from a char[] to a string? Can't the write() method handle a char[] type?

mrby123 wrote:
f_ptr2.write(qq.c_str(),f_ptr1.gcount());


For the second argument, why not use qq.length() instead?


"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

"There is no death, only a change of worlds." - Native American Proverb


AnswerRe: to interagate each word in a line of stringstream Pin
mrby12315-Mar-06 8:40
mrby12315-Mar-06 8:40 
GeneralRe: to interagate each word in a line of stringstream Pin
David Crow27-Mar-06 9:20
David Crow27-Mar-06 9:20 
GeneralRe: to interagate each word in a line of stringstream Pin
mrby12327-Mar-06 9:53
mrby12327-Mar-06 9:53 
QuestionRe: to interagate each word in a line of stringstream Pin
David Crow27-Mar-06 10:14
David Crow27-Mar-06 10:14 
AnswerRe: to interagate each word in a line of stringstream Pin
mrby12327-Mar-06 10:22
mrby12327-Mar-06 10:22 
QuestionCannot "build" project.clw over "network"?? Pin
Vaclav15-Mar-06 6:45
Vaclav15-Mar-06 6:45 
QuestionRe: Cannot "build" project.clw over "network"?? Pin
David Crow15-Mar-06 8:35
David Crow15-Mar-06 8:35 
Questionmax characters of an array of char Pin
Trankil15-Mar-06 6:04
Trankil15-Mar-06 6:04 
AnswerRe: max characters of an array of char Pin
David Crow15-Mar-06 6:10
David Crow15-Mar-06 6:10 
AnswerRe: max characters of an array of char Pin
Joe Woodbury15-Mar-06 7:42
professionalJoe Woodbury15-Mar-06 7:42 
Questionmulti-project solution dependencies - [ modified ² ] Pin
toxcct15-Mar-06 5:45
toxcct15-Mar-06 5:45 
AnswerRe: multi-project solution dependencies - [ modified ² ] Pin
yongwpi15-Mar-06 10:41
yongwpi15-Mar-06 10:41 
GeneralRe: multi-project solution dependencies - [ modified ² ] Pin
toxcct15-Mar-06 21:19
toxcct15-Mar-06 21:19 
QuestionWin32 Pin
adiilah15-Mar-06 5:34
adiilah15-Mar-06 5:34 
AnswerRe: Win32 Pin
David Crow15-Mar-06 5:49
David Crow15-Mar-06 5:49 
Questioncode required to obtain printer status Pin
P Gibson15-Mar-06 5:11
P Gibson15-Mar-06 5:11 
QuestionRe: code required to obtain printer status Pin
David Crow15-Mar-06 5:13
David Crow15-Mar-06 5:13 

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.