OT: c++ q

2009-04-26 Thread Erez D
hi i have encountered a problem with g++ i have a class a, with forward declaration of a function "do_something" and a constructor a(int val); i implement them in a cpp file. g++ complains of redefinition of the constructor but not of the do_something() function. why ? files: == a.h === class

Re: OT: c++ q

2009-04-26 Thread Shachar Shemesh
Erez D wrote: hi i have encountered a problem with g++ i have a class a, with forward declaration of a function "do_something" and a constructor a(int val); i implement them in a cpp file. g++ complains of redefinition of the constructor but not of the do_something() function. why ? file

Re: OT: c++ q

2009-04-26 Thread Erez D
On Sun, Apr 26, 2009 at 3:43 PM, Shachar Shemesh wrote: > Erez D wrote: > > hi > > i have encountered a problem with g++ > > i have a class a, with forward declaration of a function "do_something" and > a constructor a(int val); > i implement them in a cpp file. > > g++ complains of redefinition

Re: OT: c++ q

2009-04-26 Thread Shachar Shemesh
Erez D wrote: you are right. i just wanted to give a small example instead of send my whole project to be inspected. Which I doubt anyone would. however after fixing the syntax of this small example, i can't seem to duplicate the problem that happened in the project. A clear symptom that t

Re: OT: c++ q

2009-04-26 Thread Erez D
On Sun, Apr 26, 2009 at 4:07 PM, Shachar Shemesh wrote: > Erez D wrote: > > > > you are right. i just wanted to give a small example instead of send my > whole project to be inspected. > > Which I doubt anyone would. > i would not send my whole project as this is spamming (and other reasons too)

Re: OT: c++ q

2009-04-26 Thread Erez D
On Sun, Apr 26, 2009 at 5:04 PM, Erez D wrote: > > > On Sun, Apr 26, 2009 at 4:07 PM, Shachar Shemesh wrote: > >> Erez D wrote: >> >> >> >> you are right. i just wanted to give a small example instead of send my >> whole project to be inspected. >> >> Which I doubt anyone would. >> > i would no

Re: OT: c++ q

2009-04-26 Thread Diego Iastrubni
On Sunday 26 April 2009 15:38:53 Erez D wrote: > files: > == a.h === MISSING: #ifndef __FILE_H__ > class a { > int m_a; > a (int val); > void do_somthing() > } MISSING: semicolon, last line should be }; MISSING: #endif // __FILE_H__ > == a.cpp === > #include "a.h" > a::do_somthing {a.m_a++;};

Re: OT: c++ q

2009-04-26 Thread Erez D
diego, you didn't find all the errors, try again ;-) On Sun, Apr 26, 2009 at 5:19 PM, Diego Iastrubni wrote: > On Sunday 26 April 2009 15:38:53 Erez D wrote: > > files: > > == a.h === > MISSING: > #ifndef __FILE_H__ > > class a { > > int m_a; > > a (int val); > > void do_somthing() > > } > MIS

Re: OT: c++ q

2009-04-26 Thread Shachar Shemesh
Diego Iastrubni wrote: On Sunday 26 April 2009 15:38:53 Erez D wrote: files: == a.h === MISSING: #ifndef __FILE_H__ There is no syntactical requirement to place those. If you do place those, it is customary to call them after the file's name. Also, "__" is only prepended to system

where are now ubuntu gutsy repositories ?

2009-04-26 Thread Lev Olshvang
Shalom, I need to install kernel headres for Ubuntu gutsy, but gutsy is no more on Canonical servers. Where it goes ? I found the required package on net and tryed to install it, but it requires some linux-headers-2.6.22-14 package, but this pakage does not exist. This way I put itsel

Re: where are now ubuntu gutsy repositories ?

2009-04-26 Thread ik
Gutsy has arrived to it's end of life. there are two Ubuntu versions release each year. One for five year, and one for a year. The years are the support years of course. As far as I know 8.10 aka Intrepid Ibex replacing it. On October a new version will replace 8/10 afaik. Ido On Sun, Apr 26,

Re: where are now ubuntu gutsy repositories ?

2009-04-26 Thread Geoff Shang
On Sun, 26 Apr 2009, Lev Olshvang wrote: I need to install kernel headres for Ubuntu gutsy, but gutsy is no more on Canonical servers. Where it goes ? http://old-releases.ubuntu.com/ubuntu/ Geoff. ___ Linux-il mailing list Linux-il@cs.huji.ac.

Swiftouch remaining stuff

2009-04-26 Thread Marc Volovic
Item Quantity Unit Price (NIS) before VAT IBM Intellistation M (2xP3 CPU, 1GB RAM, HW RAID controller, multiple SCSI disks) 2 750 Compaq DL360 (2*Xeon 2.6GHz, 4GB RAM, HW RAID, 2*147GB SCSI disks) 1 4,000 Compaq ML350 (2*P3, 1GB RAM, HW RAIDx2, 2x18GB SCSI disk, 4*250GB SATA disks) 1 1,00

Re: OT: c++ q

2009-04-26 Thread Diego Iastrubni
On Sunday 26 April 2009 17:31:59 Shachar Shemesh wrote: > > Go back to school, and as punishment re-implement quick_sort in VB.NET. > > Now that's going the "cruel and unusual" route. > > I do think every programmer should take the time to implement binary > search and quick sort at least once from

Re: OT: c++ q

2009-04-26 Thread Shachar Shemesh
Diego Iastrubni wrote: On Sunday 26 April 2009 17:31:59 Shachar Shemesh wrote: Go back to school, and as punishment re-implement quick_sort in VB.NET. Now that's going the "cruel and unusual" route. I do think every programmer should take the time to implement binary search and quick