Loading

摘要: 01背包问题 二维状态方程-代码思路: struct something{ int index;//物体编号 int m;//物体体... 阅读全文
posted @ 2020-01-19 14:16 modao 阅读(36) 评论(0) 推荐(0) 编辑
摘要: cpp输入输出加速 std::ios::sync_with_stdio(false); 解释:这个函数是一个“是否兼容stdio”的... 阅读全文
posted @ 2020-01-19 14:09 modao 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 算法训练 加法运算(指针的一个测试) #include using namespace std;int* GetTwoInts(){... 阅读全文
posted @ 2020-01-19 14:08 modao 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 蓝桥杯-基础练习-字母图形 动态分配空间实现,两个测试过不去,80分 #include using namespace std;i... 阅读全文
posted @ 2019-12-18 13:13 modao 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 蓝桥杯-基础练习-特殊回文数 问题描述123321是一个非常特殊的数,它从左边读和从右边读是一样的。输入一个正整数n, 编程求所有这... 阅读全文
posted @ 2019-12-18 13:11 modao 阅读(45) 评论(0) 推荐(0) 编辑
摘要: C:\\User\\(用户名)下找 .minttyrc文件。 贴配置。 BoldAsFont=-1 ThemeFile=dracula Locale=zh_CN Charset=UTF-8 Font=Monaco FontHeight=10 Foregroun... 阅读全文
posted @ 2019-06-18 22:23 modao 阅读(29) 评论(0) 推荐(0) 编辑
摘要: String driverName = "com.mysql.jdbc.Driver"; String userName = "用户名"; String userPwd = "密码"; String ... 阅读全文
posted @ 2019-04-03 12:18 modao 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 个人记录,方便回顾 IDEA警告:SQL dialect is not configured Idea能自动给我们检查拼接的sql语句的语法正确性,当然需要进行一定的配置。 在报警告的地方,单击过后,按下快捷键Alt+Enter进入设置, 然后点击Generi... 阅读全文
posted @ 2019-04-03 12:12 modao 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 设有一个表头指针为h的单链表。试设计一个算法,通过遍历一趟链表,将链表中所有节点的链接方向逆转,如图2.27所示。要求逆转结果链表的表头指针h指向原链表的最后一个结点。 #include #include "SingleList.h"using namespa... 阅读全文
posted @ 2018-09-27 20:13 modao 阅读(91) 评论(0) 推荐(0) 编辑