12 2019 档案

摘要:#include <stdio.h>#include <stdlib.h>const int N=5;// 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; }ST 阅读全文
posted @ 2019-12-23 13:13 心跳永不止 阅读(104) 评论(2) 推荐(0)
摘要:#include <stdio.h> #include <stdlib.h> const int N=3;int main() { char a[N] = {'Y', 'E', 'S'}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0; i<N; i++ 阅读全文
posted @ 2019-12-17 16:35 心跳永不止 阅读(127) 评论(2) 推荐(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("Enter a,b,c: "); while( 阅读全文
posted @ 2019-12-02 22:51 心跳永不止 阅读(155) 评论(1) 推荐(0)