Compare commits
2 Commits
78ada5fbd4
...
9c090bc317
| Author | SHA1 | Date | |
|---|---|---|---|
| 9c090bc317 | |||
| 8dda608d07 |
@@ -80,6 +80,10 @@ Command resolveCommand()
|
|||||||
{
|
{
|
||||||
operation = c;
|
operation = c;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
operation = '+';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {shouldQuit, operation, validation_result.next_arg(), shouldPrint};
|
return {shouldQuit, operation, validation_result.next_arg(), shouldPrint};
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ int main()
|
|||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
std::cout << "What's your next input? (+,-,*,/,%,$,q,p)";
|
std::cout << "What's your next input? (+,-,*,/,%,$,q,p)" << std::endl;
|
||||||
auto command = resolveCommand();
|
auto command = resolveCommand();
|
||||||
|
|
||||||
if (command.shouldTerminate())
|
if (command.shouldTerminate())
|
||||||
|
|||||||
Reference in New Issue
Block a user