Re: A89: matrix in C


[Prev][Next][Index][Thread]

Re: A89: matrix in C




umm... i don't think you know what you're talking about. gcc is one of the best
C compilers out there...

int main ( void )
{
	int a[5][5],b=0; // A 5x5 array of ints, and a single one

	for(;b<25;b++)
		a[b % 5][b/5]=0; // Set the array to 0.

	return 0;

}


Brady Simon wrote:
> 
> Can someone explain how to do matrix's in gcc because it is obviously
> different than C for the PC.(It think)
> I know I have asked this before but the only person who responded gave me
> some code that didn't compile.
> 
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com



References: