+ 2

I have done all like here, but it doesn't work.

31st Jan 2018, 9:21 AM
Kirill Nalimov
Kirill Nalimov - avatar
16 Answers
+ 2
I have the error: “No such fil or directory” twice. What happened with CB? Or it’s my computer problem?
1st Apr 2018, 3:17 PM
Alexey Sarnavskiy
Alexey Sarnavskiy - avatar
+ 1
What did you do, write here so we can help better.
31st Jan 2018, 9:23 AM
Mustafa K.
Mustafa K. - avatar
+ 1
C++, destructors.
31st Jan 2018, 9:25 AM
Kirill Nalimov
Kirill Nalimov - avatar
+ 1
I am using the class 'Fire'
31st Jan 2018, 9:26 AM
Kirill Nalimov
Kirill Nalimov - avatar
+ 1
Okay I understood but I wanted you to write your code here
31st Jan 2018, 9:26 AM
Mustafa K.
Mustafa K. - avatar
+ 1
#include <iostream> #include "Fire.h" using namespace std; int main () { Fire obj; return 0 ; }
31st Jan 2018, 9:29 AM
Kirill Nalimov
Kirill Nalimov - avatar
+ 1
Can you write the codes inside Fire class?
31st Jan 2018, 9:29 AM
Mustafa K.
Mustafa K. - avatar
+ 1
#ifndef FIRE_H #define FIRE. H class Fire { public: Fire() ; ~Fire() ; protected: private: } ; #endif
31st Jan 2018, 9:32 AM
Kirill Nalimov
Kirill Nalimov - avatar
+ 1
What did u write in your destructor
31st Jan 2018, 9:33 AM
Mustafa K.
Mustafa K. - avatar
+ 1
#include "Fire.h" #include <iostream > using namespace std; Fire::Fire() { cout <<" Constructor" << endl; } Fire::~Fire () { cout<<"Destructor"<<endl ; }
31st Jan 2018, 9:35 AM
Kirill Nalimov
Kirill Nalimov - avatar
+ 1
* they are both FIRE_H
31st Jan 2018, 9:38 AM
Kirill Nalimov
Kirill Nalimov - avatar
+ 1
Are you sure that isnt working? Does it give you error?
31st Jan 2018, 9:41 AM
Mustafa K.
Mustafa K. - avatar
0
Yep, dont know why
31st Jan 2018, 9:51 AM
Kirill Nalimov
Kirill Nalimov - avatar
0
Code blocks
31st Jan 2018, 9:52 AM
Kirill Nalimov
Kirill Nalimov - avatar
0
What is error
31st Jan 2018, 9:54 AM
Mustafa K.
Mustafa K. - avatar
0
In the last all is yellow
31st Jan 2018, 10:42 AM
Kirill Nalimov
Kirill Nalimov - avatar