class someclass{
private:
int x;
int y;
public:
someclass(int x1, int y1);
};
someclass::someclass(int x1, int y1):x(x1),y(y1){
}
int main(){
someclass *a = new a(5,6);
}
int main()
{
someclass *a = new someclass(5,6);
// I think it was just a typing error :P
return 0; // *Edit - might want to return something so it'll compile too.
}
Returning from main is implicit, if you do not specify a return somewhere the compiler would normally expect one for another function, main will implicitly return 0.