Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

cpp problems:instantiating class?

hello, i used microsoft visual studio 2019 community c++ compiler ide to build a simple demo project, in declare class with header Calculator.h and class implementation code Calculator.cpp

class Calculator

{

public:

int Add(int a,int b){ return a+b;}

long Multiply(int a, int b{return a*b;}

}

but when i try to instantiate and use the code, the intellisense do not sense there is the Calculator class exist, and i write statement using Calculator,it indicate me no such class exist, what are the problems and how to fix them

}

There are no answers yet.
Be the first to answer this question.