i am creating a program where im trying to read in a data from a file into 4 different arrays by using a class but im having trouble with the syntax of it. does anyone know some good sites that can help?
Nyx18
0
Newbie Poster
Recommended Answers
Jump to PostThe syntax for creating an array that's a member of a class is:
class MyClass { public: ... private: int array[4]; };
Note that you don't necessarily have to declare it as a private member.
Jump to PostThis is something similar.
All 5 Replies
John A
1,896
Vampirical Lurker
Team Colleague
Dave Sinkula
2,398
long time no c
Team Colleague
Nyx18
0
Newbie Poster
John A
1,896
Vampirical Lurker
Team Colleague
mitrmkar
1,056
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.