摘要: C语言中static的作用 1 void test() 2 { 3 int b = 1; 4 b++; 5 printf("b=%d\n", b); 6 } 7 int main() 8 { 9 int a = 0; 10 while (a < 5) 11 { 12 test(); 13 a++; 阅读全文
posted @ 2022-08-26 08:25 PHJ15161147101 阅读(54) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 #include<string.h> 3 int main() 4 { 5 int input = 0; 6 printf("自学C语言\n"); 7 printf("你会好好学习吗?(1/0)>:"); 8 scanf("%d", &input); 9 阅读全文
posted @ 2022-08-12 17:40 PHJ15161147101 阅读(23) 评论(0) 推荐(0)