摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; 阅读全文
posted @ 2019-12-30 22:44 张扬Sheep 阅读(106) 评论(2) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; 阅读全文
posted @ 2019-12-23 22:06 张扬Sheep 阅读(143) 评论(3) 推荐(0)
摘要: // 这个程序用于观察数组中的一组数据元素在内存中是否是连续存放的 // 以及数组元素的直接访问与间接访问 #include <stdio.h> #include <stdlib.h> const int N=3; int main() { int a[N] = {'Y','E','S'}; // 阅读全文
posted @ 2019-12-17 22:17 张扬Sheep 阅读(134) 评论(3) 推荐(0)
摘要: #include <math.h> #include <stdio.h> #include <stdlib.h> // 函数声明 void solve(double a, double b, double c); // 主函数 int main() { double a, b, c; printf( 阅读全文
posted @ 2019-12-03 21:44 张扬Sheep 阅读(109) 评论(1) 推荐(0)
摘要: #include <math.h> #include <stdio.h> #include <stdlib.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while 阅读全文
posted @ 2019-11-19 23:46 张扬Sheep 阅读(103) 评论(3) 推荐(0)
摘要: #include <stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; int y=3, z=4; printf("%d %d\n", 阅读全文
posted @ 2019-11-06 00:46 张扬Sheep 阅读(122) 评论(3) 推荐(0)
摘要: #include<stdio.h> int main() { printf("201983270491"); return 0; } #include<stdio.h> int main() { printf("hello,火星"); return 0; } #include<stdio.h> int product (int,int); int main (void) { int x,y,s; 阅读全文
posted @ 2019-10-20 22:35 张扬Sheep 阅读(78) 评论(1) 推荐(0)