Publicar un comentario. Como ven es algo muy sencilla de aprender, espero les sirva. Unknown 22 de noviembre de , Unknown 16 de marzo de , Redav 20 de abril de , Unknown 17 de mayo de , Unknown 18 de mayo de , BRAA 8 de junio de , Unknown 31 de agosto de , Unknown 8 de septiembre de , Unknown 29 de mayo de , Alejandro Caro 10 de junio de , Unknown 4 de octubre de , Unknown 15 de noviembre de , Unknown 22 de marzo de , Unknown 28 de marzo de , Unknown 6 de julio de , And in addition, here two cusor positionning function that you can mix with standard cout output:.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 6 years, 9 months ago.
Active 6 years, 8 months ago. Viewed 2k times. I'm using windows console system 32, on visual studio Christophe Christine system calls a shell to execture the command. This is tremendously innefficient and not for game programming. On which OS are you working? Add a comment. Active Oldest Votes. As you refer to "cls" and not to "clear", I guess you're working with windows console: If you have a function gotoxy , it's possible to position on one line after the other and print a lot of spaces.
Edit: I understand that you use character based output, as you write a console app and not a full featured win32 graphic app.
Community Bot 1 1 1 silver badge. Christophe Christophe Well, i don't want to clear the whole screen, i just want to clear the shape before being printed once more, so that it i won't draw the shape in the whole screen, but only moving it. Christophe — UserNotFound. Christine I've made an edit to show how a partieal clearing is possible. Christine and rereading your question, I've also added two functions to get and set the cursor position. Now you should be fully equiped for your console game ;- — Christophe.
Sign up or log in Sign up using Google.
0コメント