07 2019 档案
摘要:JDBC概述 1. JDBC访问数据库的步骤 加载一个driver驱动 创建一个数据库连接 创建SQL命令发送器Statement 通过Statement发送SQL命令并得到结果 处理结果 关闭数据库资源(ResultSet,Statement,Connection) JDBC基本操作 1. 使用e
阅读全文
摘要:```c #include #include #include #define LIST_INIT_SIZE 100 #define LISTINCREMENT 10 #define Status int #define OVERFLOW -1 #define OK 1 #define ERROR 0 #define ElemType int typedef struct Node { ...
阅读全文
摘要:```c include include define LIST_INIT_SIZE 100 define LISTINCREMENT 10 define Status int define OVERFLOW 1 define OK 1 define ERROR 0 define ElemType
阅读全文
摘要:```c #include #include //标准头文件获取变长参数表,提供宏va_start,va_arg,va_end #include #define MAX_ARRAY_DIM 8 //定义数组的最大维度 #define ERROR 0 #define OK 1 #define OVERFLOW -1 typedef int ElemType; typedef ...
阅读全文
摘要:"题目传送门:" 解决方法:滑动窗口 解题步骤: 步骤1: 首先定义两个指针fast和low,fast表示窗口的左边,low表示窗口的右边,初始状态均置为0 定义dis变量用来记录当前窗口的大小,res记录最终的结果, 定义数组arr记录每一个字符出现的最后位置,初始化为 1 步骤2: low指针依
阅读全文