Parent Directory | Revision Log | Patch
revision 1.2 by srv89, Tue Sep 16 20:17:30 2003 UTC | revision 1.3 by vishnou, Fri Sep 19 18:03:15 2003 UTC | |
---|---|---|
# | Line 46 DiscSignal *get_from_file(char *str) | Line 46 DiscSignal *get_from_file(char *str) |
46 | FILE *f = fopen(str, "r"); | FILE *f = fopen(str, "r"); |
47 | int d; | int d; |
48 | fscanf(f, "%d\n", &d); | fscanf(f, "%d\n", &d); |
49 | double *tmp = (double*)malloc(d*sizeof(double)); | double *tmp = new double[d]; |
50 | for (int i = 0; i < d; i++) | for (int i = 0; i < d; i++) |
51 | { | { |
52 | fscanf(f, "%lf ", &(tmp[i])); | fscanf(f, "%lf ", &(tmp[i])); |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |