int main()
{
string house;
char found;
getline(cin, house);
cout << "TEST\n";
cin.ignore();
found = house.find("storage");
cout << int(found);
}
And it prints test after you put the input, but it makes you press a key to continue. Why is that? Ex. If I put the phrase, "storage rocks", and then press enter, it will print test but I have to hit enter again for it to continue. Why is that?