From: "Böhme Uwe" Newsgroups: comp.os.msdos.djgpp Subject: Re: Newbie questions... Date: Mon, 03 Aug 1998 05:54:20 +0200 Organization: Bingo (Buergernetz Ingolstadt eV) Lines: 28 Message-ID: <35C5346B.75F2CA66@hof.baynet.de> References: <01bdbe8e$78f07560$b9ba56d1 AT livivie DOT pinecrest DOT edu> NNTP-Posting-Host: port40.hof.baynet.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk > OK, OK, I have some questions. > > First off, how do you pass an int array as a parameter to a function? void IntArrayFunc( int* thisIsAArrayOfInts ) { thisIsAArrayOfInts[ 0 ] = 5; } int main() { int aArray[ 29 ]; IntArrayFunc( aArray ); // It's passed, now aArray[ 0 ] has the value 5 } > 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? Can't see the problem. Post the source. > Thanks in advance, > -mark Overall: Better to try alt.comp.lang.learn.c-c++ Thats for question not specially related to djgpp. Uwe