I have a class
class Test{
public:
Test(){};
~Test(){};
void test() {cout<<"test"<<endl;};
};
and in main.cpp I have:
#include "Test.h"
using namespace std;
int main(){
Test t();
t.test();
}
Is this right way to declare method or am I getting it wrong? VS2010 doesn't recognise this method at all. It states that
expression must have a class type