#include <string>
#include <iostream>
#include <iomanip>
#include <vector>
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
Example program to test print auxiliaries.
- Author
- mdejong
Definition in file examples/Jeep/JPrint.cc.
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 16 of file examples/Jeep/JPrint.cc.
31 catch(
const exception &error) {
32 FATAL(error.what() << endl);
35 for (
int value = 1; value < 1000000000; value *= 10) {
36 cout <<
"CENTER <" <<
CENTER(12) << value <<
">" << endl;
39 for (
int value = 1; value < 1000000000; value *= 10) {
40 cout <<
"FILL <" <<
FILL(12,
'.') << value <<
">" <<
FILL() << endl;
43 for (
int value = 1; value < 1000000000; value *= 10) {
44 cout <<
"RIGHT <" <<
RIGHT(12) << value <<
">" << endl;
47 for (
int value = 1; value < 1000000000; value *= 10) {
48 cout <<
"LEFT <" <<
LEFT(12) << value <<
">" << endl;
51 for (
double value = 0.123456; value < 100000; value *= 10) {
52 cout <<
"FIXED <" <<
FIXED(12,6) << value <<
">" << endl;
57 for (
int i = 0; i != 10; ++i) {
62 cout <<
"JEEPZ " <<
JEEPZ() << buffer << endl;