本文介绍了打印值问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
在csv文件中,有一个字符串值(日期),显示为:00:55.0,但是单击该字符串时,在编辑栏中显示21:00:55.
当我尝试提取值时,代码:
Hi All,
In csv file, there is a string value(date)that appears as: 00:55.0 , but when clicked on that, 21:00:55 appears in the formula bar.
When I try to extract the value, the code :
wchar_t *pStrTime = str3; // this variable holds the time value
当我在调试中运行程序以检查值时,此pStrTime需要21:00:55,但是当我使用:
打印时
When I run my program in debug, to check the values, this pStrTime takes 21:00:55, but when I print this using :
wchar_t *pStrTime = str3; // this variable holds the time value str.Format(_T("%s),pstrTime)
但是当我打印时,将打印00:55.0.
为什么?
But when I print it, 00:55.0 is printed.
Why is that?
推荐答案
这篇关于打印值问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!