| | |
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 |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator getline givemetehcodez graph iamthwee ifstream image input int java lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sort sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





