Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Converting big integer value to string Pin
Albert Holguin16-Jan-12 10:15
professionalAlbert Holguin16-Jan-12 10:15 
Questioncommon language runtime support error for dll Pin
appollosputnik15-Jan-12 17:24
appollosputnik15-Jan-12 17:24 
AnswerRe: common language runtime support error for dll Pin
_AnsHUMAN_ 15-Jan-12 18:08
_AnsHUMAN_ 15-Jan-12 18:08 
GeneralRe: common language runtime support error for dll Pin
appollosputnik15-Jan-12 21:04
appollosputnik15-Jan-12 21:04 
GeneralRe: common language runtime support error for dll Pin
Richard MacCutchan15-Jan-12 21:26
mveRichard MacCutchan15-Jan-12 21:26 
GeneralRe: common language runtime support error for dll Pin
appollosputnik15-Jan-12 23:35
appollosputnik15-Jan-12 23:35 
GeneralRe: common language runtime support error for dll Pin
Richard MacCutchan15-Jan-12 23:40
mveRichard MacCutchan15-Jan-12 23:40 
Questionreading file using fscanf(); Pin
Raza568015-Jan-12 6:53
Raza568015-Jan-12 6:53 
Hi,
I have a text file that looks like
0 0:3649 1:1643563 2:563726 3:2358500 4:1706041 5:1399436 6:1021542 7:2612862 8:2399618 9:2177296 10:507745 11:2504905

1 0:2072009 1:1497603 2:886529 3:43699 4:266555 5:1062838 6:429603 7:483804 8:2882799 9:1299756 10:347278 11:13617

2 0:25988 1:1101998 2:1550469 3:1665724 4:1754902 5:1770655 6:484783 7:1933614 8:1314619 9:1026882 10:166341 11:1772168

3 0:2284363 1:2340611 2:1516115 3:880566 4:2554567 5:2119179 6:2787658 7:2699637 8:1572897 9:415096 10:1347549 11:686279

The first element is the line number nad then it is arranged as 'attribute:value'. Due to large number of elements one line of data spans two or more lines of a text file. please note that there are no empty lines I have just done it for clarity.

how to read the first elements of each data line(in this case 0, 1,2 ,3) regardless of the the numebr of lines spanned in the text file

any help will be appreciated

thanks
QuestionRe: reading file using fscanf(); Pin
David Crow15-Jan-12 16:25
David Crow15-Jan-12 16:25 
AnswerRe: reading file using fscanf(); Pin
Chandrasekharan P15-Jan-12 21:00
Chandrasekharan P15-Jan-12 21:00 
AnswerRe: reading file using fscanf(); Pin
Luc Pattyn15-Jan-12 21:50
sitebuilderLuc Pattyn15-Jan-12 21:50 
GeneralRe: reading file using fscanf(); Pin
Raza568016-Jan-12 4:05
Raza568016-Jan-12 4:05 
Questionin win32api if i want to move between the fields with tab button ? is it possible ? Pin
a1_shay15-Jan-12 5:44
a1_shay15-Jan-12 5:44 
GeneralNot enough information Pin
Code-o-mat16-Jan-12 0:21
Code-o-mat16-Jan-12 0:21 
AnswerRe: in win32api if i want to move between the fields with tab button ? is it possible ? Pin
Stephen Hewitt16-Jan-12 2:23
Stephen Hewitt16-Jan-12 2:23 
GeneralRe: in win32api if i want to move between the fields with tab button ? is it possible ? Pin
a1_shay16-Jan-12 11:44
a1_shay16-Jan-12 11:44 
Questionin win32api how i create and use with dll file ? Pin
a1_shay15-Jan-12 5:26
a1_shay15-Jan-12 5:26 
AnswerRe: in win32api how i create and use with dll file ? Pin
Richard MacCutchan15-Jan-12 5:43
mveRichard MacCutchan15-Jan-12 5:43 
Questionhow to read only integers from a file with c Pin
reemamjd15-Jan-12 3:01
reemamjd15-Jan-12 3:01 
AnswerRe: how to read only integers from a file with c Pin
venomation15-Jan-12 3:25
venomation15-Jan-12 3:25 
GeneralRe: how to read only integers from a file with c Pin
Richard MacCutchan15-Jan-12 3:34
mveRichard MacCutchan15-Jan-12 3:34 
GeneralRe: how to read only integers from a file with c Pin
reemamjd15-Jan-12 4:11
reemamjd15-Jan-12 4:11 
GeneralRe: how to read only integers from a file with c Pin
Richard MacCutchan15-Jan-12 4:58
mveRichard MacCutchan15-Jan-12 4:58 
QuestionRe: how to read only integers from a file with c Pin
David Crow15-Jan-12 16:24
David Crow15-Jan-12 16:24 
GeneralRe: how to read only integers from a file with c Pin
reemamjd15-Jan-12 18:45
reemamjd15-Jan-12 18:45 

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.