C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-24-2003, 04:56 PM   #1
Set Apart --
 
jrahhali's Avatar
 
Join Date: Nov 2002
Posts: 219
Date program starts DOS's date

I wrote a program (originally a exercise fro m a book) that allows the user to enter a date like mm/dd/yy and then displays it. When i compile and run it (i'm using DOS (standard) application) it runs DOS's date program (allows you to change the date on your system) when my program is totally different!

i figured out why this happened. my projects name was date, and when i changed the name it ran MY program. So why would it run DOS's date program just because the name is the same?

But even though everything was the same when i ran my program, and dos's program, there was a slight difference. The dos's date program asks for the date in this format: dd-mm-yy and my program asks for it in mm-dd-yy. ??
jrahhali is offline   Reply With Quote
Old 11-24-2003, 05:23 PM   #2
Master of the Universe!
 
velius's Avatar
 
Join Date: Sep 2003
Posts: 219
That is because of the search path.
__________________
While you're breakin' down my back n'
I been rackin' out my brain
It don't matter how we make it
'Cause it always ends the same
You can push it for more mileage
But your flaps r' wearin' thin
And I could sleep on it 'til mornin'
But this nightmare never ends
Don't forget to call my lawyers
With ridiculous demands
An you can take the pity so far
But it's more than I can stand
'Cause this couchtrip's gettin' older
Tell me how long has it been
'Cause 5 years is forever
An you haven't grown up yet
-- You Could Be Mine - Guns N' Roses
velius is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Program Plan Programmer_P C++ Programming 0 05-11-2009 01:42 AM
CDate Class - handle date manipulation simply LuckY C++ Programming 5 07-16-2003 08:35 AM
Bug in Program - please help! muffin C Programming 4 08-31-2001 09:33 AM
My program, anyhelp @licomb C Programming 14 08-14-2001 10:04 PM


All times are GMT -6. The time now is 09:47 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22