#include<iostream> using namespace std; string a="Hello World"; char b[]="Hello World"; char* c=(char*)"Hello World"; const char* d="Hello World"; int main(){ cout<<a<<"\n"; cout<<b<<"\n"; cout<<c<<"\n"; cout<<d; return 0; }
共 1 条回复