+ 2
I have done all like here, but it doesn't work.
16 ответов
+ 2
I have the error: “No such fil or directory” twice. What happened with CB? Or it’s my computer problem?
+ 1
What did you do, write here so we can help better.
+ 1
C++, destructors.
+ 1
I am using the class 'Fire'
+ 1
Okay I understood but I wanted you to write your code here
+ 1
#include <iostream>
#include "Fire.h"
using namespace std;
int main () {
Fire obj;
return 0 ;
}
+ 1
Can you write the codes inside Fire class?
+ 1
#ifndef FIRE_H
#define FIRE. H
class Fire
{
public:
Fire() ;
~Fire() ;
protected:
private:
} ;
#endif
+ 1
What did u write in your destructor
+ 1
#include "Fire.h"
#include <iostream >
using namespace std;
Fire::Fire()
{
cout <<" Constructor" << endl;
}
Fire::~Fire ()
{
cout<<"Destructor"<<endl ;
}
+ 1
* they are both FIRE_H
+ 1
Are you sure that isnt working? Does it give you error?
0
Yep, dont know why
0
Code blocks
0
What is error
0
In the last all is yellow