原创 start learnning OpenGL

下載openGL庫,配置環境,然後。。。借鑑網上的在頭裏面加了。。#define GLUT_DISABLE_ATEXIT_HACK  解決問題。。初

原创 心情。。。雨

事情都是這樣急急的處理,因爲一直拖着,也有選擇困難症,以後還是要過段,多讀點書,改變路子,多認識人,擴寬視野。。。。。最後感嘆一句爲什麼下雨。。爲什

原创 dp怎麼看還是很糾結的。。。。

DP 大腦一點都沒有想法,木有辦呀,只能多做。

原创 d3數據可視化----CSV&JSON

D3是JavaScript的數據可視化庫(http://d3js.org/),參考《數據可視化實戰--使用D3設計交互式圖表》 源碼位於:https://github.com/mbostock/d3/wiki 之前都沒有接觸過庫可以繪製

原创 foj_1532

又是棧的問題 #include <iostream> #include <stack> #include <memory.h> #include <string.h> using namespace std; char s1[18],

原创 編譯opengl問題

編寫調用Opengl庫時出現, 0x77698DA9   ntdll.dll處有未處理的異常  0xc0000005 讀取位置 0xfdfdfdfd 時發生訪問衝突 下面的框架可能不正確或缺失 搜了好久,發現網上寫可能是link ->i

原创 foj 1411

一開始想到退棧,沒想到是有點糾結,後來一想應該可以標記所有被匹配的括號,然後查找最大被標記的連續區域。 empty()空爲真 。。。。。 #include <iostream> #include <stack> #include <m

原创 pat 1029

     歸併排序#include <iostream> using namespace std; int a[1000001]; int b[1

原创 poj_1083

開始沒有考慮這樣的情況 1->3 4->5這種情況,因爲過道是兩邊,正對面的會存在衝突。 #include <iostream> #include <memory.h> using namespace std; int f[1000]

原创 poj_2092

hash+sort #include<iostream> #include <algorithm> using namespace std; struct myhash{ int id; int num; } myhash[

原创 pat_1028

#include <iostream> #include <string.h> #include <algorithm> using namespace std; struct student{ int id; char name

原创 zoj 1789

並查集。。 #include <iostream> #include <stdio.h> using namespace std; int group[30000]; int find(int x) { while(group[

原创 pat 1024

本來想用strrev 函數的。。。可是發現不能用,想偷懶,結果卻更麻煩#include<iostream> #include <stdio.h>

原创 pat_1040

    對於輸入的字符串,複製一個它的反串,求它們最大的公共子串#include <iostream> #include <string.h> #include <stdio.h> using namespace std; char

原创 pat_1030

用Dijkstra 加以修改 #include <iostream> #include<memory.h> #define INF 0x7fffffff using namespace std; int map[503][503];