#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int main() {
bool exit = true;
bool wrongssn = false;
string menu;
cout << "To add a record, type add.\n";
cout << "To find someone by SSN, type find by ssn\n";
cout << "to display all records, type display all\n";
while (exit == true) {
cin >> menu;
if (menu == "add") {
cout << "ye";
}
if (menu == "find by ssn") {
cout << "Type the SSN you wish to search by";
int ssn;
cin >> ssn;
if (!cin) {
cout << "invalid choice, retry.\n";
}
}
im trying to get my second if statement to print out, but when I run the program, if I type "find by ssn", it will not print anything and keep asking me for keyboard input until I manually close out of the program.