-
抄写作业
#include struct student { int num; char name[20]; float score; }; int main() { struct student stu[5]={{10101,"lili",78},{10103,"gygy",98.5},{10106,"fttf",86},{10108,"bbhh",73},{10110,... -
第四次作业(抄写第九章作业)
例题一 把一个学生的信息(包括学号、姓名、性别、住址)放在一个结构体变量中,然后输出这个学生的信息 例题二 输入2个学生的学号,姓名和成绩,输出成绩较高的学生的学号,姓名和成绩。 101 li 100102 er 89101 li 100.00 Process exited after 177.3 -
作业 4.9
1 结果: num:10101 name:LiLin sex:M addr:123 bei jing road Process exited after 0.4208 seconds with return value 50 请按任意键继续. . . 2 结果: 001 ke 77 002 fe 9 -
例题作业
1.#include #include main() { struct student {int num; char name[20]; char sex; int age; float score; char addr[30]; }; } 2.#include #include main() { struct Date { int month; int day; int year; }... -
手抄作业
#include #include main() { struct student {int num; char name[20]; char sex; int age; float score; char addr[30]; }; } -------------------------------- Process exited after 0.9698 seconds with ret... -
抄写作业
9.#include struct student { int num; char name[20]; char sex; int age; }; struct student stu[3]={{10101,"Li Lin",'M',18},{10102,"Zhang Fang",'M',19},{10103,"Wang Min",'F',20}}; int main() { struc... -
吕万鑫 第五次
#include #define PI 3.1415926 int main() { float l,s,r,v; printf("input radius:"); scanf("%f",&r); l=2.0*PI*r; s=PI*r*r; v=4.0/3*PI*r*r*r; printf("l=%10.4f\ns=%10.4f\nv=%... -
例题抄写
/*9.1学生(学号姓名 型别 住址)放在一个结构体变量中 住处之恩个学生的信息 */ //l老师,这道题有问题,我的电脑没有报错但是也没有警告,但运行时就是显示:程序已停止工作 /* 9.3 三个候选人 每个选民只能投一人 编一个统计选票的程序 先后输入被选人名字最后输出结果 */ liuliul -
SICP 2.18 2.19 代码
2.18 要求反转参数表 2.19 要求写出兑换零钱方式计数程序,并且零钱种类可变 lang planet neil/sicp ;;2.18 (define (reverse input list) (if (null? (cdr input list)) input list (append (r -
将一个整数m分成n个整数之和
放苹果 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 33671 Accepted: 20830 Description 把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1