- 链接地址:https://blog.csdn.net/WWK0905/article/details/110632078
- 链接标题:C++ 输出cout_std::cout << "收到消息超时!" << msgstr << std::endl; std-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:5126
文章浏览阅读4k次。C++ 输出cout#include <cstring>#include <iostream>using namespace std;int main(){ const char *s = "hhhhh"; //字符串是const char*类型的,所以将字符串赋值给 char* 类型要加const关键字 _std::cout << "收到消息超时!" << msgstr << std::endl; std::cout打印字符串数据
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除