标签:return nbsp hello stream har clu name namespace space
int main() { char str[] = "hello world!"; cout << str << endl; system("pause"); return 0; }
2. C++风格的字符串:string 变量名 = “字符串值”
#include<string>
#include<iostream> using namespace std; #include<string> int main() { string str = "hello world!"; cout << str << endl; system("pause"); return 0; }
标签:return nbsp hello stream har clu name namespace space
原文地址:https://www.cnblogs.com/hackerteen/p/12359966.html