From 9d7fe660fae020bfe5650cd12890c19680f2ef55 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 18 May 2017 17:25:46 +0200 Subject: deleted some file --- cpp/substring.cc | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 cpp/substring.cc (limited to 'cpp/substring.cc') 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 - -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); - } -} -- cgit v1.2.3-18-g5258