+ 1
The cin command
Basically I've been replacing int x = 4; with int x; cin >> x So its easier to try different inputs instead of constantly having to change code
2 odpowiedzi
+ 1
I don't think this is a good idea, when you start making big programs stuff like this might confuse you or override some values
0
It's better to assign 0 for int type. Like this int x=0;