Hi I get two errors and don't know how to act around them. First error says integer.cpp:35:10: warning: multi-character character constant [-Wmultichar]
case '10' : while the second says integer.cpp:39:1: warning: control reaches end of non-void function
[-Wreturn-type]
} . Could someone please tell me what I am doing wrong? Thanks.
In line 40, you tell the compiler that the main function will return an integer value.
So in line 45, you should return an integer value. That will solve your second error.
For the first error, I am not sure but I think it might have to do with your switch-cases
1 2 3
switch(a)
{
case'1':
a is an integer while '1' is a character with ascii code 49, representing the letter 1. Try removing the single quotes.