alright, i have absolutly no idea what im doing here, as the concepts of pointers, dynamic memory and 2-d arrays are all new things to me
i have a file that i need to read into a 2-d array...in the end that array needs to be dynamically allocated, but for now, lets just say it is a static 10x10 array.
i can read in a single string just fine, but i cant seem to figure out how to read in the data to the multi dimentional array.
the input file is formated like this:
4
0 100
1 .004
2 54
where the first line is how many lines the file is, the first number of each line represents the line number and the second number in each line represents the data that i need to read in.
any help at all would be apprecated....



LinkBack URL
About LinkBacks


