ICode9

精准搜索请尝试: 精确搜索
  • C语言结构体初始化例子2022-09-08 10:00:19

    #include <stdio.h> main() { struct student{ char no[6]; char name[8]; int score; }; struct student ab[10]={ { "2020001","张三1",156 },{ "2020002"

  • <算法笔记01>ST表2021-08-06 00:02:21

    st表 需求:输入一个序列 A [ n ] A[n] A[n]​,进行

  • 实验七2020-01-01 11:53:27

    1.从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上(修改29行后) // 从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student

  • 实验七2019-12-31 09:02:24

    Part 1: 1: // 从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student { int num; char name[20]; int score; }STU; int main() {

  • 实验七2019-12-29 23:54:47

    Part1验证性实验 验证性实验2 // 从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student { int num; char name[20]; int score; }STU

  • 实验72019-12-28 13:00:07

    #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; char name[20]; float objective; /*客观题得分*/ float subjective; /*

  • 实验七2019-12-28 11:02:11

    part1 ex1 更改后实验结果仍然正确 int main() { STU st, stmax, stmin; int i; FILE *fp; // 以只读文本方式打开文件file1.dat fp = fopen("file1.dat", "r"); if( !fp ) { // 如果打开失败,则输出错误提示信息,然后退出程序 printf("fa

  • 标题七2019-12-27 20:53:04

    #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct student { int num; char name[20]; int score; }STU; int main() { STU st, stmax, stmin; int i; FILE *fp; fp = fopen("file1.dat", "r"); if( !fp

  • 实验七2019-12-27 18:04:01

    Part1: 验证性实验:  1、如果事先不知道学生人数: #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct student { int num; char name[20]; int score; }STU; int main() { STU st, stmax, stmin; int i; FILE *fp; fp =

  • 第七次实验2019-06-24 21:38:24

    part1: // 从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上#include <stdio.h> #include <stdlib.h>#define N 10// 定义一个结构体类型STU typedef struct student { int num; char name[20]; int score;}STU;int main() { STU st, stmax, s

  • 第七次实验~2019-06-24 19:51:22

    part 1: 验证性实验2 对line29作修改后: #include <stdio.h> #include <stdlib.h>#define N 10// 定义一个结构体类型STU typedef struct student { int num; char name[20]; int score;}STU;int main() { STU st, stmax, stmin; int i; FILE *fp; // 以只

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有