posts - 137,comments - 0,views - 40595
01 2023 档案
C/C++ 数据结构单链表的实现(初始化、插入、删除、销毁)
摘要:#include <iostream> #include <Windows.h> #define MAX_SIZE 100 using namespace std; //单链表 typedef struct _LinkList { int data;//数据域 struct _LinkList* n 阅读全文
posted @ 2023-01-24 22:44 wshidaboss 阅读(484) 评论(0) 推荐(0) 编辑
C/C++ 顺序表的初始化、添加、插入、删除(删除顺序表中指定的所有元素)
摘要:#include <iostream> #include <stdlib.h> #define MAX_SIZE 100 using namespace std; typedef struct _SqList { int* elems; //顺序表的基地址 int size; //顺序表的大小 in 阅读全文
posted @ 2023-01-16 22:42 wshidaboss 阅读(742) 评论(0) 推荐(0) 编辑
C++ STL的简单应用(vector容器专题)
摘要:#include <iostream> #include <string> #include <stdlib.h> #include <vector> //#include <algorithm> using namespace std; //vector容器的简单应用 void demo1() { 阅读全文
posted @ 2023-01-12 00:05 wshidaboss 阅读(19) 评论(0) 推荐(0) 编辑
C/C++ 异常处理机制(例:文件拷贝)
摘要:异常是一种程序控制机制,与函数机制互补。 函数是一种以栈结构展开的上下函数衔接的程序控制系统,异常是另一种控制结构,它可以在出现“意外”时中断当前函数,并以某种机制(类型匹配)回馈给隔代的调用者相关的信息。 1.在异常发生第一现场,抛出异常 void function( ){ //... ... t 阅读全文
posted @ 2023-01-10 17:48 wshidaboss 阅读(89) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示