-
实验6
实验任务4 代码 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售 -
实验六
task 1: // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 char subject[20]; // 考试科目 double perf; // 平时成绩 double mi -
实验六
任务1 点击查看代码 // P286例8.17 // 对教材示例代码作了微调,把输出学生信息设计成函数模块 // 打印不及格学生信息、打印所有学生信息均调用该模块实现 #include <stdio.h> #include <string.h> #define N 10 // 运行程序输入测试时,可 -
实验六
试验任务四 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 i -
实验6 文件I/O与异常处理
task1: 1 #include <iostream> 2 #include <string> 3 4 struct Contestant { 5 long id; // 学号 6 std::string name; // 姓名 7 std::string major; // 专业 8 int s -
实验六
任务一: 1.源代码: (1)contestant.hpp: #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string na -
高级语言程序设计第十次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500410 姓名:杜惟真 (1)编写一个程序, -
csq-蓝桥杯python-基础语法2-列表与循环语句基础
列表与循环语句基础 一、为什么需要列表? 1. 问题场景 用变量存储单个数据(如name = "Alice"),但存储班级所有同学名字需声明几十个变量,效率极低。 2. 列表的定义 列表(List)是Python中最常用的动态数据结构,可容纳多个有序元素,支持任意类型数据(数字、字符串等)。 元素间 -
NUIST 《程序设计基础》 实验5
第五次实验课~ Task1 <task1_1.c> 源代码 点击查看代码 #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[] -
实验5
实验任务1 task 1_1 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include<stdlib.h> 4 #include<string.h> 5 6 #define N 5 7 8 void input(int x[] -
实验五
实 验 1 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], int n, int *pmin, -
实验5
1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], int n, int *pmin, int * -
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500309 姓名:郑睿杰 1.目的 声明一个结 -
实验五 多态
Task1: 1.源代码: #include <iostream> #include <string> #include "publisher.hpp" // Publisher类:实现 Publisher::Publisher(const std::string &name_): name {na -
高级语言程序设计课程第九次个人作业
这个作业属于https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500430 姓名:黄华烨 声明一个结构体类型,用来存放某个学生 -
高级语言程序设计课程第五次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/14581 学号:102500411 姓名:陈鸿彬 一、8.11 二、9 -
高级语言程序设计第五次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/14581 学号:102500330 姓名:黄明浩 1.设计一个get -
实验任务4
实验任务1 问题1:连续存放,值相同 问题2:连续存放,值相同,相差16个字节,差值的含义是数组一行所占字节数 实验任务2 问题1:形参的书写是int x[] 实参书写是x 问题2:函数 input 的功能是将输入的数依次存入数组,函数 compute 的功能是找出数组中的最大和最小值,除去最大和最 -
实验四
实验1 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", sizeof(x)); -
实验4
task1.c 源代码 点击查看代码 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = { 1, 9, 8, 4 }; int i; printf(