Undefined reference while including header in C?

So here's what you did wrong. In class. Cpp you recreate a new Trida class rather than implement the one you've created in class.h.

Your class. Cpp should look more like this.

So here's what you did wrong. In class. Cpp you recreate a new Trida class rather than implement the one you've created in class.h.

Your class. Cpp should look more like this: #include #include "class. H" using namespace std; Trida::Trida(int n) { this->a = n; } void Trida::fce() { cout a.

Wow that was fast. Problem is simpler than I thought. Thank you very much :-) – Gwynbleidd Jan 8 at 5:28.

You are defining class trida two times (in the header file class. H and in the source file class. Cpp) Your class.

Cpp file should be like #include #include "class. H" //include "class. H" using namespace std; Trida::Trida(int n):a(n) //Initialization list { } void Trida::fce() { cout a.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions