题目要求 输入一个数n,然后输入n个数值各不相同的整数,再输入一个值x, 输出这个值再数组中的下标。若不在数组中则输出-1。 实现代码 #include<stdio.h> int main() { int x; int Buff[200]; while (scanf_s(<