Two dimensional array help
#3

You can't mix strings and integers in the same array.
You should get errors if you compile.

The first index of your array points to the line, the second index points to the phone-names, but it cannot store the prices.

You need to use an enum to pull this off, or use 2 separate arrays, one for the phonenames and another for the prices.
Reply


Messages In This Thread
Two dimensional array help - by Lidor124 - 04.02.2015, 19:03
Re: Two dimensional array help - by Sew_Sumi - 04.02.2015, 19:11
Re: Two dimensional array help - by PowerPC603 - 04.02.2015, 20:53
Re: Two dimensional array help - by Sew_Sumi - 04.02.2015, 21:34

Forum Jump:


Users browsing this thread: 1 Guest(s)