Let's say I have a project directory where it has an include folder that has headers files (.hpp) and a src folder (.cpp). I am using visual studio code. How can I instead of writing #include "../include/Person.hpp"
write #include "Person.hpp"
?
My project has a structure like this:
project-name
|
|--src -- Main.cpp & Person.cpp
|
|--include -- Person.hpp
My Person.cpp has the implementations of Person.hpp. My main file looks like this:
#include <iostream>
#include "../include/Person.hpp"
int main() {
Person p("Allison");
std::cout << p.name << std::endl;
return 0;
}