473,699 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SOURCE CODE FOR DIGITAL CLOCK IN C LANGUAGE

Dear All,
PLZ TELL ME THE SOURCE CODE OF DIGITAL CLOCK IN
C LANGUAGE . I REALLY NEED IT AND I DONOT KNOW HOW TO USE C LANGUAGE .
ACTUALLY I WANT TO MAKE A CLOCK IN LINUX >IF ANY BODY POST ME THE
CODE I HALL BEW VERY THANKFUL TO HOMPLZ DO REPLY ME PLZ

Jun 14 '07 #1
24 29902
mo************* *@hotmail.com wrote:
Dear All,
PLZ TELL ME THE SOURCE CODE OF DIGITAL CLOCK IN
C LANGUAGE . I REALLY NEED IT AND I DONOT KNOW HOW TO USE C LANGUAGE .
ACTUALLY I WANT TO MAKE A CLOCK IN LINUX >IF ANY BODY POST ME THE
CODE I HALL BEW VERY THANKFUL TO HOMPLZ DO REPLY ME PLZ
DON'T SHOUT!

Unless you are using a teletype.

--
Ian Collins.
Jun 14 '07 #2
On Thu, 14 Jun 2007 02:29:43 -0700, in comp.lang.c ,
mo************* *@hotmail.com wrote:
>Dear All,
PLZ TELL ME THE SOURCE CODE OF DIGITAL CLOCK IN
C LANGUAGE . I REALLY NEED IT AND I DONOT KNOW HOW TO USE C LANGUAGE .
ACTUALLY I WANT TO MAKE A CLOCK IN LINUX >IF ANY BODY POST ME THE
CODE I HALL BEW VERY THANKFUL TO HOMPLZ DO REPLY ME PLZ
TypinG ENTIRELY IN UPPERCASE is regarded as shouting on usenet. You
should use normal sentence case.

As for the question, this isn't comp.sources.wa nted. If you try to
write the programme yourself first, then people will be happy to show
where you've gone wrong.

If you want some hints, look at the time() and mktime() functions and
the various structs associated with them. These will get you started.

--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Jun 14 '07 #3

<mo************ **@hotmail.comw rote in message
news:11******** *************@i 13g2000prf.goog legroups.com...
Dear All,
PLZ TELL ME THE SOURCE CODE OF DIGITAL CLOCK IN
C LANGUAGE . I REALLY NEED IT AND I DONOT KNOW HOW TO USE C LANGUAGE .
ACTUALLY I WANT TO MAKE A CLOCK IN LINUX >IF ANY BODY POST ME THE
CODE I HALL BEW VERY THANKFUL TO HOMPLZ DO REPLY ME PLZ
#include <stdio.h>

#define PUTS puts
#define MAIN main
#define INT in

INT MAIN()
{
PUTS("THE TIME IS NOW 4:41PM, MIGHT BE INCORRECT THOUGH");
}
Jun 14 '07 #4
Serve Laurijssen wrote:
>
<mo************ **@hotmail.comw rote in message
news:11******** *************@i 13g2000prf.goog legroups.com...
Dear All,
PLZ TELL ME THE SOURCE CODE OF DIGITAL CLOCK IN
C LANGUAGE . I REALLY NEED IT AND I DONOT KNOW HOW TO USE C LANGUAGE .
ACTUALLY I WANT TO MAKE A CLOCK IN LINUX >IF ANY BODY POST ME THE
CODE I HALL BEW VERY THANKFUL TO HOMPLZ DO REPLY ME PLZ

#include <stdio.h>

#define PUTS puts
#define MAIN main
#define INT in
s/in/int/
>
INT MAIN()
{
PUTS("THE TIME IS NOW 4:41PM, MIGHT BE INCORRECT THOUGH");
}

ITYM:
#define STDIO <stdio.h>
#define PUTS(TEXT) puts(TEXT);
#define MAIN main(void)
#define INT int
#define BEGIN {
#define END }
#define CLOCK "THE TIME IS NOW 12:06PM, MIGHT BE INCORRECT THOUGH"

/************* BEGIN MAIN PROGRAM *************/

#include STDIO

INT MAIN BEGIN PUTS(CLOCK) END
--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer .h|
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:Th***** ********@gmail. com>

Jun 14 '07 #5
On Jun 14, 12:06 pm, Kenneth Brody <kenbr...@spamc op.netwrote:
Serve Laurijssen wrote:
<mohsinalishah. ..@hotmail.comw rote in message
news:11******** *************@i 13g2000prf.goog legroups.com...
Dear All,
PLZ TELL ME THE SOURCE CODE OF DIGITAL CLOCK IN
C LANGUAGE . I REALLY NEED IT AND I DONOT KNOW HOW TO USE C LANGUAGE .
ACTUALLY I WANT TO MAKE A CLOCK IN LINUX >IF ANY BODY POST ME THE
CODE I HALL BEW VERY THANKFUL TO HOMPLZ DO REPLY ME PLZ
#include <stdio.h>
#define PUTS puts
#define MAIN main
#define INT in
s/in/int/
INT MAIN()
{
PUTS("THE TIME IS NOW 4:41PM, MIGHT BE INCORRECT THOUGH");
}

ITYM:

#define STDIO <stdio.h>
/*#define PUTS(TEXT) puts(TEXT); */

/* perhaps a bit "better" form. at least safe from embedded escape
sequences */
#define PUTS(TEXT) puts("%s\n",TEX T);
#define MAIN main(void)
#define INT int
#define BEGIN {
#define END }
#define CLOCK "THE TIME IS NOW 12:06PM, MIGHT BE INCORRECT THOUGH"

/************* BEGIN MAIN PROGRAM *************/
#include STDIO */
INT MAIN BEGIN PUTS(CLOCK) END

Jun 14 '07 #6
On Jun 14, 12:50 pm, Lew Pitcher <lpitc...@teksa vvy.comwrote:
On Jun 14, 12:06 pm, Kenneth Brody <kenbr...@spamc op.netwrote:
Serve Laurijssen wrote:
<mohsinalishah. ..@hotmail.comw rote in message
>news:11******* **************@ i13g2000prf.goo glegroups.com.. .
Dear All,
PLZ TELL ME THE SOURCE CODE OF DIGITAL CLOCK IN
C LANGUAGE . I REALLY NEED IT AND I DONOT KNOW HOW TO USE C LANGUAGE .
ACTUALLY I WANT TO MAKE A CLOCK IN LINUX >IF ANY BODY POST ME THE
CODE I HALL BEW VERY THANKFUL TO HOMPLZ DO REPLY ME PLZ
#include <stdio.h>
#define PUTS puts
#define MAIN main
#define INT in
s/in/int/
INT MAIN()
{
PUTS("THE TIME IS NOW 4:41PM, MIGHT BE INCORRECT THOUGH");
}
ITYM:
#define STDIO <stdio.h>

/*#define PUTS(TEXT) puts(TEXT); */

/* perhaps a bit "better" form. at least safe from embedded escape
sequences */
#define PUTS(TEXT) puts("%s\n",TEX T);
Gaak! Ignore that. I misread puts() as printf(). Sorry

Jun 14 '07 #7
mo************* *@hotmail.com wrote:
PLZ TELL ME THE SOURCE CODE OF DIGITAL CLOCK IN
C LANGUAGE . I REALLY NEED IT AND I DONOT KNOW HOW TO USE C LANGUAGE .
ACTUALLY I WANT TO MAKE A CLOCK IN LINUX >IF ANY BODY POST ME THE
CODE I HALL BEW VERY THANKFUL TO HOMPLZ DO REPLY ME PLZ
Stop shouting. We can hear you, even back here in the cheap seats.

Go find "grdc", available in any BSD code repository. Should port to
Linux easily (if it hasn't already been ported).
--
clvrmnky <mailto:sp***** *@clevermonkey. org>

Direct replies will be blacklisted. Replace "spamtrap" with my name to
contact me directly.
Jun 14 '07 #8
Serve Laurijssen wrote:
<mo************ **@hotmail.comw rote in message
>PLZ TELL ME THE SOURCE CODE OF DIGITAL CLOCK IN C LANGUAGE . I
REALLY NEED IT AND I DONOT KNOW HOW TO USE C LANGUAGE . ACTUALLY
I WANT TO MAKE A CLOCK IN LINUX >IF ANY BODY POST ME THE CODE I
HALL BEW VERY THANKFUL TO HOMPLZ DO REPLY ME PLZ

#include <stdio.h>

#define PUTS puts
#define MAIN main
#define INT in

INT MAIN()
{
PUTS("THE TIME IS NOW 4:41PM, MIGHT BE INCORRECT THOUGH");
}
Fails miserably. 'in' is not a valid type. main fails to return a
value. :-)

--
<http://www.cs.auckland .ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfoc us.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net
--
Posted via a free Usenet account from http://www.teranews.com

Jun 14 '07 #9
mo************* *@hotmail.com wrote:
Dear All,
PLZ TELL ME THE SOURCE CODE OF DIGITAL CLOCK IN
C LANGUAGE . I REALLY NEED IT AND I DONOT KNOW HOW TO USE C LANGUAGE .
ACTUALLY I WANT TO MAKE A CLOCK IN LINUX >IF ANY BODY POST ME THE
CODE I HALL BEW VERY THANKFUL TO HOMPLZ DO REPLY ME PLZ
/bin/date
Jun 14 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4224
by: melanieab | last post by:
Hi again, I'm trying to draw a digital clock in the corner of a picturebox whenever a particular tabpage is in focus. I either need to be able to make the clock keep real time (I can get it to draw when the page loads, but it won't "tick") or I need to be able to draw a transparent label background (I can get the clock working on a solid color label). Thanks again for everyone's help! Melanie
5
12067
by: biltz | last post by:
hey...wanna source code of...digital clock by using nested for loop..if anybody know plzzzzzzzzzz...help me...i m getting eror in it..not sure wt do ....:(
1
2749
by: HeroinNO.4 | last post by:
You can open http://www.fillweb.com in IE and View->Source to see the latest version full featured count down timer source code, or you may also copy the code below and save in a "*.htm" file, for example "countdown.htm", and open it in browser, you'll see the full featured count down timer ! <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html;
2
2720
by: HeroinNO.4 | last post by:
Hello everyone! Now the latest version of free count down timer source code is available in http://www.fillweb.com/countdown.htm, you can open it in IE and View->Source to see the latest version source code, also you may copy the code below and save in a ".htm" file, and run it in browser, a cool count down timer will show you ! <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type"...
7
3300
by: HeroinNO.4 | last post by:
Hello guys, free count down timer source code has updated to 06/11/27, you can copy the code below and save in a ".htm" file and run it in a browser support javascript 1.1 or later, or you can open http:\\www.fillweb.com\countdown.htm, if you are using IE, you may View->Source to see the latest version of source code ! <html> <head> <meta http-equiv="Content-Language" content="en-us">
4
2732
by: aakriti | last post by:
how to make a digital clock from using code of java,
10
3204
by: merooo0ooo | last post by:
HELLO how are u all ? i want to do digital clock applet may be it's very stubid qez but i'm still biggener in java and i want to any one learn me how i can used thread to do digital clock but step by step and how can used threads in any another program and console how can i read in thing and give me output on consol what is step as i want to draw smile face on console thank u all;
0
8613
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9172
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8908
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7745
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4374
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.