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

C / C++ / MFC

 
QuestionCRecordset::GetFieldValue + UNICODE = problem Pin
leandrobecker15-Mar-06 8:56
leandrobecker15-Mar-06 8:56 
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 
Thanks.

In fact, my purpose is to read the file line by line. The head of the file contains 33 lines of text. I like to interrogate this text to record some key information. Then the file contains three collumns of numerical data. I like to store these three columns into three different arrays.

Then the array is treated ac a time seriers and FFT will be performed and a transfer function will be multipled to the arrays.

My first task is to transfer the data to correct arrays.

This is the code (you helped) I read a file (f_ptr1)and write to another file (f_ptr2):

while (! f_ptr1.eof())
{
f_ptr1.getline(buffer_seed,58,' ');

qq = string(buffer_seed);
f_ptr2.write(qq.c_str(),f_ptr1.gcount());
}


-- modified at 14:25 Wednesday 15th March, 2006
QuestionRe: to interagate each word in a line of stringstream Pin
David Crow15-Mar-06 8:34
David Crow15-Mar-06 8:34 
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 

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.