码迷,mamicode.com
首页 >  
搜索关键字:requestdispatcher forward include    ( 87212个结果
OpenGL入门学习
说起编程作图,大概还有很多人想起TC的#include 吧?但是各位是否想过,那些画面绚丽的PC游戏是如何编写出来的?就靠TC那可怜的640*480分辨率、16色来做吗?显然是不行的。本帖的目的是让大家放弃TC的老旧图形接口,让大家接触一些新事物。OpenGL作为当前主流的图形API之一,它在一些场...
分类:其他好文   时间:2014-05-01 05:15:00    阅读次数:947
boost 时间
利用boost来获取当前时间又方便快捷,还不用考虑跨平台的问题。1. 输出YYYYMMDD[cpp]view plaincopy#include#defineBOOST_DATE_TIME_SOURCEstd::stringstrTime=boost::gregorian::to_iso_strin...
分类:其他好文   时间:2014-05-01 05:13:57    阅读次数:418
【Win32】Windows
#include LRESULT CALLBACK WindowProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam){ switch (uMsg) { case WM_DESTROY: ...
分类:Windows程序   时间:2014-05-01 05:08:48    阅读次数:477
c++ ACM常用函数
1 保留小数点后两位#include cout const char * spilt="/";char *p;p=strtok(str,spilt);while(p!=NULL){ //cout #includesort(Rs.begin(),Rs.end());sort(Rs.begin(),Rs...
分类:编程语言   时间:2014-05-01 05:05:45    阅读次数:409
vtk 基础概念
#include#include#include#include#include#include#include#includeintmain(){vtkSmartPointercylinder=vtkSmartPointer::New();cylinder->SetHeight(3.0);cyli...
分类:其他好文   时间:2014-05-01 04:58:32    阅读次数:242
测试程序
#include#include#includevoiddisplay(){glClear(GL_COLOR_BUFFER_BIT);//清屏glColor4f(0.0,1.0,0.0,0.5);//绘制矩形glRectf(0.1,0.1,0.6,0.6);glColor4f(1.0,1.0,0.0...
分类:其他好文   时间:2014-05-01 04:48:18    阅读次数:331
c++ vector
在c++中,vector是一个十分有用的容器,下面对这个容器做一下总结。1 基本操作(1)头文件#include.(2)创建vector对象,vector vec;(3)尾部插入数字:vec.push_back(a);(4)使用下标访问元素,cout::iteratorit;for(it=vec.b...
分类:编程语言   时间:2014-05-01 04:46:15    阅读次数:373
c 函数及指针学习 8
联合体12345678910111213#include union sa{double a;int b;};int main(){union sa ssa;printf("%d \n",sizeof(union sa));}联合体的声明,定义,与结构体一样。联合体的长度为最长成员的长度。联合体的初...
分类:其他好文   时间:2014-05-01 04:08:15    阅读次数:357
hdu 1299
这个方法太厉害了 别人的记录一下#include#include#include#include#include#include#includeusing namespace std;#define MAX_PRIME 31700#define PRIME_NUM 3500int Primes[ P...
分类:其他好文   时间:2014-05-01 03:48:49    阅读次数:276
坑爹系列:sizeof运算符
C语言里的sizeof关键字用于返回变量的类型宽度(变量所占的字节个数)。例如:#include int main() {int i = 0;int size = sizeof i;printf("size of i is: %d",size);return 0;}会在控制台打印出int类型的变量i...
分类:其他好文   时间:2014-05-01 03:29:15    阅读次数:316
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!