字符串窮舉算法(STL)

這裏實現的功能是給出一個任意序列的字符串組合,程序會產生包含所有字符的組合,算法部分用到了C++ STL中的next_permutation()函數,並計算耗時(用到了Win32 API)。代碼很簡單,就不加註釋了....   1 #include < iostream > 2 #include < string > 3 #include < algorithm > 4 #include < wi
相關文章
相關標籤/搜索