summaryrefslogtreecommitdiff
path: root/cpp/substring.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/substring.cc')
-rw-r--r--cpp/substring.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/cpp/substring.cc b/cpp/substring.cc
deleted file mode 100644
index 55aa319..0000000
--- a/cpp/substring.cc
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <iostream>
-
-using namespace std;
-
-void s(int i, int k, int n, char str[]);
-
-int main()
-{
- char ss[] = "SANTO";
- s(0, 4, sizeof(ss), ss);
-
- return 0;
-}
-
-void s(int i, int k, int n, char str[])
-{
- if(i < n - k){
- if(i < n-k) for(int j = i; j < i+k; j++) cout << str[j];
- cout << "\n";
- s(i+=1, k, n, str);
- }
-}