Storing values in a dynamic array

Feb 10, 2011 at 9:47am
Hello.
Last edited on Feb 10, 2011 at 6:50pm
Feb 10, 2011 at 10:35am
for (int i=0; i==numberofgrades; i++) When that will be executed?

The problem is that some lines have two characters. You don't reserve enough space for that.
It will be easier if you work with strings, and just append every line read.
Feb 10, 2011 at 11:40am
The assignment specifically asks that I store the grades in a single one-dimensional array, however
Feb 10, 2011 at 11:56am
closed account (jw6XoG1T)
try creating a dynamic array as follows:

string *pointer = new string []
Topic archived. No new replies allowed.