#include <iostream>
int func(int n,a,int m);
void main()
{int a[]={45,15,285,28,25,14,3,1};
int data;
cin>>data;
int check;
check=func(data,a,8);
if(check==8){
cout<<"ûÓÐÕÒµ½"<<data<<endl;
}
cout << data<<"ÔÚÊý×éÖеÄλÖÃΪ£º"<<check+1<<endl;
程序错误原因为:error C2297: '<<' : illegal, right operand has type 'char [19]'
但我觉得的没错啊。
谢谢!!