I seem to be having trouble with my code fellas an assignment i have been working on for the past couple days has been driving me crazy when i compile this it just sits idle and does nothing. So apparently i've done something wrong and it doesn't like. Could you be so kind to let me know what is going on. Thanks
I am reading from a file taking the names of students they are all in a format like so:
Johnston 65 56 45 65 78
10 rows of this i have to take the name and store it into a string and take the scores and put it in a 2d array and then average the scores then print it out in a different outfile i've made it far enough to read it.. (or so i think) but when i compile this my compiler doesn't like it at all.
i didn't get any errors when i compiled but the cmd screen just froze and i had to ctrl + alt + del to end it
i've edited the code a little bit i did have cout statements to try to print the array to see if it was reading it correctly but it keeps freezing on the cmd and can't get any further than that
Ah i seen the string issue, thanks for catching that that is a little problem i do a lot because i always add 0 into the mess thinking it was 10, thanks for the catch. So it is me being logically idiotic, thanks
so in the while loop i take the name put it into the names array, then take the first score put it into the first element into the 2d array then stretch it across that row then switch to the next and so on.