Ive downloaded it and im running it on my old win98 700Mhz box. Ill put it on my laptop as well later :)
Type: Posts; User: explosive
Ive downloaded it and im running it on my old win98 700Mhz box. Ill put it on my laptop as well later :)
Thanks that helped :)
ive tried adding extra variables:
int test=0;
int test2=0;
int tel_wrong=0;
int tel_wrong2=0;
do
{
cout<<"Telephone Number: ";
Thanks,
ive tried this:
int test=0;
int tel_wrong=0;
do
{
cout<<"Telephone Number: ";
Im trying to loop through an array (held inside a structure) to see if it only contains 0,1,2,3,4,5,6,7,8,9 (or a space). This is to check it is a telephone number.
do
{
cout<<"Telephone...
Thanks :)
While trying to compile my program I get this error:
any idea how to use '/Zm'?
thanks! that fixed it :D
because some of the computers that I would need to use it on have restrictions in place so I cannot install it.
struct tm time_str;
struct tm time_str2;
long int diff = 0;
time_str.tm_year = 2005-1900;
time_str.tm_mon = 2-1;
time_str.tm_mday = 4;
time_str2.tm_year = 2005-1900;
...
the thing is I have 2 dates, for example: 17 2 2005 and 14 2 2005
each part stored as individual int's. I dont see how difftime() can work for this?
ok, i guess im being very stupid here but, both days will have the same number of second, giving me a differenence of 0 seconds :confused:
I want to be able to calculate the number of days between 2 dates. Ive looked at the boost c++ libararies but it isnt possible for me me to use them as I have to take my code between multiple...
Thats strange because on the site it says:
Shame it doesn't work :(
Do you know of a way I could find the number of days between 2 dates?
I get this error:
Im trying to implement it like this:
int day=0;
date d1(20050310);
Hi,
I am trying to include some pre-written code into my project from: http://finance.bi.no/~bernt/gcc_prog/doc_date/doc_date.html
Im having some trouble getting it to work. I am using...
Thanks for your help salem :)
Ok!
Hi,
When trying to compile my code in MSVC++ I get the error message:
The error applies to the 4 highlighted lines in the code below:
mems[mems[0].mem_num].mem_num = mems[0].mem_num;
Ah i see.... oops :o
Ill try the steps youve mentioned. Thanks :)
This post is juat a few below yours: http://cboard.cprogramming.com/showthread.php?t=60932
it has some very good suggestions. :)
Hi everyone :)
Ive been trying to overwrite selected records in a text file.
If i try and edit the first record in the file some parts of the old record are overwritten and other parts are left...
Solved! :D
I changed:
rental rental[100];
to
I have service pack 6.
Ive just tried using the ful watch window and entered "rentals" and it displayed {...} in the column to the right. :(
I must be doing something wrong.... its driving me...
it is an array of structs.
rental rental[100];
sorry forgot to put that before :)
this is the rental struct:
struct rental
{
unsigned long int rental_id;
unsigned long int mem_num;
unsigned long int dvd_vid_num;
int date_due_dd;
int date_due_mm;