fprintf将std::string类型写入文件
int main(int argc, char *argv[]){ std::cout << "Welcome to the QNX Momentics IDE" << std::endl; std::string logtxt = "test"; FILE * fp = NULL; fp = fopen( "/root/log1017", "a+" );
原创
2018-10-17 09:49:52 ·
3124 阅读 ·
0 评论