vs 2022 doesnt recognize getline as a member of std
I’m trying to write a small program however the part that user has to answer if they wanna repeat or not has an issue, which is if use enter without typing anything the cin will just makes empty lines like the screen shot I uploaded. enter image description here
so I tried to use getline but the complier doesn’t recognize it, so I tried to remove std::ws, didnt help; I also tried to change char to string for repeat that way getline can get the entire thing instead of 1 char, but still didnt work here is my code