Re: Newbie question: I cant declare an object with a constructor made by myself.

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

 



Hi,

 Matter of typo -

> //////// Prueba3.h /////////
> 
> class CPrueba3
> {
> 
> public:
> CPrueba(int num);
  
  CPrueba3(int num);

  I would say its time you double check before posting.

 
> 
> };
> 
> 
> //////// Prueba3.cpp /////////
> 
> #include "Prueba3.h"
> 
> CPrueba3::CPrueba3(int num)
> {
> numero=num;
> }
> 
> /////// main.cpp ///////////
> 
> #include "Prueba3.h"
> 
> int main()
> {
> 
> int n=8;
> CPrueba3 prueba(n);  // i get the error on this line
> 
> }
> 
> br.
> GARFF
> 

-- 
Regards,
Anitha B
@S A N K H Y A


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux