会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
aomijia
博客园
首页
新随笔
联系
订阅
管理
2022年12月6日
实验六
摘要: 3.1.cpp #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x {97, 98, 99, 100, 101};
阅读全文
posted @ 2022-12-06 19:39 观湖
阅读(41)
评论(0)
推荐(0)
2022年11月27日
实验5
摘要: task4 pets.hpp #include<iostream> using namespace std; class MachinePets{ private: string nickname; public: const string get_nickname(){return nicknam
阅读全文
posted @ 2022-11-27 10:53 观湖
阅读(39)
评论(0)
推荐(0)
2022年11月7日
实验4
摘要: 实验任务5 vectorint.hpp 1 #pragma once 2 #include<cassert> 3 #include<iostream> 4 using namespace std; 5 class vectorint { 6 public: 7 vectorint(int m) {
阅读全文
posted @ 2022-11-07 10:58 观湖
阅读(27)
评论(0)
推荐(0)
2022年11月3日
GCH文件
摘要: GCH文件 GCH文件是将H文件当作CPP进行编译之后出现的结果, 在头文件进行编译后就会在文件夹中看到一个 “文件名.h.gch” 的文件。 那么在再次对gch文件进行编译的时候就会将gch当作cpp一样对待。 这是一种预编译,这样可以提高编译的速度,但是gch文件并不会随着你对头文件的修改而修改
阅读全文
posted @ 2022-11-03 17:10 观湖
阅读(1428)
评论(0)
推荐(1)
2022年10月25日
实验三
摘要: 实验 任务5 info.hpp 1 #pragma once 2 #include<iostream> 3 #include<string> 4 #include<vector> 5 using namespace std; 6 class info { 7 private: 8 string ni
阅读全文
posted @ 2022-10-25 17:42 观湖
阅读(35)
评论(0)
推荐(0)
2022年10月18日
实验二 类和对象(2)
摘要:
代码不是很简洁,有机会再改改。
阅读全文
posted @ 2022-10-18 22:34 观湖
阅读(27)
评论(0)
推荐(0)
2022年9月29日
实验1 类和对象(1)
摘要: 实验任务2 #include<iostream> using std::cout; using std::endl; class Point{ public: Point(int x0 = 0, int y0 = 0); Point(const Point &p); ~Point() = defau
阅读全文
posted @ 2022-09-29 22:21 观湖
阅读(39)
评论(0)
推荐(0)
公告