+ 1

Problems with cin and cout

Whenever I use cin to input a value and use cout to output the value, it always outputs the same values (like 0, 8, or 6) regardless of what I input. Why does this happen?

27th Jun 2019, 10:42 PM
George Vining
George Vining - avatar
2 Respostas
+ 3
Please show us your code, otherwise we would have to guess what might be wrong.
27th Jun 2019, 10:57 PM
HonFu
HonFu - avatar
+ 2
I tryed the same code again and it worked, so I think it was probably a internet connection problem or something because it’s happened like this before and works again when i get back on wifi. Thank you for the quick response!
27th Jun 2019, 11:12 PM
George Vining
George Vining - avatar