0

How to move thing in C++?

1st Apr 2018, 10:08 AM
Emir Öztürk
Emir Öztürk - avatar
9 Réponses
+ 3
L00P3R I like that your answer looks like a joke, but is actually a valid answer. There is a std::move which takes a thing as argument ^^ https://code.sololearn.com/cMY8I6E8A24r/?ref=app Here I used it to reverse a string (method 7): https://code.sololearn.com/cfXMhtnzYC9e/?ref=app
1st Apr 2018, 10:31 AM
Alex
Alex - avatar
+ 7
what sort of movement are you talking about??
1st Apr 2018, 10:09 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 5
To move things in C++ you must know about any one of these graphics library (graphics.h , SFML, SDL, Open Gl). If you don't know about them try moving text on screen by using loops
1st Apr 2018, 10:40 AM
Junaid Siddiqui
Junaid Siddiqui - avatar
+ 5
Emir Öztürk for(i=0;i<10;i++) { cout<<setw(i)<<#<<endl; clrscr(); delay(100); } This will move the # character 10 times ahead. before running the code include iomanip.h, dos.h,conio.h,iostream.h
1st Apr 2018, 10:47 AM
Junaid Siddiqui
Junaid Siddiqui - avatar
+ 3
Try: move(thing)
1st Apr 2018, 10:13 AM
L00P3R
L00P3R - avatar
+ 1
how?
1st Apr 2018, 10:41 AM
Emir Öztürk
Emir Öztürk - avatar
+ 1
thx!
1st Apr 2018, 10:48 AM
Emir Öztürk
Emir Öztürk - avatar
0
But it's not joke. Like when you doing game how to move characther
1st Apr 2018, 10:39 AM
Emir Öztürk
Emir Öztürk - avatar
0
Sami khan what sir the use of return 0 in c while printing something
14th Jul 2019, 7:03 AM
Sai