   LINK : fatal error LNK1561: entry point must be defined
  Created a blank VC++ project. Added a source file - DerivedClass.cpp with the following code -# include <iostream># include <stdlib.h>using namespace std; class BaseClass{public:virtual void Calculate(int a, int b){int c = a+ b;cout << "baseCalculate: " << c;}BaseClass(void){} };class DerivedClass:public  BaseClass{virtual void Calculate(int a, int b){int c = a+b-1;cout << "DerivedClass " << c << "";}DerivedClass(){}int main (int argc, char * argv[]){ system("PAUSE");return 0;}};Getting the exception - LINK : fatal error LNK1561: entry point must be definedI did write the main function as well. What could be the problem ?
  main() can't be part of a class. It has to be a non-member function.   