摘要: #include "stdafx.h"#include "highgui.h"int main(){ IplImage* img=cvLoadImage("test.jpg"); cvNamedWindow("Example1",CV_WINDOW_AUTOSIZE); cvShowImage("Example1",img); cvWaitKey(0); //press any key to be continued cvReleaseImage(&img); cvDestroyWind 阅读全文
posted @ 2012-05-29 13:59 Epirus 阅读(144) 评论(0) 推荐(0) 编辑
摘要: View Code 1 #include <iostream> 2 #include <string> 3 #include <math.h> 4 using namespace std; 5 const double Threshold = 1e-6; 6 const int CardsNumber = 4; 7 const int ResultValue = 24; 8 double number[CardsNumber]; 9 string result[CardsNumber]; 10 bool PointGame(int n) 11 { 12 if 阅读全文
posted @ 2012-05-29 13:57 Epirus 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 如果说1,2,2,三个数异或会得到1,这样就可以进行一对的消除,保留出单个的变量。特别好 阅读全文
posted @ 2012-05-26 23:02 Epirus 阅读(183) 评论(0) 推荐(0) 编辑
摘要: #include<iostream.h>#include<windows.h>void main(){ for(;;) { for(int i=0;i<9600000;i++) { ; } Sleep(10); }} 这样可以控制CPU的运转效率 process idle 进行负责剩余的CPU使用率 阅读全文
posted @ 2012-05-24 22:07 Epirus 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1、download putty 然后去xuanyuan-soft.org.cn 申请一个账号2、使用putty 登录 服务器 阅读全文
posted @ 2012-05-23 22:15 Epirus 阅读(184) 评论(0) 推荐(0) 编辑