G
GRoll21
In this program, it is going to change a value in the array. So to give
it it's new value I need to assign it the new value. It doesn't like
the conversion. Here is the error.
c:\C++\Serendipity\Chapter 9\invmenu.cpp(185): error C2440: '=' :
cannot convert from 'char' to 'char [14]'
Here is the code.
cout <<"\n\nEnter the first letter of the category you would like to
edit: ";
cin >> change;
if (change == 'I' || change =='i')
{
cout << "\nEnter the new ISBN number: ";
cin >> xisbn[14];
isbn[index] = xisbn[14];
cout << "\nThe isbn is now " << isbn[index];
}
cin gets the letter they input for what category they want to change.
then they have to enter the new isbn number and i want it to assign
that number to the array so its saved. but i keep getting that error.
If someone can point me on the right direction or why it doesn't like
that conversion, that would be great! Thank you very much!
it it's new value I need to assign it the new value. It doesn't like
the conversion. Here is the error.
c:\C++\Serendipity\Chapter 9\invmenu.cpp(185): error C2440: '=' :
cannot convert from 'char' to 'char [14]'
Here is the code.
cout <<"\n\nEnter the first letter of the category you would like to
edit: ";
cin >> change;
if (change == 'I' || change =='i')
{
cout << "\nEnter the new ISBN number: ";
cin >> xisbn[14];
isbn[index] = xisbn[14];
cout << "\nThe isbn is now " << isbn[index];
}
cin gets the letter they input for what category they want to change.
then they have to enter the new isbn number and i want it to assign
that number to the array so its saved. but i keep getting that error.
If someone can point me on the right direction or why it doesn't like
that conversion, that would be great! Thank you very much!