#include "stdafx.h"
using namespace System;
class Calculater; // how to tell the compiler that the class is down there?
int main(array<System::String ^> ^args)
{
::Calculater *calculater = new Calculater();
return 0;
}
class Calculater
{
public:
Calculater()
{
}
~Calculater()
{
}
};
我在main函数后声明了一个类,我该如何告诉编译器我的类在哪里?我尝试在main函数前使用class Calculator;,但它没有起作用。