Quantcast
Channel: Date manipulation question
Browsing latest articles
Browse All 20 View Live

Date manipulation question

caught my error I forgot August in the months Eveyone thanks for your input..

View Article



Date manipulation question

Here is my new code it worked at first ran it a third time and it crashed and still crashes.Any suggestions??# include <iostream> # include <cstdlib> # include <string> using...

View Article

Date manipulation question

ThanksI followed your s an Waynes advice I have come up with a working program just need to smooth it.

View Article

Date manipulation question

Thanks for the reply SergeyI did read your earlier post. However we are not at that point in class so I can't use some of that code.  I  know most of the code I need to use I am not sure of how to...

View Article

Date manipulation question

>we are not at that point in class so I can't use some >of that code. This is *one* of the problems with asking for help with course assignments in a public forum. We have no way of knowing what...

View Article


Date manipulation question

Thanks for the reply SergeyI did read your earlier post. However we are not at that point in class so I can't use some of that code.  I  know most of the code I need to use I am not sure of how to...

View Article

Date manipulation question

I have to make an array and fill it with months ie "January", "Febuary", etc.  and use the numeric representation of the month as the index. Then I need to convert the numerical string to a int...

View Article

Date manipulation question

Apparently I misunderstood the assignment. The original code worked but not the way the assignment wanted.I have to make an array and fill it with months ie "January", "Febuary", etc.  and use the...

View Article


Date manipulation question

void GetMonth(string &date) {   string Month;  Month =  date.substr(0,2);   } Ok, so you computed the value of Month. But you don't do anything with it. Remember, this is a variable that is local...

View Article


Date manipulation question

WayneThis is what I attempted to do. It will compile but any date prints the else statement.# include <string> #include <iostream> using namespace std; void GetMonth(string & ); void...

View Article

Date manipulation question

std::regex: http://www.johndcook.com/cpp_regex.html#replace

View Article

Date manipulation question

>I would like to put the "If" statements in their own >function and call it in the main. Have been unsuccessful >thus far. That should be very simple. What seems to be the problem you're...

View Article

Date manipulation question

Here is the code I have and it works. I would like to put the "If" statements in their own function and call it in the main. Have been unsuccessful thus far.# include <string> #include...

View Article


Date manipulation question

you can use strptime function for this.ThansRupesh Shukla

View Article

Date manipulation question

I was thinking.since the date would be manually entered by the user, using cin.getline.  Once entered I would then I would store it in an Array.I was going to make a function full of "if" statements...

View Article


Date manipulation question

You can use basic time functions:t ime, _time32, _time64 and  asctime_sdescribed in the link:http://msdn.microsoft.com/en-us/library/1f4c8f33(v=vs.80).aspx and...

View Article

Date manipulation question

Here's an example of a routine I wrote to parse a date format we use.  You'd have to adjust it, of course, to fit your date format.  I pass a CString into this routine.//// Converts an XML Timestamp to...

View Article


Date manipulation question

First thing why not simply use time_t or SYSTEMTIME etc to get the time . time_t rawtime; time ( &rawtime );or SYSTEMTIME st, lt;        GetSystemTime(&st);    GetLocalTime(&lt);   and then...

View Article

Date manipulation question

To get you started, you can use as "template" class Date from this tutorial: http://www.learncpp.com/cpp-tutorial/89-class-code-and-header-files/And these links for date format...

View Article

Date manipulation question

Using either cstring or string classes how do I manipulate a date?I would be getting the date in the format of 11/12/2009 with cin.getlineand I want it to cout November 12, 2009.Any idea to get me...

View Article
Browsing latest articles
Browse All 20 View Live




Latest Images