C++ 写txt自动编写长switch(状态机)

#include 
#include 

using namespace std;
int main(void)
{
    char* pathName = "F:\\1.txt";
    ofstream fout(pathName);
    if (fout)
    { // 如果创建成功
        fout<<"switch(i)"<

因为想把某个初始化任务异步执行,用了一个巨长的状态机,懒得打switch。。。

你可能感兴趣的:(C++,switch)