char array
摘要:
1#include<iostream>2#include<vector>3#include<string>4usingnamespacestd;56intmain()7{8constchar*p="hello";9intcount=0;10while(*p)11{12cout<<*p<<endl;13count++;14p++;15}1617constcharca[]={'h','e','l','l','o'};18constchar* 阅读全文
posted @ 2011-04-03 11:18 Ray Z 阅读(444) 评论(0) 推荐(0) 编辑