I'm having issues printing out the array. I have to take it in in the main and print it out in a function. A quick explanation would be great! Thank you.
names[x][y]==32; on line 25. Why do you have comparison happening here?
1 2 3 4 5 6 7 8 9 10
char print(char names[][80]) // <-- should look like this as you must include dimensions and any sizes except the first.
{
for(int x=0;x<5;x++)
{
for(int y=0;y<80;y++)
{
cout<<names[x][y];
}
}
}
EDIT: You also have a return value on this function but not your declaration.
EDIT: using system("PAUSE") is also highly discouraged as it has many problems associated with it. And the more experienced programmers will snarl when they see this.