Tuesday, March 15, 2016

নম্বর sort করার code

কোন একটা এলোমেলো array কে সর্ট করার জন্য এটা সবচেয়ে সহজ কোড.


#include<bits/stdc++.h>
using namespace std;

int main()
{
   int a[]={2,3,4,1,8,6,5,7},i;
   sort(a,a+8);
   for(i=0;i<8;i++)
    cout<<a[i]<<endl;

   return 0

}

No comments:

Post a Comment

Speedup Android Studio

Go to Help ->Edit Custom VM Options, and chnge this 4 setting. After that close your Android Studio. This settings are for 8gb of ram pc...