while 指针 字符串

#include <iostream>
using namespace std;
int main()
{char *a="l love C++";
while(*a!='\0')
{cout<<*a;
a++;
}
cout<<endl;
 return 0;
}
原文地址:https://www.cnblogs.com/zhangdashuai/p/3702190.html