运行Google App Engine Go的开发服务器时,请阅读以下控制台打印件:
#include <iostream>
#include <windows.h>
#include <algorithm>
#include <string>
using namespace std;
void string_permutation( std::string& orig, std::string& perm)
{
if( orig.empty() )
{
std::cout << "perm: " << perm << std::endl;
return;
}
for(int i = 0; i < orig.size(); ++i)
{
std::string orig2 = orig;
orig2.erase(i, 1);
std::string perm2 = perm;
perm2 += orig.at(i);
string_permutation(orig2, perm2);
}
}
int main()
{
system("color 1f");
std::string orig = "123";
std::string perm;
string_permutation(orig, perm);
cout << "Complete!" << endl;
cout << endl << endl << endl;
//system("pause");
return 0;
}
但那只是噪音,我怎么能抑制它?