while 指针 字符串 #include <iostream> using namespace std; int main() {char *a="l love C++"; while(*a!='\0') {cout<<*a; a++; } cout<<endl; return 0; }