Code:
#include <iostream>
using namespace std;
int main()
{
char num;
cout << "Type in the interger you wish to convert: ";
cin >> num;
switch(num)
{
case '1' : cout << "one" << endl;
case '2' : cout << "two" << endl;
case '3' : cout << "three" << endl;
case '4' : cout << "four" << endl;
case '5' : cout << "five" << endl;
case '6' : cout << "six" << endl;
case '7' : cout << "seven" << endl;
case '8' : cout << "eight" << endl;
case '9' : cout << "nine" << endl;
case '10': cout << "ten" << endl;
return 0;
}
}
Keeps producing the errors
Assignment1.cpp:23:6: warning: multi-character character constant
Assignment1.cpp: In function 'int main()':
Assignment1.cpp:23: warning: overflow in implicit constant conversion
any hints/help with this? im still brand new to c++ and am working through a book.