#include
using namespace std;
int main()
{
int index = -1;
int x, a[10];
cout << "输入x:";
cin >> x;
cout << "输入10个数:";
for(int i = 0; i < 10; ++i)
{
cin >> a[i];
if(x == a[i])
index = i+1;
}
cout << "输出结果:\n";
if(index != -1)
cout << "找到了,它是第" << index << "个数。";
else
cout << "没有找到";
return 0;
}