Commit 8388dba9 authored by yoogx's avatar yoogx

* Remove C99 for loop initialization

parent 4cdda17f
...@@ -48,6 +48,7 @@ void burnproc(int loop) ...@@ -48,6 +48,7 @@ void burnproc(int loop)
//Temporal Variable //Temporal Variable
__po_hi_time_t tstart; __po_hi_time_t tstart;
__po_hi_time_t tfin; __po_hi_time_t tfin;
int i, j, r;
double * E1; double * E1;
E1 = (double *)malloc(N9 * sizeof (double)); E1 = (double *)malloc(N9 * sizeof (double));
...@@ -60,11 +61,11 @@ void burnproc(int loop) ...@@ -60,11 +61,11 @@ void burnproc(int loop)
fflush (stdout);} fflush (stdout);}
//Main Loop //Main Loop
for (int j=0; j<loop ;j++){ for (j=0; j<loop ;j++){
//Initializing the array. //Initializing the array.
for (int r = 0 ; r < N9 ; r++) for (r = 0 ; r < N9 ; r++)
{ {
E1[r] = 0.0; E1[r] = 0.0;
} }
...@@ -79,7 +80,7 @@ void burnproc(int loop) ...@@ -79,7 +80,7 @@ void burnproc(int loop)
//Module 8: Procedure Calls //Module 8: Procedure Calls
Z = E1[4]; Z = E1[4];
for (int i = 0; i < N8;){ for (i = 0; i < N8;){
i++; i++;
P3(Y * (double)i , Y + Z, &Z); P3(Y * (double)i , Y + Z, &Z);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment