How do I create a c++ program to find the day of the week automatically, such that I can use it as a string? If I use ctime, it will show not just the day of the week, but the date and time too.
How do I create a c++ program to find the day of the week automatically, such that I can use it as a string? If I use ctime, it will show not just the day of the week, but the date and time too.
Use ctime to get the answer, and parse the answer for what you need.
Mainframe assembler programmer by trade. C coder when I can.