代码改变世界

08 2018 档案

摘要:来自 :https://www.cnblogs.com/zsychanpin/p/7048795.html 问题:stl中的vector容器经常造成删除假象,这对于c++程序猿来说是极其讨厌的,《effective stl》大师已经将之列为第17条,使用交换技巧来修整过剩容量。 内存空洞这个名词是网 阅读全文
posted @ 2018-08-28 16:40 Lyp_02 阅读(640) 评论(0) 推荐(0)
摘要:来自:https://www.cnblogs.com/AbcFly/p/6239287.html 这个对经常在OJ上做题的童鞋们很有用。OJ基本都是用标准输入输出(USACO除外)。但如果你在调试的时候也都是从控制台输入,那就太浪费宝贵的时间了。我们可以重定向标准输入,调试的时候从文件读,提交时从标 阅读全文
posted @ 2018-08-27 17:09 Lyp_02 阅读(151) 评论(0) 推荐(0)
摘要:来自:https://www.cnblogs.com/hdk1993/p/5853233.html 阅读全文
posted @ 2018-08-27 16:49 Lyp_02 阅读(57) 评论(0) 推荐(0)
摘要:来自:https://blog.csdn.net/qq_21882325/article/details/65445810 阅读全文
posted @ 2018-08-26 19:19 Lyp_02 阅读(104) 评论(0) 推荐(0)
摘要:来自:https://www.cnblogs.com/devilmaycry812839668/p/6353807.html c++ 中 char 与 string 之间的相互转换问题 第一部分: 将 char 或者 char [] 转换为 string 可以直接赋值,转换。 第二部分: 将 str 阅读全文
posted @ 2018-08-26 16:06 Lyp_02 阅读(98) 评论(0) 推荐(0)
摘要:来自 https://www.cnblogs.com/lanjianhappy/p/6861728.html sscanf() 从一个字符串中读进与指定格式相符的数据 sscanf() 从一个字符串中读进与指定格式相符的数据. 函数原型: Int sscanf( string str, string 阅读全文
posted @ 2018-08-20 10:02 Lyp_02 阅读(100) 评论(0) 推荐(0)
摘要:参考:https://www.ics.uci.edu/~eppstein/180a/970417.html Minimax and negamax search: Breadth First and Depth First Search; Negamax Code As described abov 阅读全文
posted @ 2018-08-06 14:16 Lyp_02 阅读(735) 评论(0) 推荐(0)
摘要:来自: http://web.cs.ucla.edu/~rosen/161/notes/alphabeta.html 阅读全文
posted @ 2018-08-05 10:15 Lyp_02 阅读(56) 评论(0) 推荐(0)