摘要:
http://blog.csdn.net/xdw1985829/article/details/6801349
阅读全文
posted @ 2014-12-12 15:18
perfect329
阅读(93)
推荐(0)
摘要:
Example:#pragma pack(2)struct One{ char c; short b; char a;};print: 6#pragma pack(2) struct One { char a; char c; short b; };print: 4#pragma p...
阅读全文
posted @ 2014-10-11 15:27
perfect329
阅读(152)
推荐(0)
摘要:
下面是关于代码高亮的设置。共三个设置1..cu文件高亮这个设置是让VS2010编辑.cu文件时,把.cu文件里的C/C++语法高亮。设置方法:在VS2010的菜单依次点击:工具->选项->文本编辑器->文件扩展名,在这个界面里:“编辑器(I)”下拉框选microsoftvisual++,在“扩展名”...
阅读全文
posted @ 2014-09-16 21:01
perfect329
阅读(1494)
推荐(0)
摘要:
参考了很多网上的教程,自己摸索的几天CUDA4.0安装完毕。 再次感谢前辈的各种教程,现把我的安装方法提供出来,给还在探索的新手参考一下。 我的环境:Win764旗舰,GTX580+ATI5450,使用双显卡为了单机调试,使用ATI卡为了防止搞不清楚程序在那个卡上跑CUDA。 要安装的是:CUDA4...
阅读全文
posted @ 2014-09-16 20:55
perfect329
阅读(1142)
推荐(0)
摘要:
http://blog.csdn.net/dbzhang800/article/details/6314073
阅读全文
posted @ 2014-08-05 12:39
perfect329
阅读(120)
推荐(0)
摘要:
Boost智能指针——scoped_ptrboost::scoped_ptr和std::auto_ptr非常类似,是一个简单的智能指针,它能够保证在离开作用域后对象被自动释放。下列代码演示了该指针的基本应用:#include #include #include class imple...
阅读全文
posted @ 2014-06-12 21:10
perfect329
阅读(276)
推荐(0)
摘要:
from the stack overflow
阅读全文
posted @ 2014-06-11 12:35
perfect329
阅读(462)
推荐(0)
摘要:
OpenGL 常用的库0. GL:OpenGL的底层函数库,并没有包含打开窗口,捕获鼠标键盘事件的函数。使用前缀gl,需要include1. GLU:利用底层的OpenGL函数来执行一些特定的任务,该函数都是用前缀glu, 需要include2. WGL:Microsoft Windows 下的函数...
阅读全文
posted @ 2014-06-05 20:59
perfect329
阅读(330)
推荐(0)
posted @ 2014-06-05 08:14
perfect329
阅读(128)
推荐(0)