-
实验7
task3 问题一:"\'"的意思就是单个字符',带不带反斜杠都一样; 问题二:防止给songs[][]这个二维数组赋值时超过它的行数,导致系统错误; task4 1 #include<stdio.h> 2 #include<string.h> 3 #define N 100 4 int main( -
实验6
task1 // P286例8.17 // 对教材示例代码作了微调,把输出学生信息设计成函数模块 // 打印不及格学生信息、打印所有学生信息均调用该模块实现 #include <stdio.h> #include <string.h> #define N 2 // 运行程序输入测试时,可以把N改小一 -
实验6
实验任务4 源代码 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 double -
实验6
task-4 源代码 #include <stdio.h> #include<stdlib.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 dou -
实验6
实验任务四 #define _CRT_SECURE_NO_WARNINGS // 针对VS环境的安全检查处理 [cite: 1182] #include <stdio.h> #include <string.h> #define N 10 // 定义图书信息结构体 [cite: 621] typed -
实验6
实验任务4 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include<stdlib.h> 4 #include<string.h> 5 6 #define N 10 7 typedef struct { 8 char isbn -
实验六
任务4 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 double sales_ -
实验6
实验任务1: // P286例8.17// 对教材示例代码作了微调,把输出学生信息设计成函数模块// 打印不及格学生信息、打印所有学生信息均调用该模块实现 #include <stdio.h>#include <string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输 -
实验7
实验任务4 源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 int main(){ 5 FILE *fp; 6 char ch; 7 int line=0; 8 int char_count=0; 9 fp=fo -
实验六
task4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 i -
task6
1. 实验任务1 1 #include <stdio.h> 2 #include <string.h> 3 #define N 10 // 运行程序输入测试时,可以把N改小一些输入测试 4 5 typedef struct student { 6 int id; // 学号 7 char name[ -
实验6
实验任务4 点击查看代码 #include<stdio.h> #define N 10 typedef struct { char isbn[20]; char name[80]; char author[80]; double sales_price; int sales_count; } Boo -
实验6
实验任务4 代码: 点击查看代码 #include <stdio.h> #include<stdlib.h> #define N 10 typedef struct { char isbn[20]; char name[80]; char author[80]; double sales_price -
实验6
task4 点击查看代码 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; -
实验6
#include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 int sal -
实验6
实验任务4 #include <stdio.h> #include<stdlib.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double s -
实验6
task4 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define N 10 typedef struct { char isbn[20]; char name[80]; char author[80]; double sales_pri -
实验6
任务4 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 double sales_ -
实验6
task1 #include <stdio.h> #include <string.h> #define N 10 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 char s -
实验7
task4 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 4 int main() { 5 FILE* fp; 6 int ch; 7 int lines = 0; 8 int chars = 0; 9 10 fp = fopen(