#include <stdlib.h>#include <string.h>const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; char name[20]; float ...
分类:
其他好文 时间:
2019-12-29 23:22:09
阅读次数:
100
1.向上转型: 父类 引用=new 子类(); 问题:无法调用子类有而父类没有的方法 代码演示: //向上转型 public class Demo1 { public static void main(String[] args) { Person p=new Student(); //父类Pers ...
分类:
编程语言 时间:
2019-12-29 18:43:24
阅读次数:
71
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-29 18:40:06
阅读次数:
53
// 从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student { int num; cha ...
分类:
其他好文 时间:
2019-12-29 18:35:53
阅读次数:
68
Part1:验证性实验 验证性实验2 正确 对比:二进制文件以二进制的方式存储,节省空间 文本文件解释格式为ASCLL编码,只能存储字符 #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct student { int ...
分类:
其他好文 时间:
2019-12-29 16:52:07
阅读次数:
76
#include <bits/stdc++.h> #include<math.h> using namespace std; const int MAX_LEN = 100005; struct Student{ int number; int grade; }temp[MAX_LEN]; int ...
分类:
其他好文 时间:
2019-12-29 16:35:43
阅读次数:
71
Part1 验证性实验2:运行结果正确 二进制文件和文本文件的区别: 二进制文件内容不可读,文本文件内容可读 #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct student { int num; char name ...
分类:
其他好文 时间:
2019-12-29 13:22:01
阅读次数:
78
1. #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int ...
分类:
其他好文 时间:
2019-12-29 13:02:42
阅读次数:
64
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-29 12:43:35
阅读次数:
47
1.用一条SQL 语句 查询出每门课都大于80 分的学生姓名 mysql> select * from students; + + + + | name | kecheng | fenshu | + + + + | zhangsan | yuwen | 81 | | zhangsan | shuxu ...
分类:
数据库 时间:
2019-12-29 12:39:29
阅读次数:
62