原创 求排列

#include"iostream.h" int str[5]={0,1,2,3,4}; void swap(int &a,int &b); void perm(int list[5],int k,int m) { if(k==m)

原创 鏈棧

//以下是stack.htypedef int ElemType;struct LNode{    ElemType data;    LNode* next;};void InitStack(LNode* &HS){    HS=NU

原创 動態規劃算法

#include<iostream.h>//動態規劃算法,求大子段問題,詳見視頻教程int MaxSum(int n,int a[]){    int sum=0,b=0;    for(int i=0;i<n;i++)    {   

原创 多態--強制多態

#include<iostream.h>class Parent{public:    void test()    {        cout<<"這是父類的test()"<<endl;    }    virtual test2()

原创 重定形函數的應用

#include<GL/glut.h>#include<math.h>#include<stdlib.h>const double TWO_PI=6.2831853;//Initial display-window sizeGLsize

原创 拓樸排序

  #include<iostream.h>//圖的鄰接表不是唯一的,因爲在每個頂點的鄰接表中,各邊結點的鏈接次序可以任意安排,//其具體鏈接次序與邊的輸入次序和生成算法有關。//下面給出建立圖的鄰接表的

原创 ASP.NET MVC3 開發分類信息網:目錄

從現在開始,將帶你從頭開始開發一個分類信息網,先將目錄起草如下,將不斷完善,敬請期待。 分類信息網效果:http://www.flxxwang.com 分類信息網1.0版源碼下載地址:http://bbs.flxxwang.com/sh

原创 分類信息網 1.0 版正式提供下載

分類信息網 1.0 版正式提供下載 (發佈時間:2013-1-20)http://bbs.flxxwang.com/showtopic-2.aspx   分類信息網1.0安裝教程http://bbs.flxxwang.com/showto

原创 ASP.NET MVC3 開發分類信息網:概覽

這裏先截幾張圖,方便大家瞭解下我們接下來要開發的網站。 主頁面:   列表頁面:     詳細頁面:   信息發佈頁面:  

原创 ASP.NET MVC3 開發分類信息網:(一)ModelBase<TModel,TKey>簡介

創建User表:CREATE TABLE Info_User( [Id] [int] IDENTITY(1,1) Primary key, [Nick] [nvarchar](50) NULL,--暱稱 [Sex] [bit] N

原创 分塊查找

#include<iostream.h>#define MaxSize 30 //MaxSize爲事先定義的整型常量,它要大於等於主表中元素的個數n#define ILMSize 10 //ILMSize爲事先定義的整型常量,它要大於等

原创 索引查找

#include<iostream.h>#define MaxSize 30 //MaxSize爲事先定義的整型常量,它要大於等於主表中元素的個數n#define ILMSize 10 //ILMSize爲事先定義的整型常量,它要大於等

原创 多態--過載多態

#include<iostream.h>//演示過載多態。class OverLoad{public:    void test()    {        cout<<"test()被執行"<<endl;;    }    void 

原创 多態--包含多態

#include<iostream.h>//演示包含多態(覆蓋)class Parent{public:    void test()    {        cout<<"這是父類的test()"<<endl;    }};class

原创 Kruskal算法

#include<iostream.h>const int n=6;  //圖的頂點數const int e=10;  //圖的邊數 n-1=<e<=n(n-1)/2 typedef int adjmatrix[n][n];  type