Click here to Skip to main content
15,909,829 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMM_TEXT IN CWnd? Pin
cyn814-Apr-07 17:50
cyn814-Apr-07 17:50 
AnswerRe: MM_TEXT IN CWnd? Pin
bob1697214-Apr-07 18:29
bob1697214-Apr-07 18:29 
GeneralRe: MM_TEXT IN CWnd? Pin
cyn814-Apr-07 20:44
cyn814-Apr-07 20:44 
GeneralRe: MM_TEXT IN CWnd? Pin
bob1697215-Apr-07 6:59
bob1697215-Apr-07 6:59 
QuestionMultiple Definition error Pin
XTAL25614-Apr-07 17:05
XTAL25614-Apr-07 17:05 
AnswerRe: Multiple Definition error Pin
John R. Shaw14-Apr-07 18:02
John R. Shaw14-Apr-07 18:02 
GeneralRe: Multiple Definition error Pin
XTAL25615-Apr-07 1:54
XTAL25615-Apr-07 1:54 
Questionmost efficient way to code this Pin
arbster114-Apr-07 15:47
arbster114-Apr-07 15:47 
Hello everybody today i was working on a project and was wondering if there is a more efficient way to do this. I have a .txt file with about 90,000 lines of data. The data is separated with tabs to form columns.
For Example:
Year Month Day Hour Income Expenses
90 1 1 1 19950.25 0
90 1 2 10 10.0 1000.22

In your opinion what will be the best way to print only the income column programmability.

I used a for loop and line.find('\t'...) to find the locations of each tab and store the results in an array. I do this for every line because the location of the tab differs from line to line. If there is a faster way I would love to know about it because I'm spending a lot of time waiting for the program to finish.

Thanks in advance.
AnswerRe: most efficient way to code this Pin
John R. Shaw14-Apr-07 16:14
John R. Shaw14-Apr-07 16:14 
AnswerRe: most efficient way to code this Pin
bob1697214-Apr-07 16:44
bob1697214-Apr-07 16:44 
GeneralRe: most efficient way to code this Pin
arbster114-Apr-07 16:52
arbster114-Apr-07 16:52 
GeneralRe: most efficient way to code this Pin
bob1697214-Apr-07 17:29
bob1697214-Apr-07 17:29 
GeneralRe: most efficient way to code this Pin
arbster114-Apr-07 17:59
arbster114-Apr-07 17:59 
GeneralRe: most efficient way to code this Pin
bob1697214-Apr-07 19:54
bob1697214-Apr-07 19:54 
GeneralRe: most efficient way to code this Pin
kakan15-Apr-07 19:27
professionalkakan15-Apr-07 19:27 
Questionlpvoid and structs Pin
ginjikun14-Apr-07 15:14
ginjikun14-Apr-07 15:14 
AnswerRe: lpvoid and structs Pin
John R. Shaw14-Apr-07 16:21
John R. Shaw14-Apr-07 16:21 
AnswerRe: lpvoid and structs Pin
John R. Shaw14-Apr-07 16:25
John R. Shaw14-Apr-07 16:25 
AnswerRe: lpvoid and structs Pin
d34studios14-Apr-07 16:46
d34studios14-Apr-07 16:46 
GeneralRe: lpvoid and structs Pin
ginjikun15-Apr-07 3:16
ginjikun15-Apr-07 3:16 
GeneralRe: lpvoid and structs Pin
Mark Salsbery15-Apr-07 13:56
Mark Salsbery15-Apr-07 13:56 
QuestionProblem of using selectSingleNode! [modified] Pin
Nothend14-Apr-07 15:11
Nothend14-Apr-07 15:11 
AnswerRe: Problem of using selectSingleNode! Pin
George L. Jackson14-Apr-07 15:27
George L. Jackson14-Apr-07 15:27 
GeneralRe: Problem of using selectSingleNode! Pin
Nothend14-Apr-07 15:40
Nothend14-Apr-07 15:40 
GeneralRe: Problem of using selectSingleNode! Pin
George L. Jackson14-Apr-07 15:58
George L. Jackson14-Apr-07 15:58 

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.