Write a function int search(int a[], int b[], int M, int N)
which has a return value of the number of elements which are found in both
a and b. It should do this as effecently as possible.
struct Client { char f_name[40]; //first name char l_name[40]; //last name double money; // how much money do they have? }An entry is considered a duplicate if and only if the first and last names match exactly. In the case of a duplicate entry you are to use the newer list's value for the money field in your list. Your function should be of the following form:
Client * merge(Client * oldlist, Client * newlist)
The code you write for this part should be able to be compiled under
g++.
That is, we want exact C++ syntax.
You cannot use STL for this question
0 2 4 6 8 1 9 7 5 3 0 2 4 6 8 1 9 7 5 3 0 1 4 6 8 2 9 7 5 3 0 1 2 6 8 4 9 7 5 3 0 1 2 3 8 4 9 7 5 6 0 1 2 3 4 8 9 7 5 6 0 1 2 3 4 5 9 7 8 6 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9