摘要:
实验一 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student { int id; /*学生学号 */ char name[20]; /*学生姓名 */ char subje 阅读全文
摘要:
实验1 #include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", & 阅读全文
摘要:
实验一 不能,因为一元二次方程的根有两个,而函数的返回值无法做到返回两个根的值。 实验二 #include<stdio.h> long long fac(int n) { static long long p=1; p=p*n; return p; } int main() { int i,n; p 阅读全文
摘要:
实验一 # include<stdio.h> # include<stdlib.h> # include<math.h> int main(){ float a,b,c,x1,x2; float delta,real,imag; printf("请输入a,b,c:"); while(scanf("% 阅读全文
摘要:
#include <stdio.h> int main() { int a = 5, b = 7, c = 100, d, e, f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d = %d, e = %d, f = %d, ", d, e, f); retu 阅读全文
摘要:
#include <stdio.h> int main() { printf("my stuno is ;202083450104,2020 are you kidding me\n"); return 0; } #include <stdio.h> int main() { while(1) pr 阅读全文