This is legal at school in Visual Studio.
But in Xcode I'm getting a
Any ideas why? What function should I use?
What's a good reference for what C++ functions I can and can't use in Xcode's compiler?
Code:
if (which >= 1 && which <= numEntries) {
which = which -1;
cout << "New First Name: ";
cin >> temp;
strcpy(firstnames[index[which]], temp);
cout << endl;
cout << "New Last Name: ";
cin >> temp;
strcpy(lastnames[index[which]], temp);
cout << endl;
cout << "New Phone Number: ";
cin >> temp;
strcpy(phonenumbers[index[which]], temp);
cout << endl;
cout << "New Birthday: ";
cin >> temp;
strcpy(birthdays[index[which]], temp);
cout << endl;
}
else cout << "INVALID Number." << endl;
But in Xcode I'm getting a
Code:
invalid types 'char (*)[50][char* ()(const char*, int)]' for array subscript
Any ideas why? What function should I use?
What's a good reference for what C++ functions I can and can't use in Xcode's compiler?