Is there a way to display a character on the screen that's faster than cout or printf?
i searched the board and found http://cboard.cprogramming.com/showt...ght=fast+print but that wasnt much help...
Is there a way to display a character on the screen that's faster than cout or printf?
i searched the board and found http://cboard.cprogramming.com/showt...ght=fast+print but that wasnt much help...
putchar() will do you fine.
You can do some interesting things with ostreams probably, but only if you're uhmm, interested, and dedicated and such~
OS: Windows XP Pro CE
IDE: VS .NET 2002
Preferred Language: C++.
> Is there a way to display a character on the screen that's faster than cout or printf
Well if it's just static text, then puts() is a lot better than printf()
But to be quicker still, you'd need to make your code non-portable and rely on something specific to your OS/Compiler.
what does dev-c++ have?
if you use c++ you some implementations of std::cout are faster than printf().
windows xp
> what does dev-c++ have?
http://faq.cprogramming.com/cgi-bin/...&id=1043284385
Well that's not the real answer, but scroll down to the windows version of clrscr(), then go and read those and the related functions on MSDN for accessing the console directly.