[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
CppPrintf

(C++) std::printf

Standard function for printing to screen.

  1. include <cstdio>
int main() { const int i = 123; std::printf("i equals: %i",i); }


Note that std::cout is a type-safe alternative over printf(). See iof for a third-party library that provides printf()-like format specifiers for std::cout and other streams.

Conversion specifiers

See specifier.

'printf' links

Code links



last edited (June 11, 2007) by bilderbikkel, Number of views: 4062, Current Rev: 13 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.