| | |
Get weekday Name VC++
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
Your question is a bit bizzare. What do you mean by week name?
But perhaps this would be helpful
http://www.cplusplus.com/reference/c...localtime.html
Chris
But perhaps this would be helpful
http://www.cplusplus.com/reference/c...localtime.html
Chris
Knowledge is power -- But experience is everything
oh the day of the week, my bad. Either way i'm sure you could have adapted the information given by that webpage it's not too complex.
Chris
C++ Syntax (Toggle Plain Text)
#include <iostream> #include <ctime> #include <string> using namespace std; int main (void){ time_t rawtime; struct tm * timeinfo; time ( &rawtime ); timeinfo = localtime ( &rawtime ); string day(asctime (timeinfo)); cout << "Date: " << day.substr(0, day.find_first_of(" ")); cin.get(); return 0; }
Knowledge is power -- But experience is everything
![]() |
Similar Threads
- Get free betting tips and tell me what you think. (Website Reviews)
- /etc/daily (Darwin, X11 and BSD)
- Script not to run on specific machines (VB.NET)
- Problems writing script which checks the users group and date (VB.NET)
- My Program runs but not correctly (C++)
- C++ Data Types (C++)
- Logic to Convert Days From 1800 to a Date (Month, Day, Year) (C++)
- program (C)
- On your site - How many ads are too many? (Advertising Sales Strategies)
Other Threads in the C++ Forum
- Previous Thread: Need help with tickts program
- Next Thread: C++ program to Pep/assembly language
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer dll download dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph gui homeworkhelp iamthwee ifstream image input int java lib library list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg simple sorting string strings temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets





