Hello sohui,
In addition to
keskiverto's question are the line numbers in the files?
When I loaded up your files in my IDE, (VS2017), minus the line numbers I could not duplicate your error.
Not sure what you did using the code tags, but they do not put the line numbers in side the block unless you copy a pasted it that way.
In "Burrito2.cpp" you have:
1 2
|
#include "Burrito2.hpp"
#include <iostream>
|
Sometimes this will make no difference, but at other times it does. I tend to like this order better.
1 2 3
|
#include <iostream>
#include "Burrito2.hpp"
|
I like the ".hpp"extension better than the ".h" extension when using a C++ program. The ".h" makes me think it is a C header file when it is not.
With "Burrito2.hpp" being last the header file(s) that come before are compiled first and anything in the "Burrito2.hpp" file that would need the above header files is covered. I use the blank line to break the standard include files the ones in the (<>)s from the files that I would write, the ones in ("")s.
Hope that helps,
Andy