diff --git a/stat_new/test/test_0.c b/stat_new/test/test_0.c deleted file mode 100644 index 958d812..0000000 --- a/stat_new/test/test_0.c +++ /dev/null @@ -1,30 +0,0 @@ -#include -#include - - -int test_func(float* test) -{ - int i, j; - - *test = 3.0; - - return 0; -} - - -int main (int argc, char *argv[]) -{ - int i, j; - float test; - - test = 0.0; - printf ("%3.1f\n", test); - - printf ("Done\n"); - - test_func(&test); - - printf ("%3.1f\n", test); - - return 0; -} diff --git a/stat_new/test/test_1.c b/stat_new/test/test_1.c deleted file mode 100644 index 2564eac..0000000 --- a/stat_new/test/test_1.c +++ /dev/null @@ -1,35 +0,0 @@ -#include -#include - - -int test_func(float *test) -{ - int i, j; - - for (i=0; i<3; i++) - test[i] = i; - printf("\n%lf\n", test[1]); - - return 0; -} - - -int main (int argc, char *argv[]) -{ - int i, j; - float test[3]; - - for (i=0; i<3; i++) - test[i] = 0.0; - for (i=0; i<3; i++) - printf ("%3.1f\n", test[i]); - - printf ("Done\n"); - - test_func(test); - - for (i=0; i<3; i++) - printf ("%3.1f\n", test[i]); - - return 0; -} \ No newline at end of file diff --git a/stat_new/test/test_2.c b/stat_new/test/test_2.c deleted file mode 100644 index c155b8d..0000000 --- a/stat_new/test/test_2.c +++ /dev/null @@ -1,38 +0,0 @@ -#include -#include - - -int test_func(int **test) -{ - int i, j; - - for (i=0; i<3; i++) - for (j=0; j<3; j++) - test[i][j] = 3; - - return 0; -} - - -int main (int argc, char *argv[]) -{ - int i, j; - int test[3][3]; - - for (i=0; i<3; i++) - for (j=0; j<3; j++) - test[i][j] = 0; - for (i=0; i<3; i++) - for (j=0; j<3; j++) - printf ("%i\n", test[i][j]); - - printf ("Done\n"); - - test_func((int **) test); - - for (i=0; i<3; i++) - for (j=0; j<3; j++) - printf ("%i\n", test[i][j]); - - return 0; -} \ No newline at end of file diff --git a/stat_new/test/test_2.cpp b/stat_new/test/test_2.cpp deleted file mode 100644 index bf649ff..0000000 --- a/stat_new/test/test_2.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include - - -int test_func(int (&test)[3][3]) -{ - int i, j; - - for (i=0; i<3; i++) - test[i][i] = 3; - - return 0; -} - - -int main (int argc, char *argv[]) -{ - int i, j; - int test[3][3]; - - for (i=0; i<3; i++) - for (j=0; j<3; j++) - test[i][j] = 0; - for (i=0; i<3; i++) - for (j=0; j<3; j++) - printf ("%i\n", test[i][j]); - - printf ("Done\n"); - - test_func(test); - - for (i=0; i<3; i++) - for (j=0; j<3; j++) - printf ("%i\n", test[i][j]); - - return 0; -} \ No newline at end of file