while 指针 字符串

#include <iostream>
using namespace std;
int main()
{char *a="l love C++";
while(*a!='\0')
{cout<<*a;
a++;
}
cout<<endl;
 return 0;
}
posted @ 2012-12-22 11:36  _一千零一夜  阅读(124)  评论(0编辑  收藏  举报