puts impementation?

Is it possible to implement something like puts/printf/cout/etc using only the keywords that C/C++ offer? ie, can you print something to the console without depending on any external libraries?
Notice that printf, cout etc are not part of 'external libraries', they are part of the standard library which is part of C++.
To print stuff just with a programming language you should use assembly or try the C++ keyword for assembly code:
 
asm ( "Some assembly code here ( the language depends on the compiler ) "  );
See http://www.cplusplus.com/forum/general/10226/
It's basically what Bazzy said.
The problem is that I/O is system dependent, and it's not defined by the language.

Are you deploying on a small system where you won't have a standard library?
Last edited on
Are you deploying on a small system where you won't have a standard library?

No, I was simply curious. Anyway, thanks for clearing that up guys.
Topic archived. No new replies allowed.