It looks like you're new here. If you want to get involved, click one of these buttons!
In my program
using namespace std;
salesman(char *str,int p)
cout<<" has salary ";
for the line
i get error F:\c++projects\thispointer\pointerthis.cpp|19|error: '((salesman)this)->salesman::pay' cannot be used as a member pointer, since it is of type 'int'|
Can you tell me how to get around this one?