L
littlegirl
hi guys can some one help me here
i have to accept a number
and preform a linear search for the number
and if its not one of the number it has to say its invali
#include <iostream
using namespace std
int searchlist (int[],int,int)
int main(
const int Num_Account = 18
char Account[Num_Account]=
{"5658845, 4520125", "7895122, 8777541"
"8451277, 1302850"
"8080152, 4562555", "5552012, 5050552"
"7825877, 1250255"
"1005231, 6545231", "3852085, 7576651"
"7881200, 4581002" }
cout << "enter Number\n"
cin >> num
int searchlist(int list [],int num,int value
int index = 0
int position = -1
bool found = false
while (index < num &&!found
if (list == value
found = true
position = index
index++
return 0
i have to accept a number
and preform a linear search for the number
and if its not one of the number it has to say its invali
#include <iostream
using namespace std
int searchlist (int[],int,int)
int main(
const int Num_Account = 18
char Account[Num_Account]=
{"5658845, 4520125", "7895122, 8777541"
"8451277, 1302850"
"8080152, 4562555", "5552012, 5050552"
"7825877, 1250255"
"1005231, 6545231", "3852085, 7576651"
"7881200, 4581002" }
cout << "enter Number\n"
cin >> num
int searchlist(int list [],int num,int value
int index = 0
int position = -1
bool found = false
while (index < num &&!found
if (list == value
found = true
position = index
index++
return 0