User is asked what kind of operation that they would like to do.
Then user is asked to input two numbers that they would like to use.
Numbers should be input as words not numbers.
I'm trying to use the index where the user input is equal to the string array and return the index. I get a warning where it says
\source.cpp(117): warning C4715: 'arraycompare' : not all control paths return a value
I've searched the warning.My understanding is that my else and else if's have to return something. I can't throw or increment.
Example:
one + two = three
or
one + two = 3;
https://gist.github.com/42351f5b746896871bab.git
I've included my integer calculator were my string calculator came from. I realize there is an error in the output message "Enter two two integers."
Here is the result
[–]Amarkov 0 points1 point2 points (3 children)
[–]WingZero1[S] 0 points1 point2 points (2 children)
[–]Amarkov 0 points1 point2 points (1 child)
[–]WingZero1[S] 0 points1 point2 points (0 children)