English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Give some examples...
useful references...

2007-10-31 04:33:08 · 3 answers · asked by David Junior 3 in Computers & Internet Programming & Design

3 answers

This is a pretty basic question, and I suggest you get a better understanding of pointers in general because they are a key part to C/C++.

Start by reading this:
http://www.cplusplus.com/doc/tutorial/pointers.html

2007-10-31 05:10:53 · answer #1 · answered by limaxray 3 · 2 1

CMyClass
{
public:
int m_nValue;
};

void MyFunc()
{
CMyClass MyClass;
IncValue(&MyClass);
}

void IncValue(CMyClass* pMyClass)
{
pMyClass->m_nValue++;
}

2007-10-31 05:19:17 · answer #2 · answered by M-O 3 · 0 1

Can I have some money now please ?

2007-10-31 04:40:14 · answer #3 · answered by Doodle 6 · 1 1

fedest.com, questions and answers