Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #22.5K
Hi, What I'm attempting to do is send data from one class, to another and then store it in that second class as an array. E.g. file class1.cpp [CODE=c++]class1{ Class2 c; c.methodAdd(Variable1, id); cout << c.methodGet(2); }[/CODE] file class2.h [CODE=c++]class2{ typedef string StringArrayPtr; StringArrayPtr *array = new StringArrayPtr[3]; //create the … |
|
Hi, its me again, How would I go about reading in the same file twice?? What I need to do is read it in the first time, and count how many lines there are between two words (in the middle of the file somewhere - see example below), create and … |