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

C / C++ / MFC

 
QuestionC++ Naming Conventions Pin
romuzu19-Mar-06 15:30
romuzu19-Mar-06 15:30 
AnswerRe: C++ Naming Conventions Pin
Nemanja Trifunovic19-Mar-06 16:05
Nemanja Trifunovic19-Mar-06 16:05 
Questioncompile code under x64-based windows XP pro? Pin
Syouki_kou19-Mar-06 15:09
Syouki_kou19-Mar-06 15:09 
AnswerRe: compile code under x64-based windows XP pro? Pin
Gavin Taylor19-Mar-06 16:26
professionalGavin Taylor19-Mar-06 16:26 
GeneralRe: compile code under x64-based windows XP pro? Pin
Syouki_kou19-Mar-06 16:48
Syouki_kou19-Mar-06 16:48 
Questionread a file Pin
beardy janggut19-Mar-06 14:45
beardy janggut19-Mar-06 14:45 
AnswerRe: read a file Pin
normanS19-Mar-06 18:02
normanS19-Mar-06 18:02 
QuestionFile I/O Pin
Kuroro Rucilful19-Mar-06 13:29
Kuroro Rucilful19-Mar-06 13:29 
I'm an infant when it comes to C++.
Can anybody help me to access a text file which has a comma that separates every item and after which put that file into an array which can be access later.

The problem is the items in a file are in this manner, each line:

char,int,int,int,long int,long int........
char,int,int,int,long int,long int........
char,int,int,int,long int,long int........
char,int,int,int,long int,long int........
........
.............
.........
......
upto 57-60 lines


Do i have to separate the char and int and long int and put it in different array?

Or put the items in a struct....




AnswerRe: File I/O Pin
Richard Andrew x6419-Mar-06 13:48
professionalRichard Andrew x6419-Mar-06 13:48 
GeneralRe: File I/O Pin
Kuroro Rucilful19-Mar-06 13:54
Kuroro Rucilful19-Mar-06 13:54 
GeneralRe: File I/O Pin
Richard Andrew x6419-Mar-06 13:59
professionalRichard Andrew x6419-Mar-06 13:59 
GeneralRe: File I/O Pin
Kuroro Rucilful19-Mar-06 14:03
Kuroro Rucilful19-Mar-06 14:03 
AnswerRe: File I/O Pin
Chris Gao19-Mar-06 13:52
Chris Gao19-Mar-06 13:52 
GeneralRe: File I/O Pin
Kuroro Rucilful19-Mar-06 13:58
Kuroro Rucilful19-Mar-06 13:58 
AnswerRe: File I/O Pin
Stephen Hewitt19-Mar-06 13:52
Stephen Hewitt19-Mar-06 13:52 
AnswerRe: File I/O Pin
Stephen Hewitt19-Mar-06 14:03
Stephen Hewitt19-Mar-06 14:03 
GeneralRe: File I/O Pin
Kuroro Rucilful19-Mar-06 14:01
Kuroro Rucilful19-Mar-06 14:01 
GeneralRe: File I/O Pin
Kuroro Rucilful19-Mar-06 14:06
Kuroro Rucilful19-Mar-06 14:06 
GeneralRe: File I/O Pin
jhwurmbach19-Mar-06 21:44
jhwurmbach19-Mar-06 21:44 
GeneralRe: File I/O Pin
Kuroro Rucilful19-Mar-06 14:29
Kuroro Rucilful19-Mar-06 14:29 
QuestionGlobal Variable Question Pin
JSadleir19-Mar-06 12:43
JSadleir19-Mar-06 12:43 
AnswerRe: Global Variable Question Pin
Chris Gao19-Mar-06 13:05
Chris Gao19-Mar-06 13:05 
GeneralRe: Global Variable Question Pin
JSadleir19-Mar-06 13:16
JSadleir19-Mar-06 13:16 
GeneralRe: Global Variable Question Pin
Richard Andrew x6419-Mar-06 13:42
professionalRichard Andrew x6419-Mar-06 13:42 
GeneralRe: Global Variable Question Pin
JSadleir19-Mar-06 14:03
JSadleir19-Mar-06 14:03 

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.