#include
using namespace std;
int main()
{
char s[] = "abcdef";
int m;
m = strlen(s);
cout << "char类型的长度为:" << m << endl;
return 0;
}
暑期编程PK赛 得CSDN机械键盘等精美礼品!

#include
using namespace std;
int main()
{
char s[] = "abcdef";
int m;
m = strlen(s);
cout << "char类型的长度为:" << m << endl;
return 0;
}
暑期编程PK赛 得CSDN机械键盘等精美礼品!