MESSAGE
| DATE | 2008-09-10 |
| FROM | Ruben
|
| SUBJECT | Subject: [NYLXS - HANGOUT] Vectors as parameters in constructors
|
From lest-hangout-at-mrbrklyn.com Wed Sep 10 12:31:46 2008 Received: from www2.mrbrklyn.com (localhost [127.0.0.1]) by www2.mrbrklyn.com (8.13.1/8.13.1/SuSE Linux 0.7) with ESMTP id m8AGViAl014635 for ; Wed, 10 Sep 2008 12:31:46 -0400 Received: (from majordomo-at-localhost) by www2.mrbrklyn.com (8.13.1/8.13.1/Submit) id m8AGVhEg014634 for hangout-outgoings; Wed, 10 Sep 2008 12:31:43 -0400 X-Authentication-Warning: www2.mrbrklyn.com: majordomo set sender to lest-hangout-at-nylxs.com using -f Received: from www2.mrbrklyn.com (www2.mrbrklyn.com [68.167.17.98]) by www2.mrbrklyn.com (8.13.1/8.13.1/SuSE Linux 0.7) with SMTP id m8AGVe2S014629 for ; Wed, 10 Sep 2008 12:31:42 -0400 From: Ruben Organization: NYLXS Subject: [NYLXS - HANGOUT] Vectors as parameters in constructors Date: Wed, 10 Sep 2008 12:31:43 -0400 User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-Id: Newsgroups: comp.lang.c++ To: hangout-at-mrbrklyn.com X-NYLXS: Really - yah think computers are supposed to be broken? X-DRMisTHEFT: Use GNU Linux today X-LOCATION: Brooklyn NY - Forget abou' it! X-From: A Dark Cloud MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: lest-hangout-at-mrbrklyn.com Precedence: bulk Reply-To: hangout-at-mrbrklyn.com
Hello I'm working out an exercise with vectors and classes. I have a vector defined in a constructor which is just failing to compile with a systax error complaint by gcc:
The code is here:
http://www.nylxs.com/docs/workshops/recepe.h.html
test_cast.C:13:18: recepe: No such file or directory In file included from recepe.C:13: recepe.h:112: error: syntax error before `&' token recepe.h:113: error: syntax error before `&' token recepe.h:117: error: syntax error before `)' token
I thought at first that the trouble was that my class type wasn't being accepted as a type for the vector, but even when I swap out Ingr for int, this line still fails.
Ruben
-- http://www.mrbrklyn.com - Interesting Stuff http://www.nylxs.com - Leadership Development in Free Software
So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998
http://fairuse.nylxs.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
"Yeah - I write Free Software...so SUE ME"
"The tremendous problem we face is that we are becoming sharecroppers to our own cultural heritage -- we need the ability to participate in our own society."
"> I'm an engineer. I choose the best tool for the job, politics be damned.< You must be a stupid engineer then, because politcs and technology have been attached at the hip since the 1st dynasty in Ancient Egypt. I guess you missed that one."
© Copyright for the Digital Millennium
|
|