Basically I first takes an integer as input and then test case follows. My each test case is an string. I am suppose to print the string back if the starting patten of strin
cin.ignore() worked for me.
cin.ignore()
void House::provideRoomName() { int noOfRooms; cout<<"Enter the number of Rooms::"; cin>>noOfRooms; cout<