13 #include <simpletext.h> 24 virtual void puts (
char const string[]) {
41 putStr(
"Hello from the Simple function!\n");
42 myPrinter.
puts(
"Hello from PropWare's Printer!\n");
43 myPrinter.
print(
"Hello from yet another Printer function!\n");
44 myPrinter.
printf(
"All methods have their own merits. Choose one that works well for you.\n");
45 myPrinter.
println(
"Printer::println() can be handy if you just want to print a single string");
46 myPrinter <<
"For lovers of C++ streams, you can even use the << operator!\n";
virtual void puts(char const string[])
Send a null-terminated character array. Though this method could be created using put_char...
void printf(const char fmt[], const T first, const Targs...remaining) const
Similar in functionality to the C-standard function printf.
Container class that has formatting methods for human-readable output. This class can be constructed ...
void puts(const char string[]) const
Send a null-terminated character array.
virtual void put_char(const char c)
Print a single character.
Interface for all classes capable of printing.
void print(const char c, const Format format=DEFAULT_FORMAT) const
Print a single character.
void println(const char string[]) const
Print a null-terminated string followed by a newline (' ')