I am working on a c++ project and I have made a custom class. When I tried to ma
ID: 3534611 • Letter: I
Question
I am working on a c++ project and I have made a custom class. When I tried to make a vector of this class, I was given a couple errors (amongst many others) that I don't know how to fix. The errors are as follows.
project.cpp:5: error: `Appointment' was not declared in this scope
project.cpp:5: error: template argument 1 is invalid
The class name is, obviously, Appointment, and my vector I'm creating is on line 5 of project.cpp. I have no idea what to do with this, so any help is greatly appreciated.
Explanation / Answer
Snippet of some of the code? Hard to pinpoint the problem without something to view. Even tho its silly my first question is, did you forget the vector header? did you forget namespace std? Or if you're compiling via shell, did you accidentally use gcc instead of g++?
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.