I'm just started c++ .My question are following :
1:Can anyone tell me How to Access class member(data) via pointers ?
2:can we access the private data member of class via pointers ?
3:How to declare them (pointer to data member of class )?
4:How to use them (pointer to data member of class )?
5:What is their significance ?
please help me .
In the same way you declare a int* or char* pointer, you can declare a YourClassName* pointer. A class or a struct is recongnized as a type. Also, read the tutorials found alongside the one in the post above in the order they're written, it will all -- most of it at least -- make sense then.
Have you any previous experience with C# or any other coding langauges? Even so, start at the beginning. I remember embarking upon classes early, for it was really easy in C#.