Mail Archives: djgpp/1998/08/03/07:17:47
Reply-To: | <arfa AT clara DOT net>
|
From: | "Arthur" <arfa AT clara DOT net>
|
To: | "DJGPP Mailing List" <djgpp AT delorie DOT com>
|
Subject: | RE: Newbie questions...
|
Date: | Mon, 3 Aug 1998 12:17:39 +0100
|
Message-ID: | <000101bdbed0$533b1d60$e14e08c3@arthur>
|
MIME-Version: | 1.0
|
Importance: | Normal
|
In-Reply-To: | <01bdbe8e$78f07560$b9ba56d1@livivie.pinecrest.edu>
|
> First off, how do you pass an int array as a parameter to a function?
void function(*array)
{
do_stuff();
}
int main(void)
{
int array[5];
function(array);
}
> Second, how come both rand() and random() generate the same numbers again
> and again.. I can't find any sort of seed function to fix this. Is there
> one or am i using it wrong?
Look up the srand() function.
James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819
- Raw text -