In the example below I do
MyClass a ();
I've been told that a is actually a function that returns a MyClass but neither of the following lines work.
MyClass b = a();
a.a = 1;
So what is a and what can I do with it?
#include "stdafx.h"
#include "iostream"
using namespace std;
class MyClass {
public:
int a;
};
int _tmain(int argc, _TCHAR* argv[])
{
MyClass a ();
// a is a function? what does that mean? what can i do with a?
int exit; cin >> exit;
return 0;
}