Data Var [modified]
-
Hello, is there a specified Data Date variable type that i can use it with C++? I don't like to use a structure including three integers for this aim. Thank you
"The Ultimate Limit Is Only Your Imagination."
modified on Friday, June 11, 2010 9:09 AM
-
Hello, is there a specified Data Date variable type that i can use it with C++? I don't like to use a structure including three integers for this aim. Thank you
"The Ultimate Limit Is Only Your Imagination."
modified on Friday, June 11, 2010 9:09 AM
-
Hello, is there a specified Data Date variable type that i can use it with C++? I don't like to use a structure including three integers for this aim. Thank you
"The Ultimate Limit Is Only Your Imagination."
modified on Friday, June 11, 2010 9:09 AM
I think yeah; the SYSTEMTIME Var ;P sorry to post the question too quick
"The Ultimate Limit Is Only Your Imagination."
-
Hello, is there a specified Data Date variable type that i can use it with C++? I don't like to use a structure including three integers for this aim. Thank you
"The Ultimate Limit Is Only Your Imagination."
modified on Friday, June 11, 2010 9:09 AM
Blood_HaZaRd wrote:
is there a specified Data variable type that i can use it with C++?
Please refactor this question so that it makes sense. :confused:
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Blood_HaZaRd wrote:
is there a specified Data variable type that i can use it with C++?
Please refactor this question so that it makes sense. :confused:
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
sorry i wrote Data instead of Date (i have a quarty Keyboard and Eng Os
"The Ultimate Limit Is Only Your Imagination."
-
Hello, is there a specified Data Date variable type that i can use it with C++? I don't like to use a structure including three integers for this aim. Thank you
"The Ultimate Limit Is Only Your Imagination."
modified on Friday, June 11, 2010 9:09 AM
Do you mean a date? If you're using ATL/MFC then class
CTime
is avalable [^]. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Do you mean a date? If you're using ATL/MFC then class
CTime
is avalable [^]. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]great one but when i write this code it said that the CTime is not a class or a namespace. How to help #include<time.h> #include<iostream> using namespace std;
void main()
{
//char date[9];
// _strdate(date);
// cout << date << endl;CTime t1(1999, 3, 19, 22, 15, 0); // 10:15 PM March 19, 1999 CTime t2(1999, 3, 20, 22, 15, 0); // 10:15 PM March 20, 1999 CTimeSpan ts = t2 - t1; // Subtract 2 CTimes
}
"The Ultimate Limit Is Only Your Imagination."
-
great one but when i write this code it said that the CTime is not a class or a namespace. How to help #include<time.h> #include<iostream> using namespace std;
void main()
{
//char date[9];
// _strdate(date);
// cout << date << endl;CTime t1(1999, 3, 19, 22, 15, 0); // 10:15 PM March 19, 1999 CTime t2(1999, 3, 20, 22, 15, 0); // 10:15 PM March 20, 1999 CTimeSpan ts = t2 - t1; // Subtract 2 CTimes
}
"The Ultimate Limit Is Only Your Imagination."
That's why Carlo said "if you are using MFC/ATL", which is not your case so forget about it.
Cédric Moonen Software developer
Charting control [v3.0] OpenGL game tutorial in C++ -
That's why Carlo said "if you are using MFC/ATL", which is not your case so forget about it.
Cédric Moonen Software developer
Charting control [v3.0] OpenGL game tutorial in C++Ah no indeed i'm using MFC so it still the case :laugh:
"The Ultimate Limit Is Only Your Imagination."
-
great one but when i write this code it said that the CTime is not a class or a namespace. How to help #include<time.h> #include<iostream> using namespace std;
void main()
{
//char date[9];
// _strdate(date);
// cout << date << endl;CTime t1(1999, 3, 19, 22, 15, 0); // 10:15 PM March 19, 1999 CTime t2(1999, 3, 20, 22, 15, 0); // 10:15 PM March 20, 1999 CTimeSpan ts = t2 - t1; // Subtract 2 CTimes
}
"The Ultimate Limit Is Only Your Imagination."
-
Yup Thank you. I even found another Class zhicgh is CTimeSpan (based on CTime and do operations on time which the most suitable class for now. Thnak you again and @ Cedric: the errors from VS saying that CTilme t1 is undeclarated was due to a line which end with no ; and now it works i forget to say that i was under MFC so excuse me again we are humains and we do mistakes. :|
"The Ultimate Limit Is Only Your Imagination."
-
Ah no indeed i'm using MFC so it still the case :laugh:
"The Ultimate Limit Is Only Your Imagination."
Blood_HaZaRd wrote:
Ah no indeed i'm using MF
For another project? The posted one looks the classical console application... :rolleyes:
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]