Trivial C, C++ Programs.

Tag Archives: Linear Search

Linear Search in C++

Oh yeah, they ask us to make Linear Search TOO. This code is as simple as it gets. Sorry, but making it any simpler would make my eyes bleed. Here you go.   #include <iostream.h> #include <conio.h>   int linearSearch(int*, int, int, int);   int main() { int *sArray, mSize, i, elem, index;   cout<<"\n [...]