Изменить 'du4/program.c'
^^
This commit is contained in:
parent
9d724fe363
commit
0cba852f87
@ -34,7 +34,12 @@ int main() {
|
|||||||
operation = 1;
|
operation = 1;
|
||||||
break;
|
break;
|
||||||
case '-':
|
case '-':
|
||||||
|
if(operation == 0)
|
||||||
operation = 2;
|
operation = 2;
|
||||||
|
else{
|
||||||
|
result[strlen(result)] = symbol;
|
||||||
|
result[strlen(result)] = '\0';
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case '*':
|
case '*':
|
||||||
operation = 3;
|
operation = 3;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user