#include <stdio.h> int searchArray(int searchKey,int array[],int arrLen) { int KeyPos=-1; for (size_t i=0;i<arrLen;i++) { if(array[i]==searchKey) { KeyPos=i; break; } } return KeyPos; } int main () { //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 return 0; }