首页 > 编程语言 > 详细

c++

时间:2018-08-18 17:29:59      阅读:130      评论:0      收藏:0      [点我收藏+]

1、printf字符串

1 printf("%s", s,c_str());

输入字符串

1 cin >> s;

而不能用

1 scanf_s("%s", &s);

2、map的遍历

1 map<string, vector<Node>> mapp;
2 
3 for (auto it : mapp)
4 {
5     string s = it.first;
6     vector<Node> v = it.second;
7 }

 

c++

原文:https://www.cnblogs.com/lxc1910/p/9497555.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!