User forums > Using Code::Blocks
Debug an Array
hqt:
I am trying to use Code::Block, But I still get some problem like when I'm using DevC++. In Watch Windows, I want to see A array. (example: int A[5][5]). but in debug windows, I will appear from top to down:
--- Code: ---A[1][1]
A[1][2]
...
A[5][5]
--- End code ---
This style is to difficult for me to trace an Double Array. I want to view like Free-Pascal:
--- Code: ---A[1][1] A[1][2] A[1][3]...
A[2][1] A[2][2] A[2][3]...
....
A[5][1] A[5][2] A[5][3]...
--- End code ---
Who know this problem, please answer to me please :(
thanks for all :)
oBFusCATed:
What? ... Computing ... Cannot compute...
Seriously why are you using C/C++, but you want it to behave like Pascal?
zabzonk:
> Seriously why are you using C/C++, but you want it to behave like Pascal?
I don't think he wants it to behave like Pascal, just to be displayed in a slightly more user-friendly and/or space-saving way.
ollydbg:
Not sure how OP did, but it works OK. (BTW: array index should start from 0, not 1 in C/C++)
see the screen shot in the watch window:
hqt:
Oh, It's very nice and very clear to debug. But how can you do that, please tell to me please.
(In your pictures, I seems You run on Redhat/Linux, But I'm using Code::Block on Windows, so I don't know if there are some different points between these version)
thanks:)
Navigation
[0] Message Index
[#] Next page
Go to full version