Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool compareEmployee(string a)
- {
- cout << "Debug: Received: " << a << endl;
- for (int u = 0; u < THE_ARRAY_SIZE; u++)
- {
- //cout << STR1[u];
- //if inputted string is found in the array a.k.a database
- if (a.compare(STR1[u]) == 0)
- {
- performDeletion(u);
- return true;
- }
- }
- cout << "Error: No such employee!" << endl;
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement