I'm in the GMT time zone and the time is correct for me, your guess about daylight saving is probably right but you would have thought someone would have taken that into account
Type: Posts; User: SPOOK
I'm in the GMT time zone and the time is correct for me, your guess about daylight saving is probably right but you would have thought someone would have taken that into account
No I still can't decide between them so I'm going for Steve Martin. Man that guys funny, especially in lonely guy, and planes trains and automobiles
Post some code so we can see what your doing.
try this
char id[20][5];
printf("Enter quit to finish");
gets(id[x]);
if(!strcmp(id[x], "quit"))
break;
try
ch = getc(stdin);
or
ch = getchar();
or
ch = getch();
the last one needs <conio.h>
AAAAAAAAHHHH
scanf(), I never use it, it's dangerous(has a tendency to leave newline characters in the buffer) use getch() instead or for numeric data use gets() and then sscanf()
A structure is a collection of related data item's
struct furniture {
int id_num;
int num_chair;
int num_sofa;
};
furniture has become a data type same as any other and you now...
Maybe you should have an alternative contest.
See who can write the most complex program for a simple problem or the slowest program for a problem or something different like that (just for fun).
MMMM
Looks like i gotta eat some humble pie Salem. I did some searching and just found this:
each application uses an area of memory called "the stack", which holds all local variables and...
You left it till the last day before your program is due to learn the means to do it. That sounds like 'lazy' to me
Their scope may only be local to a particular function or block of code but their memory is reserved from the begining of execution, therefore by declaring variables only where and when you need...
Definatley Bill Murray, ground hog day is great film. Mind you national lampoons is pretty good also, so maybe Chevy AAAAAAAAAAAAAAHHHHHHHHHh
I can't make up my mind
A C program uses four distinct regions of memory.The first region is the memory that holds the programs executable code. The next region is memory where global variables are stored. The remaining two...
try this, you only need 1 pointer
#include <stdio.h>
int main()
{
double numarray[] = {14.83,19.24,0.84,1.98,3.47,0,0,0,0,0,827.39,632.85,471.38,0.04,4.83};
double *numarray_ptr, total...
I have a header file which contains the following
#define IDR_MYMENU 101
#define IDI_MYICON 201
#define ID_FILE_EXIT 9001
#define ID_STUFF_GO 9002
However when i compile the program I get...
You can find out how many structures are on your file by using ftell() to get the number of bytes in your file and then divide that by the size of the structure ie:
fseek(pUser, 0L, SEEK_END); ...
I don't want to ask the obvious but you have switched your printer on haven't you
lol!!!
the clock() function is accurate isnt it?
clock_t start, stop;
start = clock();
for(x=0; x<1000000; x++);
stop = clock();
Try replacing PRN with LPT1
HHHHHHMMMM
don't you need to use fread() to read binary files?
andy bee
check your message inbox
could you edit your post using code tags to make the logic easier to follow as the lack of indentation makes your intentions unclear, also could you write a sentance to explain what you want the...
I think the test for a leap year should be more like
if(year%4 == 0 && year % 100 != 0 || year % 400 == 0)
{
return 1;
}
else
return 0;
you can use size = ftell(fp);
to do this you must first position the file position indicator at the end of the file, this is done using
fseek(fp, 0L, SEEK_END).
the value returned by ftell is...
a call to
system("dir");
will print drive info