I didnt steal the code from anyone, i only changed the things in my code that were said in this thread. I was able to finally write the whole code the way i wanted to thanks for everyones help.
Type: Posts; User: douglas481
I didnt steal the code from anyone, i only changed the things in my code that were said in this thread. I was able to finally write the whole code the way i wanted to thanks for everyones help.
ok so i changed several things and i now got this code.
im getting an output like this:
Player 1 score 7
Player 2 score -3
Breakdown: 1 0 1 0 2 -1 0 3 0 0 0 0 1 0 -2 0 2 0
Breakdown: 1 -1 0...
I sort of understand what cuzah means when he says i need to be looping through the array. I dont have much clue to how i actuallly do that.
My code is down below. I trying to get an output from this input file input.txt.
This is a golf game and the first row is the number of golfers,
second row is the par and the last two rows are...