sprintf()问题 [英] sprintf() problem
本文介绍了sprintf()问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到了如下问题:
I encountered the problem as follows:
展开 | 选择 | Wrap | 行号
推荐答案
你的函数fun()使用了static char d []保存字符串,所以当你调用
your function fun() uses a static char d[] to hold the string so when you call
展开 | 选择 | Wrap | 行号
亲爱的horace1
那我怎么能解决这个问题呢?请帮忙。
Charles
Dear horace1
So how could I fix this problem? Please help.
Charles
你的函数fun()使用静态字符d []来保存字符串所以当你调用
your function fun() uses a static char d[] to hold the string so when you call
展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号
对不起我的错误。不应该有静态关键字。
事实上,当我删除它时问题仍然存在。
请帮忙。谢谢。
Sorry for my mistake. There shouldn''t be static keyword.
If fact, the problem still existed when I removed it.
Please help. Thank you.
这篇关于sprintf()问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文