In this way I thought I would get around the problem, but it doesn't work as well. In fact, I get the same output! Which, by the way, is this:
Enter user's name:
Enter user's age:
Like it doesn't care to wait for you to type, it just jumps to the next instruction. Of course, if I try to use getline in a standard situation, it works just fine. So where did I mistake?
It was in the main, but yes, that was the problem! Thank you so much! I didn't think that was the problem because I thought the buffer would be cleared when calling a new function... apparently it doesn't.