VB中的格式化函数 [英] Format function in VB

查看:155
本文介绍了VB中的格式化函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VB中的格式函数如下:



.optRelative(0).Tag =格式(dX * 25.4,0.0 ### #)

如何用C ++或mfc做什么?



我试过的:



.optRelative(0).Tag =格式(dX * 25.4,0.0 ####)

What is following format function do in VB:

.optRelative(0).Tag = Format(dX * 25.4, "0.0####")
how to do in C++ or in mfc?

What I have tried:

.optRelative(0).Tag = Format(dX * 25.4, "0.0####")

推荐答案

格式功能 [ ^ ]。在C中,您可以使用sprintf_s函数,也在MSDN中描述。
Format Function[^]. In C you could use the sprintf_s function, also described in MSDN.


这篇关于VB中的格式化函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆