Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Program Announcements / Time program.

Author
Message
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 22nd Mar 2005 07:10 Edited at: 22nd Mar 2005 07:17
Hi

I have readed about c++ for a while now. And i have learned some great things!

I have made a little program in c++that shows the date, time, year

It takes the infomation from the system so be sure it is right else the program will show wrong

DANISH VERSION :

I have attached the EXE file in this post

ENGLISH VERSION

For english version please scroll down to the next post



Regards


The Nerd


PanzerGames website :
http://www.panzergames.tekhawk.com

Attachments

Login to view attachments
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 22nd Mar 2005 07:18
DOWNLOAD ENGLISH VERSION :

The english version is attached to this post



Regards


The Nerd


PanzerGames website :
http://www.panzergames.tekhawk.com

Attachments

Login to view attachments
hexGEAR
21
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 22nd Mar 2005 20:02
Not bad... but not realtime. Just curious, what's the C++ code to capture the current date/time/year?

The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 22nd Mar 2005 20:45
thanks for the comment!

@Hexgear:



Thats the full source for the time program I wrote this in dev c++ so you might need to change something to compile it in visual c++. I havvent tried myself cus im too lazy


PanzerGames website :
http://www.panzergames.tekhawk.com
hexGEAR
21
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 22nd Mar 2005 20:57 Edited at: 22nd Mar 2005 20:59
then i guess to make it realtime it would be like:



but you would need to keep printing it on the same line and not incrementing downwards.

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 23rd Mar 2005 00:52 Edited at: 23rd Mar 2005 00:53


Run that. By the way, you don't need the new line thing because the time string ends with a new line character anyway.


"Lets migrate like bricks" - Me

Login to post a reply

Server time is: 2024-06-17 07:53:54
Your offset time is: 2024-06-17 07:53:54