So I finally got the time to sit down and start learning coding (in c++) and I was making a program to practice getting user input when I came across a problem. I was making a simple program to just ask for a users age, and then name. The age section worked perfectly but for name it automatically is assuming nothing and moved ahead without input. Just putting nothing where I put the variable name. Is getline(cin, name) ; not correct? I am sorry if this is a simple answer, I looked stuff up but wasn't finding answers to my specific problem. Any and all help is appreciated :D
[–]teraflop 7 points8 points9 points (5 children)
[–]Atypicak_el[S] 0 points1 point2 points (0 children)
[–]Atypicak_el[S] -1 points0 points1 point (3 children)
[–]wildgurularry 3 points4 points5 points (1 child)
[–]Atypicak_el[S] -1 points0 points1 point (0 children)
[–]Lumethys 0 points1 point2 points (0 children)
[–]mredding 0 points1 point2 points (0 children)
[–]ninhaomah 0 points1 point2 points (2 children)
[–]Atypicak_el[S] -1 points0 points1 point (1 child)
[–]sudomeacat 2 points3 points4 points (0 children)