Yeah! It's all right! My misunderstanding! It works
great! :)
Igor S. Zamyatin
----- Original Message -----
Sent: Friday, December 05, 2003 3:52
PM
Subject: Re: [cdt-debug-dev]
Demonstrating of arrays
Look at the memory allocation for m_c_p. You will
see that "0x22fd24" is followed by "0x1".
----- Original Message -----
Sent: Friday, December 05, 2003 2:57
AM
Subject: Re: [cdt-debug-dev]
Demonstrating of arrays
I saw following:
0= 0x22fd24 1= 0x1 2= 0x2 3= 0x3 4=
0x5
The 0-th element is really **m_c_p, but the
1-st is **m_c_p[0]. I think, it's strange, but I must repeat again, may be I
have old version....
Igor S. Zamyatin
----- Original Message -----
Sent: Thursday, December 04, 2003
10:22 PM
Subject: Re: [cdt-debug-dev]
Demonstrating of arrays
What exactly is wrong? I tried this example
and it seems to work fine.
----- Original Message -----
Sent: Thursday, December 04, 2003
5:37 AM
Subject: [cdt-debug-dev]
Demonstrating of arrays
Hi all!
I found some problem in CDT Debugger, but
maybe just my CDT version too old....
I have such example of code:
int m_a[3][3] = {{1, 2, 3}, {5, 6, 7}, {12,
13, 14}};
int*
m_a_p = m_a[0];
int**
m_b_p = &m_a_p;
int ***
m_c_p = &m_b_p;
I try to watch by m_c_p in variables view. I expand it
and see *m_c_p. Then I want to "display as array" *m_c_p for example 5
elements. ThereI can be seen wrong results... First element
displays correctly, but others...
Igor S. Zamyatin
Interstron Ltd.
www.interstron.ru
|