Hey guys I am making an accounting program that uses parallel arrays.
For example:
I get the user to give me the account number. I then fill that number into account[i] and then I updated i. Now I want to do that same for when they give me a description of the account which would be a string. I used gets(name); /*name is my char array*/. But I don't know how to update because every time I did another account it printed out the new account name for the previous and new. Does anyone know how I can update this string array so I can print the old value and the new value?
EX of output I want:
Account #?
1005(user input)
Description:
cash(user input)
Amount?
50
prints: 1005 cash 50