Home > Back-end >  Is the operator of a formula, and exist two arrays, respectively, for a great god and see why not
Is the operator of a formula, and exist two arrays, respectively, for a great god and see why not

Time:10-05

#include
using namespace std;
Int main ()
{
Int a, [10].
Char b [10];
Char c [15];
Int d=10;
Cout<& lt;" Please enter the formula: ";
Gets (c);

for(int i=0; i{
If (c [I] & gt;=48 & amp; & [I] c & gt;=57)
{the while (c [I] & gt;=48 & amp; & [I] c & gt;=57)
{a [I]=[I] a * d + c (int) [I];
D=d * 10;
}}
The else
B=c [I] [I];

}
Cout<& lt;" Calculation of the number are: ";
for(int j=0; j<14. J++)
Printf (" % d ", a [j]);
CoutCout<& lt;" The operator has: "in the formula;
For (int k=0; KPrintf (" % c ", a. [k]);
return 0;
}

CodePudding user response:

If ( c & gt;=48 & amp; & [I] c & gt;=57
{the while ( c & gt;=48 & amp; & [I] c & gt;=57

These two places not at least, how the two are & gt;=?

CodePudding user response:

Number '0' - '9', with a decimal and '. 'and operators' +' '-' a '*' character comparison directly by the '/',