Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void advancedSearch()
- {
- int counter = 1;
- string input_String[numbersOf_Attributes];
- string output_String[numbersOf_Attributes] = {
- "Employee Name", "Country", "Designation", "Gender", "Level of Education",
- "Employee ID", "Date Of Birth", "Height", "Weight", "Years of working",
- "Basic Salary", "Allowances"};
- cout << "Search by the followings\n";
- cin.clear();
- cin.ignore(10000, '\n');
- for (int n = 0; n < numbersOf_Attributes; n++)
- {
- cout << counter << ". ";
- cout << output_String[n];
- if (n == 6)
- {
- cout << " in DD/MM/YYYY";
- }
- cout << " (Press Enter for none | \"< or >\" before numbers)";
- cout << endl;
- cout << "-> ";
- getline(cin, input_String[n]);
- counter++;
- }
- /*
- cout << "Inputted Strings:\n";
- for (int v = 0; v < numbersOf_Attributes; v++)
- {
- //cout << "Length Of Input->" << input_String[v].length() << " ";
- cout << output_String[v] << ": " << input_String[v] << endl;
- }
- */
- bool flag;
- flag = matching_Cases(input_String);
- //flag = matching_Cases(input_String, numbersOf_Attributes);
- if (flag == false)
- {
- cout << "*****************************************************************" << endl;
- cout << "\n\n\n\n\n";
- cout << "Input Error\n";
- cout << "\n\n\n\n\n";
- cout << "*****************************************************************" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement