this code doesn't compile, it says improper use of typedef 'hello' in function main()Code:#include <iostream.h>
class hello{
private:
int a;
public:
static int val;
};
void main(){
cout<<"gaurav "<<hello.val;
}
i am using borland c++ compiler