Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
喜欢这个话题,我不知道从哪里开始编写 sprintf_s 方法。我试图用 switch-case 来解决它,但同样,我不知道从哪里开始。感谢您的帮助!
这是你开始的地方:
文档
int sprintf_s( char *buffer, size_t sizeOfBuffer, const char *format, ...) { int ret_val = 0; [...Fill stuff in here...] return ret_val; }