返回顶部

一缕半夏微光

温柔半两,从容一生

导航

2021年11月27日 #

软件设计22|状态模式(C++)

摘要: 用C++模拟实现课堂上的“银行账户”的实例,要求编写客户端测试代码模拟用户存款和取款,注意账户对象状态和行为的变化。 “银行账户”实例: 一、效果如下: 二、类图如下: 三、代码如下: 1 #include<iostream> 2 using namespace std; 3 4 class Acc 阅读全文

posted @ 2021-11-27 21:21 一缕半夏微光 阅读(89) 评论(0) 推荐(0) 编辑

java.sql.SQLException: The MySQL server is running with the --secure-file-priv option so it cannot execute this statement的解决办法

摘要: 今天在写程序的时候,需要从数据库中导出一些数据,然后就遇到了这个java.sql.SQLException: The MySQL server is running with the --secure-file-priv option so it cannot execute this statem 阅读全文

posted @ 2021-11-27 14:39 一缕半夏微光 阅读(879) 评论(0) 推荐(0) 编辑