I am using the Dev C++ compiler (4.9.9.2) from bloodshed.net on win xp sp2. I want to get the minutes from the system clock, so if it is 15:30 I only want the 30. I am trying to make a simple program that can get the minutes and see if they are 0, 15, 30, or 45 (beeping using the pc speaker depending). Next will come the same idea for the hours, but I want to get this working first.
Have a great day, Alex
----- Original Message ----- From: "Ken Perry" <whistler@xxxxxxxxxxxxx To: <programmingblind@xxxxxxxxxxxxx Date sent: Fri, 6 Jun 2008 12:57:38 -0700 Subject: RE: [BULK] get minutes of system time as int in c++
Oh sorry the original mail did not come to me it got junked I got
the
response and that was the one I was replying to.
Now I can tell you how to get system time all the way to the
assembler level
but it helps in knowing what c++ environment your working in
because it
makes a difference for example they have data and time classes in
Microsoft
that is some times easier to use then to actually write the code
yourself.
So tell me what compiler your using and for what operating system
and I will
give you an example.
Ken
-----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Alex
Hall
Sent: Friday, June 06, 2008 12:34 PM To: programmingblind@xxxxxxxxxxxxx Subject: RE: [BULK] get minutes of system time as int in c++
The example did not have stdlib, and stdio was just the word, no
h. Thanks.
The question still stands, though: how can I get the minutes of
the system
time? Apparently there is a time_t object, but I could not find
much on
that.
Have a great day, Alex
----- Original Message ----- From: "Ken Perry" <whistler@xxxxxxxxxxxxx To: <programmingblind@xxxxxxxxxxxxx Date sent: Fri, 6 Jun 2008 12:09:03 -0700 Subject: RE: [BULK] get minutes of system time as int in c++
You should be able to compile a printf into your c++ program aslong as youinclude the header for printf which is stdio and stdlib with thehextention.
Ken
-----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of AlexHallSent: Friday, June 06, 2008 11:04 AM To: programmingblind@xxxxxxxxxxxxx Subject: RE: [BULK] get minutes of system time as int in c++
Yes, just the 34 of 16:34. The examples used printf() which is,I believe,a c function and stopped my program from compiling in cpp.
Have a great day, Alex
----- Original Message ----- From: "Sean Farrow" <sean.farrow@xxxxxxxxxxxxxxxx To: <programmingblind@xxxxxxxxxxxxx Date sent: Fri, 6 Jun 2008 18:27:38 +0100 Subject: RE: [BULK] get minutes of system time as int in c++
Hi Alex: Plese could you clarify what you want: if the time is 16:34, doyou justwant the 34? What examples did you fine? Sean.
-----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of AlexHallSent: 06 June 2008 17:50 To: programmingblind@xxxxxxxxxxxxx Subject: [BULK] get minutes of system time as int in c++ Importance: Low
how could I go about getting the minutes, as an integer, of thesystemtime using cpp? I tried to find it, but got what seemed to beexamplesin c not cpp. Thanks.
Have a great day, Alex __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________ Information from ESET NOD32 Antivirus, version ofvirussignature database 3164 (20080606) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version ofvirussignature database 3164 (20080606) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind