网站首页 站内搜索

搜索结果

查询Tags标签: std,共有 1098条记录
  • C++总结

    c++学习总结 现代C++语言(C++11、C++14、C++17特性):http://3ms.huawei.com/km/blogs/details/5813939 C++编译与执行的四阶段 a)预处理:根据文件中的预处理指令来修改源文件的内容, 产生.ii文件 b)编译:编译成汇编代码,产生汇编文件(.s文件) c)汇编:把汇编代码…

    2021/7/19 11:05:29 人评论 次浏览
  • 算法入门经典P140(stack)

    #include<iostream> using namespace std; #include<stack> #include<cstdio> const int maxn = 1000+5; int a[maxn]; int main(){int n;scanf("%d",&n);//3stack<int>s;int A = 1,B = 1;//A为进站,B为出站 for(int i=1;i<=n;…

    2021/7/19 9:05:06 人评论 次浏览
  • 算法入门经典P140(stack)

    #include<iostream> using namespace std; #include<stack> #include<cstdio> const int maxn = 1000+5; int a[maxn]; int main(){int n;scanf("%d",&n);//3stack<int>s;int A = 1,B = 1;//A为进站,B为出站 for(int i=1;i<=n;…

    2021/7/19 9:05:06 人评论 次浏览
  • C++20中的jthread和stop_token

    C++20中的jthread和stop_token 前言 C++20中引入了jthread类,相关介绍如下:The class jthread represents a single thread of execution. It has the same general behavior as std::thread, except that jthread automatically rejoins on destruction, and can be ca…

    2021/7/18 14:35:48 人评论 次浏览
  • C++20中的jthread和stop_token

    C++20中的jthread和stop_token 前言 C++20中引入了jthread类,相关介绍如下:The class jthread represents a single thread of execution. It has the same general behavior as std::thread, except that jthread automatically rejoins on destruction, and can be ca…

    2021/7/18 14:35:48 人评论 次浏览
  • C++基础-绑定类成员函数 bind(&MyStruct::add1, &my1, _1)

    使用bind可以将函数从类成员变量中提取出来 这里以结构体的类成员函数作为说明#include<iostream> #include<functional> using namespace std; using namespace std::placeholders;struct MyStruct{void add1(int a) {cout << a << endl;}void a…

    2021/7/18 14:05:55 人评论 次浏览
  • C++基础-绑定类成员函数 bind(&MyStruct::add1, &my1, _1)

    使用bind可以将函数从类成员变量中提取出来 这里以结构体的类成员函数作为说明#include<iostream> #include<functional> using namespace std; using namespace std::placeholders;struct MyStruct{void add1(int a) {cout << a << endl;}void a…

    2021/7/18 14:05:55 人评论 次浏览
  • 杭电OJ 2025(C++)

    查找最大元素 #include<iostream> using namespace std; #include<string>int main() {int i;string a;while(cin>>a){char max = a[0];for(i = 1 ; i < a.size() ; i++)if(max < a[i])max = a[i];for(i = 0 ; i < a.size() ; i++){cout<&l…

    2021/7/18 12:05:53 人评论 次浏览
  • 杭电OJ 2025(C++)

    查找最大元素 #include<iostream> using namespace std; #include<string>int main() {int i;string a;while(cin>>a){char max = a[0];for(i = 1 ; i < a.size() ; i++)if(max < a[i])max = a[i];for(i = 0 ; i < a.size() ; i++){cout<&l…

    2021/7/18 12:05:53 人评论 次浏览
  • 杭电OJ 2024(C++)

    C语言合法标识符 #include<iostream> using namespace std; #include<string>int main() {int i,j,n,k=0;string a;while(cin>>n){getline(cin,a);for(i = 0 ; i < n ; i++){ getline(cin,a);if(a[0] >= 0 && a[0]<= 9){cout<<&…

    2021/7/18 12:05:46 人评论 次浏览
  • 杭电OJ 2024(C++)

    C语言合法标识符 #include<iostream> using namespace std; #include<string>int main() {int i,j,n,k=0;string a;while(cin>>n){getline(cin,a);for(i = 0 ; i < n ; i++){ getline(cin,a);if(a[0] >= 0 && a[0]<= 9){cout<<&…

    2021/7/18 12:05:46 人评论 次浏览
  • std::string存储结构与字符串结束符

    (Owed by: 春夜喜雨 http://blog.csdn.net/chunyexiyu) 参考:std::string源码 参考:https://www.cplusplus.com/reference/string/string/ std::string确实是一个很棒的类结构。之前使用时,还在想,std::string如何保存末尾的字符串结束符,std::wstring时呢又是如何;…

    2021/7/16 23:16:45 人评论 次浏览
  • std::string存储结构与字符串结束符

    (Owed by: 春夜喜雨 http://blog.csdn.net/chunyexiyu) 参考:std::string源码 参考:https://www.cplusplus.com/reference/string/string/ std::string确实是一个很棒的类结构。之前使用时,还在想,std::string如何保存末尾的字符串结束符,std::wstring时呢又是如何;…

    2021/7/16 23:16:45 人评论 次浏览
  • ROS2学习之旅(21)——创建一个动作服务和客户节点(C++)

    动作是ROS中的一种异步通信形式,动作客户端向动作服务器发送目标请求,目标服务器向操作客户端发送目标反馈和结果。本文基于前一篇自定义动作博文。 1.创建一个action_turtorials_cpp包 1.1 创建一个action_turtorials_cpp包 在终端运行: cd ~/action_ws/src ros2 pkg …

    2021/7/16 12:05:23 人评论 次浏览
  • ROS2学习之旅(21)——创建一个动作服务和客户节点(C++)

    动作是ROS中的一种异步通信形式,动作客户端向动作服务器发送目标请求,目标服务器向操作客户端发送目标反馈和结果。本文基于前一篇自定义动作博文。 1.创建一个action_turtorials_cpp包 1.1 创建一个action_turtorials_cpp包 在终端运行: cd ~/action_ws/src ros2 pkg …

    2021/7/16 12:05:23 人评论 次浏览
扫一扫关注最新编程教程