开发者

Getting strange output from printf

What causes StringCchPrintfW(buf, buflen, L"%f", double_var) to output "-1.#IO" in Windows Mobile? I am also getting "-1.#IND" sometimes. Documentation mentions "1.#INF" and "-1.#INF" where #IN开发者_Go百科F means infinity, but there is no mention of "#IO" or "#IND".


You're missing the first two parameters to the function. StringCchPrintf formats to a string which you need to provide rather than printing it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜