0
How can I put "int x" after, "cin>>"? Because If I type in simply, gives me an error
3 Réponses
+ 7
int x;
cin >> x;
can you post your code so we can understand what you are trying to do
+ 6
You could do this
int x; cin >> x;
but technically it is still two lines.. and it decreases readability, so don't 😊
You are welcome!
+ 1
This way works well, I just wanted to make this happen in one line, btw thanks for answering