www.pudn.com > cp3.rar > p3-165.cpp
#include #include //main()函数 void main( void ) { //声明字符数组 char string[]="This is a test."; int n; //获得字符串的长度 cout<<"string:"<>string; n=strlen(string); cout<<"The length of "<<"\""<