In .cpp file I assume you have included the .h file and if that is true its correct but then tmpo and other variables are in doubt