相关疑难解决方法(0)

cout << with char*参数打印字符串,而不是指针值

这个:

const char * terry = "hello";
cout<<terry;
Run Code Online (Sandbox Code Playgroud)

打印hello而不是的内存地址'h'.为什么会这样?

c++

55
推荐指数
4
解决办法
8万
查看次数

标签 统计

c++ ×1