原创 ACM競賽常用STL(二)之STL--algorithm

<algorithm>無疑是STL 中最大的一個頭文件,它是由一大堆模板函數組成的。 下面列舉出<algorithm>中的模板函數: adjacent_find / binary_search / copy / copy_bac

原创 最小生成樹(普里姆算法)

#include<stdio.h> #include<stdlib.h> #include<string.h> #include <limits.h>// #define INFINITY INT_MAX//用整型最大值代替無窮大 #d

原创 【C#基礎】之WinForm窗體常用控件的屬性、方法及事件簡介

今天結合自己以前蒐集的一些資料簡單總結下Winform窗體常用的控件使用及其屬性、方法、事件等…… 一、按鈕(Button)控件  幾乎存在於所有Windows對話框中,是Windows應用程序中最常用的控件之一。按鈕控件允許用戶通

原创 圖的深度遍歷和廣度遍歷

#include<stdio.h> #include<stdlib.h> #include "queue.h" #define MAX_VERTEX_NUM 20 typedef int VertexType; typedef struc

原创 ACM競賽常用STL(一)

全排列函數next_permutation STL 中專門用於排列的函數(可以處理存在重複數據集的排列問題) 頭文件:#include <algorithm> using namespace std; 調用: next

原创 停車場管理系統(用棧和隊列實現)

#include<stdio.h> #include<stdlib.h> #include<malloc.h> #define True 1 #define False 0 #define ok 1 #define Error 0 #de

原创 數據結構之順序表(集合的交併差)

//c語言 #include<stdio.h> #include<malloc.h> #define LIST_INIT_SIZE 100 //線性表存儲空間的初始分配量 #define LISTINCREASE 10 // 線性表

原创 datagridview 應用大全

http://www.cnblogs.com/xiaofengfeng/archive/2011/04/16/2018504.html

原创 C++中數字與字符串之間的轉換

1.字符串數字之間的轉換(1)string --> char * string str("OK"); char * p = str.c_str(); (2)char * -->string

原创 datagridview 的常用方法

1.可編輯性 1.1 整體禁止編輯            dataGridView1.ReadOnly = true ; 1.2設置 DataGridView1 的第2列整列單元格爲只讀DataGridView1.Columns[1]

原创 c#複習總結

 C#第一章筆記 1.C#程序的框架   namespace 包名   {  class 類名  {    static void Main(string[] args)   {    Console.WriteLine("Hello

原创 集合的交併差鏈式表示

#include<stdio.h> #include<malloc.h> typedef struct ListNode { int data; struct ListNode *next; }ListType; //創建 Lis

原创 遞歸的創建和訪問二叉樹

#include<stdio.h> #include<stdlib.h> typedef char TElemType; typedef int status; typedef struct BiTNode { TElemType

原创 c#登陸界面的判定和時間限定,SQL

private void btnLogin_Click(object sender, EventArgs e) { //從app.config文件中獲取節點的name屬性爲strcon的conn

原创 MFC中的列表控件CListCtrl

在使用CListCtrl控件Report顯示風格時,需要設置列標題信息,否則不能向控件中添加數據信息,編輯列標題需要 使用InsertColumn方法:     m_ListCtrl.InsertColumn(0, "姓名", LVC