08 2022 档案
摘要:string MyStr::readstring1(const char*path) { ifstream file; file.open(path, ios::in);//读文件ios::in ios::binary file.seekg(0, ios::end); std::streamoff
阅读全文
摘要:string MyStr::askEnvValue(const char* env) { string e = ""; char* buf = nullptr; size_t sz = 0; if (_dupenv_s(&buf, &sz, env) == 0 && buf != nullptr)
阅读全文
摘要://确保路径格式为\\形式 char *q = strrchr(p, '\\';) + 1;
阅读全文