cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Storing values in a dynamic array
Storing values in a dynamic array
Feb 10, 2011 at 9:47am UTC
NeoSeeker
(6)
Hello.
Last edited on
Feb 10, 2011 at 6:50pm UTC
Feb 10, 2011 at 10:35am UTC
ne555
(10692)
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 UTC
NeoSeeker
(6)
The assignment specifically asks that I store the grades in a single one-dimensional array, however
Feb 10, 2011 at 11:56am UTC
closed account (
jw6XoG1T
)
try creating a dynamic array as follows:
string *pointer = new string []
Topic archived. No new replies allowed.