From: Sinan_Unur AT mail DOT com (A. Sinan Unur) Newsgroups: comp.os.msdos.djgpp Subject: Re: syntax E?r?r?o?r? Date: 2 Jul 2000 20:05:26 GMT Organization: Cornell University Lines: 65 Sender: verified_for_usenet AT cornell DOT edu (asu1 on ithcb102-09.splitrock.net) Message-ID: <8F65A267AASINANUNUR@132.236.56.8> References: NNTP-Posting-Host: ithcb102-09.splitrock.net X-Trace: news01.cit.cornell.edu 962568326 17279 209.253.199.9 (2 Jul 2000 20:05:26 GMT) X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu NNTP-Posting-Date: 2 Jul 2000 20:05:26 GMT User-Agent: Xnews/03.04.11 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com radsmail AT juno DOT com (Radical NetSurfer) wrote in : >OK! enough is quite enough for Crying Out Loud! interesting attitude you have. as i mentioned before, basic c questions belong in comp.lang.c or comp.lang.c.moderated. here is a list of mistakes (not necessarily exhaustive) in your original code: * declaration of trnd is not legal in C * undeclared variable: Rseed * you don't return a value from main. you can try: #include #include #include int main(int argc, char** argv) { time_t trnd; int retv = 0; /* return value from functions */ time(&trnd); srand((unsigned) trnd); /*[snip]*/ return retv; } incidentally, you should at least type info libc alpha time at the command line, and read what it does. >OK! How is this a Compiler ERROR ?!!?!?!!?!?!?!?!!?!?!? > >sheesh! and golly g-willikurs! > >Always delighted to get (intelligent) Email: >radsmail AT juno DOT com >http://members.tripod.com/~RadSurfer/ There are four sorts of men: He who knows not and knows not he knows not: he is a fool - shun him. He who knows not and knows he knows not: he is simple - teach him. He who knows and knows not he knows: he is asleep - wake him. He who knows and knows he knows: he is wise - follow him. Arabian Proverb (Taken from "Reasoning About Knowledge" by Fagin. Halpern, Moses, and Vardi: see http://www.cs.cornell.edu/home/halpern/rak.html) you can also go to yahoo and search for online IQ tests if you really feel so superior. Sinan. -- -------------------------------- A. Sinan Unur http://www.unur.com/