First page Back Continue Last page Graphics
When executed
- guitunes % testgetline
- Enter a value for my_i: 12
- Enter a name: my_i = 12, name =
It didn't wait for a name, but just went on with the output message and the name output was null.
This is a problem with the way cin works with integers and white space.