- 1

How to change the (y) and (x)?

Well I want to a game and I don't know how to change yandx

29th Nov 2021, 9:11 AM
مصطفى المهدي
مصطفى المهدي - avatar
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
29th Nov 2021, 9:14 AM
Rishi
Rishi - avatar
29th Nov 2021, 9:43 AM
Simon Sauter
Simon Sauter - avatar
0
Sorry i didn't descripe enough I mean coordinates yandx
29th Nov 2021, 9:49 AM
مصطفى المهدي
مصطفى المهدي - avatar