- 博客(6)
- 收藏
- 关注
原创 使用C++实现protobuf的序列化和反序列化
序列化:将数据结构或者对象转换成能够用于存储和传输的格式。二、protobuf的特点2.1protobuf的优点2.2protobuf的缺点2.3protobuf中的数据类型限定修饰符。
2023-08-04 13:54:39
1110
原创 基于多态的职工管理
职工管理系统.cpp#include<iostream>#include"workManager.h"using namespace std;#include"worker.h"#include"employee.h"#include"boss.h"#include"manager.h"int main() { WorkerManager wm; int choice = 0; while (true) { wm.show_Menu(); cout <
2021-12-17 11:46:24
294
原创 字符串位置调整
在str上,如果认为str[L…M]是左部分,str[M+1…R]是有部分请原地调整,只能用有限个变量,左->右 右->左假设str=“abcdef”左半部分字符串个数leftsize = 4public class Code01_RotateString { public static void main(String[] args) { String s = "abcdef"; int leftSize = 4; String
2021-07-12 20:07:07
370
原创 no suitable driver found解决方法
一是:连接URL格式出现了问题(Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/XX","root","XXXX") 二是:驱动字符串出错(com.mysql.jdbc.Driver)三是Classpath中没有加入合适的mysql_jdbc驱动...
2021-06-09 22:51:05
7140
原创 java学习笔记
java.util.Calendar类:日历类1.Calendar 类是一个抽象类,里面提供了很多操作日历字段的方法2.Calendar 类无法直接创建对象使用,里面有一个静态方法叫getInstance(),该方法返回了Calender 类的子类对象3.static Calendar getInstance()使用默认时区和语言环境获得一个日历public class DemoCalendar(){ public satice void main(String[] args){ Calenda
2021-06-04 09:42:18
449
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人