特牛网址导航

C++ 输出cout_std::cout << "收到消息超时!" << msgstr << std::endl; std-CSDN博客

网友收藏
文章浏览阅读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打印字符串数据