uacs2024

导航

上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页

2024年3月6日 #

带析构语义的类的C++异常处理

摘要: C++异常处理 #include <iostream> #include <string> using namespace std; class MyException { public: MyException(const string &message):message(message){} ~ 阅读全文

posted @ 2024-03-06 22:03 ᶜʸᵃⁿ 阅读(1) 评论(0) 推荐(0) 编辑

C++派生类构造函数与析构函数

摘要: 实例 #include <iostream> using namespace std; class Base1 {//基类Base1,构造函数有参数 public: Base1(int i) { cout << "Constructing Base1 " <<i<< endl; } ~Base1() 阅读全文

posted @ 2024-03-06 18:22 ᶜʸᵃⁿ 阅读(3) 评论(0) 推荐(0) 编辑

2024年3月5日 #

类继承的合法调用

摘要: #include <iostream> using namespace std; class A1{ public: void show1() { cout << "class A1" << endl; } }; class A2 : public A1{ void show2() { cout < 阅读全文

posted @ 2024-03-05 10:48 ᶜʸᵃⁿ 阅读(1) 评论(0) 推荐(0) 编辑

利用指针遍历数组

摘要: #include <cstddef> #include <iostream> using namespace std; int main() { int arr[6] = { 0 , 1 , 2 , 3 , 4 , 5 }; int* ptr = arr; int len = sizeof(arr) 阅读全文

posted @ 2024-03-05 10:37 ᶜʸᵃⁿ 阅读(1) 评论(0) 推荐(0) 编辑

2024年3月4日 #

c++在类外是不能直接调用私有成员函数的

摘要: c++在类外是不能直接调用私有成员函数的,比如 #include <iostream> using namespace std; class A3 { void show3() { cout << "class A3"<< endl; //注意,类内部默认是私有 } }; int main() { 阅读全文

posted @ 2024-03-04 21:18 ᶜʸᵃⁿ 阅读(26) 评论(0) 推荐(0) 编辑

C++ 简易STL 教程 与 C++ 标准库

摘要: C++ STL(标准模板库)是一套功能强大的 C++ 模板类,提供了通用的模板类和函数,这些模板类和函数可以实现多种流行和常用的算法和数据结构,如向量、链表、队列、栈。 C++ 标准模板库的核心包括以下三个组件: 组件描述 容器(Containers) 容器是用来管理某一类对象的集合。C++ 提供了 阅读全文

posted @ 2024-03-04 20:24 ᶜʸᵃⁿ 阅读(10) 评论(0) 推荐(0) 编辑

C++ Web 编程 未理解

摘要: C++ Web 编程 阅读全文

posted @ 2024-03-04 20:17 ᶜʸᵃⁿ 阅读(3) 评论(0) 推荐(0) 编辑

C++ 多线程 未理解

摘要: C++ 多线程 阅读全文

posted @ 2024-03-04 20:16 ᶜʸᵃⁿ 阅读(2) 评论(0) 推荐(0) 编辑

C++ 信号处理 未理解

摘要: C++ 信号处理 阅读全文

posted @ 2024-03-04 20:00 ᶜʸᵃⁿ 阅读(2) 评论(0) 推荐(0) 编辑

C++ 预处理器 未理解

摘要: C++ 预处理器 阅读全文

posted @ 2024-03-04 19:59 ᶜʸᵃⁿ 阅读(1) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页