Learning C++/lua
#21
You mean in a console application?
Try issuing the command "cls" I think in C++ you can do:
Code:
System("cls");

not sure tho
Reply
Thanks given by:
#22
i already saw that but many people say it is unsafeTongue
Reply
Thanks given by:
#23
I don't think it's unsafe. The point is that it's only compatible with windows
Reply
Thanks given by:
#24
It's as unsafe as running external programs can be - if someone puts a malicious cls.exe with your app, your app will run that instead of the system cmd.
Reply
Thanks given by:
#25
Ah, that makes senseTongue Didn't think of that, good one
Reply
Thanks given by:
#26
Hmm, maybe you could try some sort of "curses" like thing for windows.
Reply
Thanks given by:
#27
If you're aiming just for windows support, then find an WinAPI call(s) to clear the console:
http://support.microsoft.com/kb/99261
Reply
Thanks given by:
#28
for anyone who wants to learn Lua, the mod Computercraft (http://www.minecraftforum.net/topic/8922...-monitors/) is a realy fun way of trying to learn it.
i learned allot from it.
Sethblings programming tutorials are also very usefull (episode 1: http://www.youtube.com/watch?v=DSsx4VSe-Uk)
Reply
Thanks given by:
#29
You can compile Lua to standalone executable ;O Thats pretty awesome Smile
Reply
Thanks given by:
#30
Actually that's the primary mode of distribution for Lua. It even has a plugins system that way, I believe it is called LuaRocks; you can download and install various packages for quite a lot of functionality - sockets, db access, xml parsing...
Reply
Thanks given by: NiLSPACE




Users browsing this thread: 14 Guest(s)