Re: Array Manipln
From: Joseph M. Newcomer (newcomer_at_flounder.com)
Date: 02/24/04
- Next message: Joseph M. Newcomer: "Re: Why Dynamic Class is required?"
- Previous message: Joseph M. Newcomer: "Re: clock_t clock(void);"
- In reply to: NoviceJohn: "Array Manipln"
- Next in thread: NJ: "Re: Array Manipln"
- Reply: NJ: "Re: Array Manipln"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Feb 2004 12:11:17 -0500
Without knowning what you mean by "record" makes it a little hard.
If you stick with MFC, CArray will work.
If you have a typedef that defines the record format, an array of these, or an array of
pointers to these, will work just fine
typedef struct {
....whatever
} MyRecord;
CArray<MyRecord, MyRecord &> records;
or
CArray<MyRecord *, MyRecord *> records;
will work. It just depends on whether you want to store the struct or a pointer to the
struct. in the array.
Or you could use STL classes.
joe
On Tue, 24 Feb 2004 03:06:05 -0800, "NoviceJohn" <anonymous@discussions.microsoft.com>
wrote:
>Hi
>i would like to know how to enter values from a file containing many records into an array ? which MFC class to use???
>and how????
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
- Next message: Joseph M. Newcomer: "Re: Why Dynamic Class is required?"
- Previous message: Joseph M. Newcomer: "Re: clock_t clock(void);"
- In reply to: NoviceJohn: "Array Manipln"
- Next in thread: NJ: "Re: Array Manipln"
- Reply: NJ: "Re: Array Manipln"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|