fold all codes

05 2012 档案

摘要:/cpp/dll/fun.cpp#include "fun.h"int fun(int n){ if (n < 1) return 1; return n * fun(n - 1);}/cpp/dll/fun.h#ifndef FUN_H#define FUN_Hint fun(int n);#endif // FUN_H/cpp/dll/main.cpp#include <iostream>using namespace std;#include "fun.h"int main(){ cout << fun(5) < 阅读全文
posted @ 2012-05-11 19:59 hylent 阅读(424) 评论(0) 推荐(0) 编辑
摘要:python的修改版字幕合并随着装系统而丢了,就用qt又写一遍。。SubtitlesMerger.pro 1 #------------------------------------------------- 2 # 3 # Project created by QtCreator 2012-04-14T15:32:10 4 # 5 #------------------------------------------------- 6 7 QT += core gui 8 9 TARGET = SubtitlesMerger10 TEMPLATE = app11 12 TR... 阅读全文
posted @ 2012-05-11 19:50 hylent 阅读(441) 评论(0) 推荐(0) 编辑
摘要:1 #include <iostream> 2 3 template <class T> 4 class List 5 { 6 struct Item 7 { 8 T data; 9 Item *next; 10 }; 11 12 public: 13 List(); 14 ~List(); 15 16 bool isEmpty() const; 17 int length() const; 18 const T &at(int k) const; 19 int s... 阅读全文
posted @ 2012-05-11 19:34 hylent 阅读(1368) 评论(0) 推荐(0) 编辑