原创 最小生成樹(克魯斯卡爾方法)

#include<stdio.h> #include<stdlib.h> #define M 20 #define MAX 20 typedef struct {      int begin;      int end;

原创 hdoj2540

遮擋判斷 Time Limit: 10000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 556   

原创 hdoj1710Binary Tree Traversals

Binary Tree Traversals Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submis

原创 ZOJ Problem Set - 1949 Error Correction

#include<fstream> #include<iostream> using namespace std; int matrix[100][100]; int SL[100]; int SC[100]; int main() {

原创 數據結構運算符作業

#include<stdio.h> #include<stdlib.h> #include<string.h> #define NULL 0 #define OK 1 #define ERROR -1 #define STACK_SIZE

原创 Hdoj 1379 DNA Sorting

#include<fstream> #include<string> #include<vector> #include<algorithm> #include<iostream> using namespace std; bool c

原创 .net 操作鍵盤和鼠標

1.首先在Form1的構造函數中加入如下事件             this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseClick

原创 二叉樹的遍歷(遞歸方法)

#include <iostream> #include <stdlib.h> using namespace std; typedef struct np{  int date;  struct np *left,*right; } n

原创 matlab代碼到C++代碼轉化及使用全攻略

1.在matlab中輸入命令: mbuild -setup 安裝編譯器。(注意點:選擇計算機上已有的VC/VS編譯器,並輸入相應的路徑) 2.在matlab中輸入命令: deploytool   進入該模式 3.按新建按鈕,選擇C++ S

原创 ZOJ 2724Windows Message Queue

#include<cstring> #include<iostream> #include<queue> #include<cstdio> using namespace std; struct Message { char Name[

原创 .net 使用打印

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Linq; usin

原创 ZOJ 2109 FatMouse' Trade

#include<fstream> #include<iostream> #include<vector> #include<algorithm> using namespace std; struct Mouse { double J

原创 ZOJ 2727List the Books

#include<fstream> #include<iostream> #include<vector> #include<algorithm> #include<string> using namespace std; struct