Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMultiple Form view Pin
Cedric Moonen13-Mar-03 22:22
Cedric Moonen13-Mar-03 22:22 
GeneralRe: Multiple Form view Pin
valikac14-Mar-03 12:46
valikac14-Mar-03 12:46 
GeneralClass/es to manage AT Commands Pin
Anonymous13-Mar-03 21:57
Anonymous13-Mar-03 21:57 
GeneralRe: Class/es to manage AT Commands Pin
Daniel Strigl13-Mar-03 22:20
Daniel Strigl13-Mar-03 22:20 
GeneralWant to display current date in CDateTimeCtrl Pin
Kamesh13-Mar-03 21:46
Kamesh13-Mar-03 21:46 
Generalfunction forwarding in a DLL Pin
Fad B13-Mar-03 21:27
Fad B13-Mar-03 21:27 
GeneralRe: function forwarding in a DLL Pin
KarstenK13-Mar-03 21:40
mveKarstenK13-Mar-03 21:40 
GeneralReading arbitrary size file Pin
Makover13-Mar-03 20:36
Makover13-Mar-03 20:36 
Suppose I have to read an arbitrary number of recoreds from a file into an array. each record contains student name, age, school...
For now each record should be saved as a string. So I have an array of string, but I don't know of what size.

What is the "standard approach" to this in c++?
In Java I use Vector class, in c I use malloc and realloc... What would you do in c++ (I'm new to c++ Roll eyes | :rolleyes: )

Thanks.



-----------------------
But what did I do Confused | :confused: ?
GeneralRe: Reading arbitrary size file Pin
Fredrik Skog13-Mar-03 20:53
Fredrik Skog13-Mar-03 20:53 
GeneralRe: Reading arbitrary size file Pin
Cedric Moonen13-Mar-03 20:57
Cedric Moonen13-Mar-03 20:57 
GeneralRe: Reading arbitrary size file Pin
Makover13-Mar-03 21:24
Makover13-Mar-03 21:24 
GeneralRe: Reading arbitrary size file Pin
Fredrik Skog13-Mar-03 21:44
Fredrik Skog13-Mar-03 21:44 
GeneralRe: Reading arbitrary size file Pin
Ted Ferenc14-Mar-03 0:26
Ted Ferenc14-Mar-03 0:26 
GeneralRe: Reading arbitrary size file Pin
jhwurmbach14-Mar-03 4:00
jhwurmbach14-Mar-03 4:00 
GeneralRe: Reading arbitrary size file Pin
KarstenK13-Mar-03 21:35
mveKarstenK13-Mar-03 21:35 
GeneralRe: Reading arbitrary size file Pin
Makover14-Mar-03 3:25
Makover14-Mar-03 3:25 
GeneralRe: Reading arbitrary size file Pin
TomKat14-Mar-03 14:33
TomKat14-Mar-03 14:33 
Generalglobal variables Pin
r i s h a b h s13-Mar-03 19:54
r i s h a b h s13-Mar-03 19:54 
GeneralRe: global variables Pin
Daniel Strigl13-Mar-03 20:00
Daniel Strigl13-Mar-03 20:00 
GeneralRe: global variables Pin
r i s h a b h s13-Mar-03 20:20
r i s h a b h s13-Mar-03 20:20 
GeneralRe: global variables Pin
Rickard Andersson2013-Mar-03 20:35
Rickard Andersson2013-Mar-03 20:35 
GeneralRe: global variables Pin
r i s h a b h s13-Mar-03 23:15
r i s h a b h s13-Mar-03 23:15 
GeneralRe: global variables Pin
Daniel Strigl13-Mar-03 21:50
Daniel Strigl13-Mar-03 21:50 
GeneralRe: global variables Pin
Joan M13-Mar-03 22:16
professionalJoan M13-Mar-03 22:16 
GeneralRe: global variables Pin
Moak14-Mar-03 10:27
Moak14-Mar-03 10:27 

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.