skip to main
|
skip to sidebar
薪的刻痕
孔子曰:中午不睡,下午崩溃。
孟子曰:孔子说的对。
2009年11月4日星期三
C++ way to convert from a double to an int
The C++ way to convert from a double to an int is with static_cast:
int m;
double x;
m = static_cast<int>(x);
没有评论:
发表评论
较新的博文
较早的博文
主页
订阅:
博文评论 (Atom)
常用连接
R-project
Smashing
W3School
标签
Java
R Language
C/C++
JSP
Linux
Tomcat
Web前端
博客归档
►
2010
(5)
►
三月
(5)
▼
2009
(25)
►
十二月
(1)
▼
十一月
(3)
Common Commands (beta, Sun Grid Engine)
Vector for Array
C++ way to convert from a double to an int
►
十月
(6)
►
九月
(1)
►
八月
(2)
►
六月
(2)
►
五月
(4)
►
三月
(6)
没有评论:
发表评论