Whoever said so, they were wrong. For sure "printf" can be used without any problem.
printf is a function that prints formatted text to the standard output stream (stdout). To make use of it in C++, you must include cstdio or any file that includes cstdio. For more information, see related links.
Wikipedia offers a great article about printf. They even provide samples of coding that is used in programs. If further assistance is needed try the website C Plus Plus.
I believe, you can use C-function - printf().
#include <iostream> int main() { printf( " *\n***\n *\n" ); return( 0 ); } Output: *****
input is the << operator and output is the >> operator
void infinte (long l) { printf ("I will never stop #%ld\n", l); infinte (l+1); }
printf();
Every C plus plus program that is a main program must have the function 'main'.
An entry point, usually main().
All C++ programs require an entry point and the main function provides that entry point.
try to usecondition ? value if true : value if falseor: if (printf ("Hello")) {}
In php mathmatical operations treat null like 0, so any number plus null equals itself. For example #!/usr/local/bin/php printf ("%d\n", null+6); printf ("%d\n", 6+null); ?> output: 6 6