在用sprintf、sprintf_s的過程當中遇到的問題

今天在用sprintf和sprintf_s的過程當中遇到了問題,想了挺久才解決的,如今就來記錄一下。ios 先上使用sprintf時出現錯誤的代碼安全 #include <new> #include <string> int main() { std::string tmp = "ABC"; char *p = new char[tmp.size()](); for (
相關文章
相關標籤/搜索