summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtestapp/c_cpp_files/sample.c20
-rwxr-xr-xtestapp/c_cpp_files/sample.cpp7
2 files changed, 0 insertions, 27 deletions
diff --git a/testapp/c_cpp_files/sample.c b/testapp/c_cpp_files/sample.c
deleted file mode 100755
index 660f862..0000000
--- a/testapp/c_cpp_files/sample.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include<stdio.h>
-
-void main(int argc , char * argv[])
-{
- int i,sum=0;
-
-/* if(argc!=3)
- {
- printf("you have forgot to type numbers.");
- exit(1);
- }
-*/
- printf("The sum is : ");
-
- for(i=1;i<argc;i++)
- sum = sum + atoi(argv[i]);
-
- printf("%d",sum);
-
-}
diff --git a/testapp/c_cpp_files/sample.cpp b/testapp/c_cpp_files/sample.cpp
deleted file mode 100755
index ab77b85..0000000
--- a/testapp/c_cpp_files/sample.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <iostream>
-#include<cstdlib>
-int main(int argc, char* argv[])
-{
- std::cout << atoi(argv[1])+atoi(argv[2]) << std::endl;
- return 0;
-}