🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2141

Re: Should be simple, but....

#2141
From: rpp
Date: Fri, 01 Mar 1996 15:43
41 lines
2079 bytes
In article: <4gnb36$bcm@solutions.solon.com>  dredlich@gulf.csc.UVic.CA (Devin Redlich) 
writes:
 > 
 > Ok, I'm using gcc 2.7.2 and I want to do something soooo simple...
 > 
 > I want to create a function that will multiply together 2 4X4 matrices,
 > in my case, 2 dimensional arrays.
 > 
 > So, I've got a fuction with the local vars
 > 
 > double x[4][4];
 > double y[4][4];
 > 
 > and I fill them up with values.  Now, I've written the function to do the 
 > multiplication, but I can't seem to please my compiler with the function 
 > header.  I've got:
 > 
 > void mulMat(double m1[4][4], double m2[4][4])
 > {
 >   ...do the math...
 > }
 > 
 > and my compiler just returns the error "syntax error at or near type work 
 > "double" "
 > 
 > Now, my book clearly states I'm allowed to do this, so why won't it let me!!!?
 > Any responses my e-mail would be most appreciated.
 > 
 > __
 > Devin Redlich                          Phone (604) 472-6466
 > University of Victoria                 http://gulf.uvic.ca/~dredlich
 > CSc Undergrad                          dredlich@gulf.uvic.ca
 > 
 > 
This may be a stupid suggestion, but are you sure that the preceding 
procedure declaration was terminated properly?
--
Richard P. Parkins, M. A.     rpp@pires.co.uk
Pi Technology Ltd.            +44 (0)1223 441434
Opinions expressed were mine at the time of posting,
otherwise all possible disclaimers apply.
Technical Details
Message-ID: <4h75uo$51s@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4gnb36$bcm@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: rpp <rpp@pires.co.uk>
Newsgroups: comp.lang.c.moderated
Subject: Re: Should be simple, but....
Date: 1 Mar 1996 09:43:20 -0600
Organization: Pi Technology Ltd
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4h75uo$51s@solutions.solon.com>
References: <4gnb36$bcm@solutions.solon.com>
Reply-To: rpp@pires.co.uk
NNTP-Posting-Host: solutions.solon.com
X-NNTP-Posting-Host: pires.demon.co.uk
X-Broken-Date: Thursday, Feb 29, 1996 15.53.34 GMT
X-Newsreader: Newswin Alpha 0.6
X-Mail2News-Path: disperse.demon.co.uk!post.demon.co.uk!pires.demon.co.uk