I'm in a CS class in college now, and it's in C++. I have done all the things we're covering this semester... but in Java.
I'm trying to write a basic program that uses a 3d char array to store the last names of passengers in an airplane, but when I try to initialize the array, i'm getting compiler issues. I have no idea what is wrong, and it's bugging the hell out of me. I guess I'm not used to using character arrays (we're not allowed to use strings for some reason).
Anyways, here's the part that's messed up:
char list[15][6][20]; //this should create an array with 15 rows/6 columns that holds char lists of 20 length, right?
for (int i = 0; i < 15; i++)
{
for (int j = 0; j < 6; j++)
{
list[i][j] = "*"; //I also tried using "*\0" to no avail.
}
}
Further, we're supposed to make our own functions to copy and compare character arrays. Any tips?
Thanks