0
How to move thing in C++?
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
+ 7
what sort of movement are you talking about??
+ 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
+ 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
+ 3
Try: move(thing)
+ 1
how?
+ 1
thx!
0
But it's not joke. Like when you doing game how to move characther
0
Sami khan what sir the use of return 0 in c while printing something