Loading

上一页 1 ··· 81 82 83 84 85
摘要: 今天蓝桥杯刷题时发现一道字符串排序问题,突然想起next_permutation()函数和prev_permutation()函数。 就想写下next_permutation()的用法 next_permutation(start,end),和prev_permutation(start,end)。 阅读全文
posted @ 2020-01-15 19:15 RioTian 阅读(760) 评论(0) 推荐(0)
摘要: A. Watermelon time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output One hot summer day Pete and 阅读全文
posted @ 2020-01-14 15:43 RioTian 阅读(434) 评论(0) 推荐(0)
摘要: 我的方式是把结构体中定义的 char * 换成string #include <iostream> #include<string> using namespace std; class Student { public: void setname(string name); void setage 阅读全文
posted @ 2020-01-12 15:40 RioTian 阅读(661) 评论(0) 推荐(1)
摘要: C++primer(第五版)1.51练习章节需要有一个Sales_item类,但是给的网站找不到,直接复制下面就好咯: #ifndef SALESITEM_H #define SALESITEM_H #include <iostream> #include <string> class Sales_ 阅读全文
posted @ 2020-01-07 11:35 RioTian 阅读(1546) 评论(0) 推荐(1)
摘要: 从C语言开始正式学习C++,但是一上来输出位数就懵了,查资料才知道C++需要使用 “ setprecision ”函数。自己总结一下。 首先说C++代码 #include <iomanip> //setprecision(n)函数在 iomanip 头文件中 //第一种写法 cout<<setios 阅读全文
posted @ 2020-01-05 16:29 RioTian 阅读(7422) 评论(1) 推荐(2)
该文被密码保护。 阅读全文
posted @ 2019-12-28 20:15 RioTian 阅读(106) 评论(0) 推荐(0)
上一页 1 ··· 81 82 83 84 85