[求助]请问为什么我按书上打的运行不对
编译老是通过不了strlen这个
不知道为什么? 如果是错了应该怎么改?
#include <iostream.h>
void main()
{
char ch[]="how are you";
cout <<"size of array: " <<sizeof(ch) <<endl;
cout <<"size of string: " <<strlen("how are you") <<endl;
}
编译老是通过不了strlen这个
不知道为什么? 如果是错了应该怎么改?
#include <iostream.h>
void main()
{
char ch[]="how are you";
cout <<"size of array: " <<sizeof(ch) <<endl;
cout <<"size of string: " <<strlen("how are you") <<endl;
}