C_C++
autoconfig
flex
linking
1st_day_of_month.cpp
JJbY.cpp
Tp6G.cpp
alternatice_bracket.c
c.php
c_old_argument_notation.c
cnn.c
comp.c
conditional_const.c
const.c
cpp_regex_error.cpp
current_year.cpp
dda2.cpp
dog.jpg
dog2.jpg
else_while.c
for_ctags.cpp
free_null.c
gcc_include_next.c
gdb_graph.c
getopt_test.c
gnu_decimals.c
gnu_history.c
gnu_regex.c
gnu_regex2.c
header.h
index_in_initializer_list_compiler_extension.c
knr.c
levenshtein_dist_-_usage.cpp
map_initialization.cpp
ncurses_labels.c
ncurses_mv_win.cpp
ncurses_plus_readline.cpp
ncurses_resize2.cpp
ncurses_resize_hello_world.cpp
ncurses_resize_test.c
ncurses_scroll.c
nf.c
null_printf.c
null_printf.cpp
portable_namespace.c
portable_namespace.h
pta.c
scoping_showcase.c
screen_size_(without_curses).c
sdl_render_to_texture.cpp
sentinel_pack.c
setjmp_test.cpp
strdup.c
tcc_int.c
test.c
typedef.c
unctrl.c
undefined_reference.c
usb.c
vasprintf.c
void_main.c
x.cpp
xtermio.c
xtp.cpp
Java
Misc.
Python
Vim
Webdev
git
.gitignore
Makefile
16 lines
414 B
C++
16 lines
414 B
C++
// @COMPILECMD g++ $@ -lboost_date_time
|
|
#include <iostream>
|
|
#include <boost/date_time/gregorian/gregorian.hpp>
|
|
|
|
int main() {
|
|
int year = 2023;
|
|
int month = 7;
|
|
|
|
boost::gregorian::date firstDay(year, month, 1);
|
|
boost::gregorian::date::day_of_week_type weekday = firstDay.day_of_week();
|
|
|
|
std::cout << "The first day of " << month << "/" << year << " is a " << weekday << std::endl;
|
|
|
|
return 0;
|
|
}
|