问题描述
[在新主题中重新发布,作为一个论坛颠簸似乎没有工作:)]
发现了sprintf(参见),我意识到这是我的时间转换功能的想法,见主题。所以我采取了暴跌,转换它,它工作了一段时间,但现在出了问题!
这个函数传递一个整数秒,并返回一个文本字符串 HH:MM"从中衍生出来。但它不再起作用了;我想我正在做一些愚蠢的事情!
请注意,txt4 [4]和txt7 [7]是全局暂存器变量。
[Repost in new thread, as a forum bump doesn''t seem to work :)]
Having discovered sprintf (see here), I realised that it was idea for my time conversion function, see this thread. So I took the plunge, and converted it, and it worked for a while, but now something has gone wrong!
This function is passed an integer number of seconds, and returns a text string " HH:MM" derived from it. But it doesn''t work anymore; I guess I''m doing something dumb!
Note that txt4[4] and txt7[7] are global scratchpad variables.
推荐答案
这篇关于sprintf有更多问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!