02 2020 档案

摘要:1.保留有效数字问题 #include<iostream> #include<iomanip> #include "stdlib.h" using namespace std; int main(){ double PI=3.1415926; cout<<setprecision(3)<<PI<<e 阅读全文
posted @ 2020-02-27 13:21 *Sakura/* 阅读(3706) 评论(0) 推荐(0)
摘要:转载:https://www.cnblogs.com/stones-dream/p/10183210.html sort(first_pointer,first_pointer+n,cmp) 该函数可以给数组,或者链表list、向量排序。 实现原理:sort并不是简单的快速排序,它对普通的快速排序进 阅读全文
posted @ 2020-02-25 12:08 *Sakura/* 阅读(450) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/qq_33216029/article/details/96470266 https://blog.csdn.net/sevenjoin/article/details/81943864 题目: 1010: 试题4 离国庆多少天 Descriptio 阅读全文
posted @ 2020-02-23 15:01 *Sakura/* 阅读(423) 评论(0) 推荐(0)
摘要:c语言没有提供string类型,只能用char字符数组来代替,感觉麻烦,这里介绍一种字符串对象 参考:https://www.cnblogs.com/lifexy/p/8642163.html 引用头文件: #include <string> 注意:string对象不要和char 数组混用,不然会出 阅读全文
posted @ 2020-02-22 22:01 *Sakura/* 阅读(152) 评论(0) 推荐(0)