上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: 单继承时,除了数据以外,还有虚表指针;多继承时,为每个父类维护一个虚表指针,若子类有重定义,则直接覆盖在上面,否则放在第一张虚表后。虚继承的情况还不一样,因为没用过虚继承,就没仔细看了,参见这,这,这。 阅读全文
posted @ 2013-04-19 16:42 litstrong 阅读(255) 评论(0) 推荐(0)
摘要: 题面见这,给一个多边形,有N个顶点,依次连接多边形上的顶点,要求每条线段要至少与之前的某条线段相交,且最终回到原点,求全部的方案数。需要发现具体的方案数与之前的访问的点的顺序是没有关系的,和具体的集合是有关系的,采用动态规划解决该问题。#include <iostream>#include <algorithm>#include <vector>#include <string>using namespace std;const int M = 18;long long dp[1 << M][M];bool check(int mas 阅读全文
posted @ 2013-04-19 16:21 litstrong 阅读(137) 评论(0) 推荐(0)
摘要: #include <iostream>using namespace std;template <typename T>class A {public: T x, y;public: A<T> operator-(const A<T> &t); template<typename T> friend A<T> operator+(const A<T> &x, const A<T> &y);public: A(); A(T t);};template <typename 阅读全文
posted @ 2012-11-27 15:53 litstrong 阅读(131) 评论(0) 推荐(0)
摘要: 实验室的机器不知道什么原因,总觉得用起来没有SL400那台笔记本好用。实验室SL400AirCPUE6800T5670显卡G41Mobile intel 4系列HD3000从上面的参数来看,实验室的机器在cpu和显卡上是不会输给SL400的,会是什么原因呢? 阅读全文
posted @ 2012-11-21 16:49 litstrong 阅读(139) 评论(0) 推荐(0)
摘要: 用CxImage处理MFC下的图片读取、OpenGL显示、保存等操作,试了官网上的6.0.0以及7.0.1版本都不能用VS2010正常编译通过(cximage会对应分别编译出crt与mfc版本,mfc版本不能编译通过,原因是vs的环境不一致导致stdafx.h中的版本定义不一致),然而在这里若仅仅是对stdafx.h中相应宏的修改也不能使它编译通过。 后来在这看到,CxImage7.0.2版本的下载,该版本有vs2010的sln,照着作者的方法就可以编译成功,需要注意的是,若采用动态链接的话,debug下仅仅使用cximaged.lib,不需要把那些lib都加进来,release的话同理... 阅读全文
posted @ 2012-11-19 17:19 litstrong 阅读(706) 评论(0) 推荐(0)
摘要: Visual Assist X + VsVimVisual Assist X常用快捷键见这。studiostyles vs配色方案 阅读全文
posted @ 2012-11-15 10:50 litstrong 阅读(189) 评论(0) 推荐(0)
摘要: 局部折叠Command+Alt+Left/Right全局折叠Shift+Command+Alt+Left/Right 阅读全文
posted @ 2012-10-13 20:47 litstrong 阅读(2917) 评论(1) 推荐(0)
摘要: 转自这try to write as less code as possible.refactoryour code often; trying to avoid duplicate stuff, improving its readability and simplifying its structure without changing its results.comment your code as much as possible (comments do not count as code:) )avoid complex code structure with large clas 阅读全文
posted @ 2012-10-11 10:25 litstrong 阅读(141) 评论(0) 推荐(0)
摘要: 从Levy主页那儿看到的,先拿过来,原文见这。Motivated byfinite element meshing, we started studying mesh parameterization in the late 90's, and presented an application to texture mapping [Siggraph 98] and interactive texturing [Siggraph 01]. Then, we developped the free boundary LSCM method in coop. with Alias Wave 阅读全文
posted @ 2012-09-19 16:02 litstrong 阅读(200) 评论(0) 推荐(0)
摘要: 先分享了,回头看,见这。 阅读全文
posted @ 2012-09-16 16:44 litstrong 阅读(131) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页