#define _CRT_SECURE_NO_WARNINGS
#define PI 3.1415926535
#include <stdio.h>
#include <math.h>
int main()
{
double ito;
double res;
char a[10];
while (1>0)
{
scanf("%lf", &ito);
if (ito <= 1)
{
res = acos(ito) * 180 / PI;
printf("out=%lf\n", res);
}
else
{
printf("wrong\n");
scanf("%s", a);
if (a == 'STOP') return 0;
else return;
}
}
}
程序第23行:我希望做到当输入字符串不是‘STOP'时,程序能够返回至第12行运行