#include <iostream>
using namespace std;
int main() {
string a = "Hello, World!";
cout << "a = " << a << endl;//输出a的值
return 0;
}
常量
#include <iostream>
using namespace std;
#define language "c++"
int main() {
// language = "jack";//给常量赋值会报错
cout << language << endl;
const string version = "java_8";
cout << version <<endl;
return 0;
}