摘要: 一、Irrlicht简介(1)概念Irrlicht引擎是一个用C++书写的高性能实时3D引擎,可以应用于C++程序或者.NET语言中。通过使用Direct3D(Windows平台)、OpenGL 或它自己的软件着色程序,可以实现该引的完​全跨平台。尽管是开源的,该Irrlicht库提供了可以在商业级... 阅读全文
posted @ 2013-07-14 20:24 Tail。 阅读(4400) 评论(0) 推荐(0)
摘要: 先调用string的c_str(),函数,该函数一个指向正规C字符串的指针, 内容与本字符串相同,然后调用atoi()函数就可以了,下面是一个简单的测试程序:#includeusing namespace std; int main(){ string str = "12345"; cout << atoi(str.c_str())<<endl; return ;} 阅读全文
posted @ 2012-04-03 11:41 Tail。 阅读(388) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <time.h> void main (){time_t rawtime;struct tm * timeinfo;time ( &rawtime );timeinfo = localtime ( &rawtime );printf ( "\007The current date/time is: %s", asctime (timeinfo) ); exit(0);}=================#include <time.h> -- 必须的时间函数头文件tim 阅读全文
posted @ 2011-12-02 18:44 Tail。 阅读(1787) 评论(0) 推荐(1)
摘要: 这是博客园博客开通的第一天,又是一个良好的开始。 阅读全文
posted @ 2011-10-18 15:53 Tail。 阅读(149) 评论(0) 推荐(0)