:\FunshionMedia\C语言程序\Microsoft Visual Studio\c++1\C++面向对象\第一课时\实验0001\wy.cpp(9) : error C2664: 'strlen' : cannot convert parameter 1 from 'int [20]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
lwy.c
执行 cl.exe 时出错.
实验0001.exe - 1 error(s), 0 warning(s)
,求高人帮忙?谢谢
#include<iostream>
#include<string>
#include<cstring>
using namespace std;
void main()
{
int a[20]={1,2,3,4,5,6,7};
cout<<strlen(a)<<endl;
}
慕桂英3389331