Language
C++
Compiler
gcc HEAD 14.0.1 20240209 (experimental)
Options
Warnings
Don't Use Boost
C++2b(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -std=gnu++2b
smartprint(cout,
"Citizen\t\t\t:", make_pair(b, make_tuple(boolalpha)),
"\nheight(meters)\t\t:", make_pair(h, make_tuple(fixed,setprecision(3))),
"\nincome\t\t\t:", make_pair(put_money(m), make_tuple(showbase)),
"\nSocial Security number\t:", make_pair(ssn, make_tuple(left,setw(8),setfill('#'),showbase)),
"\ntime stamp\t\t:", put_time(&tm, "%c %Z"),
"\n")
Citizen :true
height(meters) :1.568
income :$1,234.56
Social Security number :123#####
time stamp :Sat 10 Feb 2024 05:59:18 AM UTC UTC
Exit Code:
0