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.
Printable View
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.