Код: Выделить всё
#include
#include
char string[] = "sharjeel";
int len = 8;
int count = 0;
void swap(char& a, char& b){
char t = a;
a = b;
b = t;
}
void permute(int pos) {
if(pos==len-1){
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/43051948/why-is-stdcout-so-time-consuming[/url]
Мобильная версия