01 2020 档案

摘要:// from c++11 standardnamespace std { template <class T, T v> struct integral_constant { static constexpr T value = v; typedef T value_type; typedef i 阅读全文
posted @ 2020-01-17 13:38 MoonXu 阅读(660) 评论(0) 推荐(0) 编辑
摘要:当一个数据类型满足了”平凡的定义“和”标准布局“,我们则认为它是一个POD数据,非静态成员都是”平凡的“ 1.平凡的 2.平凡的 3.非静态成员“平凡的” 阅读全文
posted @ 2020-01-17 11:43 MoonXu 阅读(515) 评论(0) 推荐(0) 编辑
摘要:void swap (string& x, string& y); #include <iostream>#include <string.h> using namespace std; int main(){ string buyer("money"); string seller("goods" 阅读全文
posted @ 2020-01-17 09:22 MoonXu 阅读(333) 评论(0) 推荐(0) 编辑
摘要:(1) istream& getline (istream& is, string& str, char delim); istream& getline (istream&& is, string& str, char delim); (2) istream& getline (istream& 阅读全文
posted @ 2020-01-17 09:15 MoonXu 阅读(137) 评论(0) 推荐(0) 编辑
摘要:当出现这个悬浮小窗口时,只要按一下Ctrl,它就消失了 阅读全文
posted @ 2020-01-16 09:56 MoonXu 阅读(173) 评论(0) 推荐(0) 编辑
摘要:下载util-linux 安装bison 安装autopoint 安装autoconf 安装lib-tool-2 失败。换方案 下载e2fsprogs https://www.cnblogs.com/lanston/p/4097408.html 然后发现板卡中又mkfs,是mkfs.ext3这种命名 阅读全文
posted @ 2020-01-14 18:28 MoonXu 阅读(391) 评论(0) 推荐(0) 编辑
摘要:void push_back (char c);//在string的结尾放置一个字符 #include <iostream>#include <string> using namespace std; int main(){ string str("hello world"); str.push_b 阅读全文
posted @ 2020-01-10 20:19 MoonXu 阅读(1055) 评论(0) 推荐(0) 编辑
摘要:void pop_back();//弹出最后一个字符 #include <string>#include <iostream> using namespace std;int main(){ string str("hello world!"); str.pop_back(); cout << st 阅读全文
posted @ 2020-01-10 20:15 MoonXu 阅读(496) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示