C++ : How to write a function to check whether a number entered by the user is in the array?

前端 未结 0 545
盖世英雄少女心
盖世英雄少女心 2020-11-30 05:39

The function should return the index of the element if the element is in the array or -1 if the element is not in the array.

 int function(int a[], int length         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题