Cin causes the value of a variable to change unexpectedly
So I am following this book Programming: Principles and Practice Using C++ 3rd edition and in section 2.3 Author gives the following code:
So I am following this book Programming: Principles and Practice Using C++ 3rd edition and in section 2.3 Author gives the following code: