std::ofstream cf; cf.open("SocketCooler" + std::to_string(this->id) + ".txt"); if(cf.is_open()) { cf << false << std::endl; cf.close(); }
Standard input is empty
prog.cpp:1:6: error: 'ofstream' in namespace 'std' does not name a type std::ofstream cf; ^ prog.cpp:2:1: error: 'cf' does not name a type cf.open("SocketCooler" + std::to_string(this->id) + ".txt"); ^ prog.cpp:4:1: error: expected unqualified-id before 'if' if(cf.is_open()) ^
Standard output is empty