DescriptionAstronomers often examine star maps
where stars are represented by points on a plane and each star has Cartesian
coordinates. Let the level...
分类:
其他好文 时间:
2014-05-01 05:42:32
阅读次数:
368
动态请求数据来更新页面是现在非常常用的方法,比如博客评论的分页动态加载,微博的滚动加载和定时请求加载等。这些情况下,动态请求返回的数据一般不是已拼好的HTML就是JSON或XML,总之不在浏览器端拼数据就在服务器端拼数据。不过,从传输量方面来看,返回HTML不划算,而在web传输方面,现在更多的是使...
分类:
Web程序 时间:
2014-05-01 05:34:31
阅读次数:
462
首先:我们建立一个超类:Clothes: public abstract class
Clothes { public string Look = "beautiful"; public string Getlook() { ...
分类:
其他好文 时间:
2014-05-01 05:33:23
阅读次数:
231
1、命名空间std
C++标准中引入命名空间的概念,是为了解决不同模块或者函数库中相同标识符冲突的问题。有了命名空间的概念,标识符就被限制在特定的范围(函数)内,不会引起命名冲突。最典型的例子就是std命名空间,C++标准库中所有标识符都包含在该命名空间中。
如果确信在程序中引用某个或者某些程序.....
分类:
其他好文 时间:
2014-05-01 05:31:22
阅读次数:
348
转置(transpose)是指将x,y坐标对换,图2.2的转置如图2.15所示。图2.2图2.15
图2.2的转置要注意的是,转置和旋转900是有区别的,不信你可以试试:怎么旋转,图2.2也转不出图2.15来。另外,转置后图的宽高对换了。转置的变换矩阵很简单:(2.12)镜象变换的源代码如下,因为和...
分类:
其他好文 时间:
2014-05-01 05:29:20
阅读次数:
344
之前把调试项目的时候软件界面变成了很古板的那种界面,后来查了一会发现因为字符集的改变,个人习惯统一我一般用同一种字符集,虽然Unicode只涉及语言问题,不过总感觉它占内存,用非字符集,搜索发现将代码中的#ifdef
__UNICODE去掉就可以,注意后面的#endif。 1 #ifdef _UNI...
分类:
其他好文 时间:
2014-05-01 05:27:16
阅读次数:
374
Today I typed the
following:intt=(std::max)(timeout,lagtime);Why did I put parentheses around
std::max? Because windows.h defines (among other things)...
分类:
其他好文 时间:
2014-05-01 05:26:13
阅读次数:
383
来自:#include "DDraw.h"class CDDraw{public:void
CleanUp();void DrawDIB(BITMAPINFOHEADER* pBI,char* pData,RECT*rt);BOOL Init(HWND
hWnd,int nWidth,int nHe...
分类:
其他好文 时间:
2014-05-01 05:25:10
阅读次数:
407
1.给表添加,修改字段--添加alter table Infoadd ExpireDate
varchar(50) not null--修改(手动修改表结构时,有时会遇到TimeOut过期的问题,用sql改的时候没有发现异常)alter table
Infoalter column ExpireDa...
分类:
数据库 时间:
2014-05-01 05:24:10
阅读次数:
489
void listFiles(){ namespace fs = boost::filesystem;
boost::filesystem::path path=boost::filesystem::current_path();
fs::directory_iterator item_beg...
分类:
其他好文 时间:
2014-05-01 05:23:07
阅读次数:
310