ok so...I need to make a program where the user enters a number between 0 and 10. Depending on what number they put in, is how many colleges it will display. I need to store the names, locations, and mascots of 10 different colleges as elements of an integer array so I can call certain numbers of lines depending on what the user inputs, however each element of that array will be another array of characters (the college stuff)...so yeah...I have no idea how to do this.
I know how to make an integer array, and allow the user to input a number and display all of the array values up to that point, but I just cant figure out the part of making each element of an integer array a string of characters....
Ex.
Number of colleges : (user inputs 2)
Output :
Nebraska, Lincoln, Cornhusker
Kansas, wherever, Jayhawks
---------------
Number of colleges : (user inputs 4)
Output :
Nebraska, Lincoln, Cornhusker
Kansas, wherever, Jayhawks
whatever, whatever, whatever
whatever, whatever, whatever
... You get the idea...I just suck with arrays...help me and I will love you long time.
Aqua-Soft Forums