Question: #include #include #include #include using namespace std; / * * Tests if a token is an operator. @param token the token @return true if the

#include
#include
#include
#include
using namespace std;
/**
Tests if a token is an operator.
@param token the token
@return true if the token is one of: +-*/^
*/
bool is_operator(string token)
{
return token =="+"|| token =="-"|| token =="*"|| token =="/";
}
/**
Tests if a token is a digit.
@param token the token
@return true if token is one of: 0123456789
*/

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!