【笔记】c++文件
1、文件。
#include <iostream> #include <cstdio> #include <string> #include <cstring> #include <ctime> #include <cstdlib> using namespace std; char *ch = "qwertyuiopasdfghjklzxcvbnm"; void setOut(string dataType) { string out = dataType + ".data"; freopen(out.c_str(), "w", stdout); } char *Random(char* word) { int len = rand() % 99; for (int i = 0; i != len; ++i) word[i] = ch[rand()%26 + 1]; word[len] = '