First page Back Continue Last page Graphics
When executed
- guitunes % testgetline
- Enter a value for my_i: 12
- Enter a name: Ray
- my_i = 12, name = Ray
This works as we would like it to work. Since the ignore moved the pointer past the /n, cin has to start scanning the new data entered.