Commit 21b49692 authored by DIPTYAROOP MAJI's avatar DIPTYAROOP MAJI

update usage in main.cpp

parent 117b9e95
#include <iostream>
#include <vector>
#include "sorting.h"
......@@ -7,15 +8,20 @@ using namespace std;
int main(int argc, char const *argv[]) //main function
vector<int> a;
int s,e;
int num = 0;
printf("Enter start & end index : ");
scanf("%d %d", &s, &e);
while (num != -1)
if (num != -1)
a = sort_custom(a);
vector<int> tmp = sort_custom(a,s,e);
for(int i=s;i<e;i++)
for (int i=0; i <a.size(); i++)
cout<<a[i]<<" ";
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