- 1
How to change the (y) and (x)?
Well I want to a game and I don't know how to change yandx
3 Answers
+ 4
Your question is not descriptive enough. So edit your question to provide enough information about your doubt.
I'm assuming x and y are integers. You can swap them using the below logic:
int temp=x;
x=y;
y=temp;
Now the values of x and y are changed
Having completely learnt the Sololearn C++ course, you should have been able to answer this yourself. So I recommend you learn it again more carefully
+ 1
Take a look at these guides on how to ask a question.
https://stackoverflow.com/help/how-to-ask
https://www.sololearn.com/blog/38/8-simple-rules-to-get-help-from-the-community
0
Sorry i didn't descripe enough I mean coordinates yandx