[讨论]?????????????????????????????
#include<iostream>
using namespace std;
int main()
{
int index=1;
int searchNumber=25,numElements=101;
int myArray[102];
int fun1();
cout<<fun1()<<endl;
for (int i=0;i<numElements;i++)
{
int myArray[102]={fun1()};
if (myArray[i]==searchNumber)
{
index=i;break;
}
}
if(index!=NULL)
cout << "Number found at index " << index << endl;
else
cout <<"Number not found in array." << endl;
system("pause");
return 0;
}
int fun1()
{
int sub_f[101];
for(int x=1;x<100;x++)
{
sub_f[101]=x;
}
return sub_f[101];
}