Нужна помощь может кто находил и использовал такую прогу короче: имеется словарь допустим 8 слов привет петя как дела чем занят че блин Нужно что бы из 8 слово сгенерировало все возможные варианты вместе, допустим на 5 слов. привет петя как дела че привет как дела блин че занят че блин петя как и так далее...
Юзал это: http://www.promotools.ru/services/anchors.php потом это: http://www.promotools.ru/services/anchors-large.php
бугога, а смищно Code: // ConsoleApplication1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <conio.h> #include <windows.h> #define random(a , b) rand() % ((b - a) + 1) + a const char *s_words[] = { "привет ", "петя ", "как ", "дела ", "чем ", "занят ", "че ", "блин "}; int _tmain(int argc, _TCHAR* argv[]) { int usedWords = 0, t, r; char sBuf[256] = {0}, sOem[256]; srand(GetTickCount()); for(usedWords = 1; usedWords <= 8; usedWords++) { t = usedWords; while(t--) { do r = random(0,7); while(strstr(sBuf, s_words[r])); strcat(sBuf, s_words[r]); } CharToOemA(sBuf, sOem); printf("%s\n",sOem); sBuf[0] = 0; } return getch(); }