The code was intended to cout the day of week. Using Visual Studio 2017 and the version is 15.8.280 10.2050
Code was copied from here: https://howardhinnant.github.io/date/date.html
The code didn't run and showed the errors mentioned already and also that Name must be a namespace name and "weekday" is undefined.
My skills are minimal at this point. Just starting to understand what things are called and sort of how they fit together.
Also, what are the things that are after #include called? some are header files right? but what about the others like fstream etc. ?
Thanks!
Many searches online found no answer directly. There were some related but nothing that explained it in a way i could understand.
#include "date.h"
#include <iostream>
int
main()
{
using namespace date;
std::cout << weekday{ August / 22 / 2019 } << '\n';
}