c++: "expected unqualified-id" newbie errors
This is FinancialProductsManager.cc:
Code:
#include "FinancialProductsManager.h" Code:
#ifndef _FinancialProductsManager_H Code:
Running "rm -rf build/Debug/GNU-Generic/FinancialProductsManager.o" in /shared/kostas/10sem/programming/c++/arbigames |
There are a few errors, I might miss some because I just woke up.
So let's see First .. in your .h file you're missing a ';' (semicolon) after the class declaration (e.g.: class X { .... }; ) Also the way you define your methods is wrong, the right way is: return_value ClassName::methodname(params) {} so where you have Code:
FinancialProductsManager::bool insertProduct(string fproduct, double value) Code:
bool FinancialProductsManager::insertProduct(string fproduct, double value) On another note if you do "using namespace std" in the header file ... you don't need to do it also in the .cc files that include it Hope this helps ... Cheers! |
All times are GMT -5. The time now is 01:42 PM. |