I recently began teaching myself c++ with a book, c++ primer, and I just started with classes. But when I try compiling my file I get this error message:
1 2 3 4
hello.cpp:2:10: fatal error: Sales_item.h: No such file or directory
2 | #include "Sales_item.h"
| ^~~~~~~~~~~~~~
compilation terminated.
The code in my file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <iostream>
#include "Sales_item.h"
int main()
{
Sales_item book;
std::cin >> book;
std::cout << book << std::endl;
return 0;
}
From what I've read, it has something to do with a .mk file? I couldn't find anything that precise.