会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
abcdefg-gaoyuan
博客园
首页
新随笔
联系
订阅
管理
2022年12月24日
实验6 文件应用编程
摘要: 实验4 程序源码 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 4 int main() { 5 FILE* fp; 6 fp = fopen("data4.txt", "r"); 7 if (fp == NULL) { 8 p
阅读全文
posted @ 2022-12-24 17:23 ABCDEFGOGOGO
阅读(27)
评论(0)
推荐(0)
2022年12月21日
实验5 结构体应用编程
摘要: 实验任务三 程序源码 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include<string.h> 4 #include<stdlib.h> 5 #define N 100 6 typedef struct { 7 cha
阅读全文
posted @ 2022-12-21 09:25 ABCDEFGOGOGO
阅读(38)
评论(0)
推荐(0)
2022年12月3日
oop 实验6 模板类和文件I/O
摘要: task3 程序源码 task3_1.cpp 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <iostream> 3 #include <fstream> 4 #include <array> 5 #define N 5 6 using namespa
阅读全文
posted @ 2022-12-03 15:16 ABCDEFGOGOGO
阅读(44)
评论(0)
推荐(0)
2022年11月26日
oop 实验5 继承和多态
摘要: task1_1 程序源码 task1_1.cpp 1 #include <iostream> 2 #include <map> 3 using namespace std; 4 int main() { 5 map<int, char> grade_dict{ {1, 'A'}, {2, 'B'},
阅读全文
posted @ 2022-11-26 12:01 ABCDEFGOGOGO
阅读(52)
评论(0)
推荐(0)
2022年11月24日
实验4 数组应用编程
摘要: task1_1 程序源码 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #define N 4 4 int main() { 5 int a[N] = { 1,2,3,4 }; 6 char b[N] = { 'a', 'b',
阅读全文
posted @ 2022-11-24 21:13 ABCDEFGOGOGO
阅读(29)
评论(0)
推荐(0)
2022年11月6日
实验4 类与数组、指针
摘要: 实验任务一: point.hpp 1 #pragma once 2 #include <iostream> 3 using namespace std; 4 class Point { 5 public: 6 Point() : x{ 0 }, y{ 0 } {} 7 Point(int x0, i
阅读全文
posted @ 2022-11-06 21:44 ABCDEFGOGOGO
阅读(38)
评论(1)
推荐(0)
2022年11月2日
实验2 C语言控制语句应用编程
摘要: 实验任务一: task1.c 1 #include <stdio.h> 2 #include <time.h> 3 #include <windows.h> 4 #include <stdlib.h> 5 #define N 30 6 void print_spaces(int); 7 void p
阅读全文
posted @ 2022-11-02 13:04 ABCDEFGOGOGO
阅读(159)
评论(1)
推荐(0)
2022年10月25日
实验3 数组、指针与现代C++标准库
摘要: 实验任务5: info.hpp文件源码 1 #pragma once 2 #include <string> 3 #include <iostream> 4 #include <iomanip> 5 using namespace std; 6 class info { 7 public: 8 in
阅读全文
posted @ 2022-10-25 13:11 ABCDEFGOGOGO
阅读(41)
评论(1)
推荐(0)
2022年10月20日
实验2 C语言控制语句应用编程
摘要: task1.c 源代码: 1 #include <stdio.h> 2 #include <time.h> 3 #include <stdlib.h> 4 #define N 5 5 int main() { 6 int number; 7 int i; 8 9 srand(time(0)); 10
阅读全文
posted @ 2022-10-20 09:42 ABCDEFGOGOGO
阅读(64)
评论(0)
推荐(0)
2022年10月16日
实验2 类和对象(2)
摘要: 实验任务4: 程序源码: complex.hpp 1 #pragma once 2 #include <iostream> 3 #include <cmath> 4 using namespace std; 5 class Complex { 6 public: 7 Complex(double r
阅读全文
posted @ 2022-10-16 12:39 ABCDEFGOGOGO
阅读(35)
评论(2)
推荐(0)
下一页
公告