In the code we have a Derivative.h and a Derivative.cpp Classes inside our code. When we try to #include "Derivative.h" in our main.cpp an error shows up Error: cannot open source file "Derivative.h".
How can i fix this?
Do you have files called Derivative.h and Derivative.cpp? Sorry if this is a stupid question but you make it sound like you have classes named Derivative.h and Derivative.cpp.
Check that the files are located in the same directory as your main.cpp.
Then check (and double check) the exact spelling of the names, both the actual file, and the name stated in your program source code.
What do you mean by the same directory? Because they are in the same folder as main.cpp. And open when main.cpp opens and the spelling of the names is exactally the same.
Ok i got that figured out but now can someone tell me where i am wrong with my logic?
The console asks for a char of 's' || 'c' || 't' || 'e' || 'n' || 'o' and if it is not one of these a while loop below shows up. But the while loop always implements even if it is one of those values.