i have a couple of stupid questions as a beginner. im taking a c++ class, and am working on classes right now. im having a big issue on figuring out how to properly set up getters and setters. the other thing im having a big issue with is the instructor is having us now set up the classes in header files, and im having issues getting anything from the header file to work in the main cpp file. can anyone help please?
the error messages that i am getting (multiple) are ones indicitive of the header file not existing, so i dont know if the compiler can find it, but it does exist, as part of the overall file. what i am doing is creating the header file first, then creating the main cpp file with the #include, and on this example thank you for the no semi colon needed
Things like "projects" are your IDE hiding from you what's going on. When it breaks, you can't see that it's broken. The compiler doesn't know or care about "projects" - it only knows what the name of the header file is, and the list of places it's been told to search.