include a file in a directory cpp 1

include a file in a directory cpp

#include "../../Header/class1.h"

Here is what the above code is Doing:
1. It’s importing the header file.
2. It’s importing the class1.cpp file.
3. It’s importing the class1.h file.

Now, let’s look at the class1.cpp file:

#include “../../Header/class1.h”

class1::class1()
{
}

class1::~class1()
{
}

void class1::print()
{
std::cout << "Hello World!" << std::endl; }

Similar Posts