[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Q] Double's Arrays!
From: |
Gerardo Guerrero |
Subject: |
[Q] Double's Arrays! |
Date: |
Wed, 09 Jan 2002 11:11:00 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 |
Hello!!!
I am new in the list... I am working with gdb/ddd in a personal project,
for this I work in gnu compiler g77 and gcc...
I have a lot of double's arrays in my programs... and they are
super-neccesary... how can i print the value of the arrays???
The code is, for example...
double *array;
array = (double *)malloc(sizeof(double)*7);
for(i =0; i < 7; i++) {
array[i] = 5;
}
in order to print the array I have to write in ddd
graph display address@hidden
but the result is...
*{<data variable, no debug info>} (void *) 0x8078564 @ 7 = {0, 1075052544,
0, 1075052544, 0, 1075052544, 0}
not 5, 5, 5, 5, 5, 5, 5
can you help me please???
Thanks in advance...
Gerardo
- [Q] Double's Arrays!,
Gerardo Guerrero <=