C语言的语法太枯燥了 换个写法
#include #include #define end }#define if(x) if (x){#define then#define while(x) while(x){#define function(x) void function(x){#define else }else{#define sd scanf("%d",&x);#define s(a) scanf("%d",&a);#define p(a) printf("%d",a);#define main int main(){#define pend system("pause");return 0;}#define var(a) int a;#define loop(x) for(i=0;i 5) then else end while (x <= 5) then end sdendmain //从键盘输入5个整数。然后输出不为0的值 var (arr[10]) var (m) var (i) loop (5) s(arr(i)) end loop(5) if (arr(i)!=0 ) then p(arr(i)) end endpend