So far all I have in my DecisionTree.h file is
namespace DecisionTree
{
public static double Entropy(int pos, int neg);
}
and Visual Studio is already highlighting the public and saying
Error: expected a declaration.
What am I missing?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
publicis an access specifier. Access specifiers are applicable only withinclass/structbody and not insidenamespace. In C++ (unlike Java) it must be followed by a colon:inside theclassbody.For example,