亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

INT

  • [輸入] 圖的頂點個數N

    [輸入] 圖的頂點個數N,圖中頂點之間的關系及起點A和終點B [輸出] 若A到B無路徑,則輸出“There is no path” 否則輸出A到B路徑上個頂點 [存儲結構] 圖采用鄰接矩陣的方式存儲。 [算法的基本思想] 采用廣度優先搜索的方法,從頂點A開始,依次訪問與A鄰接的頂點VA1,VA2,...,VAK, 訪問遍之后,若沒有訪問B,則繼續訪問與VA1鄰接的頂點VA11,VA12,...,VA1M,再訪問與VA2鄰接頂點...,如此下去,直至找到B,最先到達B點的路徑,一定是邊數最少的路徑。實現時采用隊列記錄被訪問過的頂點。每次訪問與隊頭頂點相鄰接的頂點,然后將隊頭頂點從隊列中刪去。若隊空,則說明到不存在通路。在訪問頂點過程中,每次把當前頂點的序號作為與其鄰接的未訪問的頂點的前驅頂點記錄下來,以便輸出時回溯。 #include<stdio.h> INT number //隊列類型 typedef struct{ INT q[20]

    標簽: 輸入

    上傳時間: 2015-11-16

    上傳用戶:ma1301115706

  • [問題描述] 在二叉排序樹中查找關鍵字為KEY的記錄 [輸入] 有序表輸入要查找元素的關鍵字 [輸出] 查找成功是即可顯示查找成功 #include <stdlib.h> #

    [問題描述] 在二叉排序樹中查找關鍵字為KEY的記錄 [輸入] 有序表輸入要查找元素的關鍵字 [輸出] 查找成功是即可顯示查找成功 #include <stdlib.h> #include <stdio.h> typedef INT KeyType typedef struct{

    標簽: include stdlib KEY 輸入

    上傳時間: 2015-11-16

    上傳用戶:erkuizhang

  • [問題描述] 將N個關鍵字去整數的記錄進行整序

    [問題描述] 將N個關鍵字去整數的記錄進行整序, 以使所有關鍵字為非負數的記錄排在關鍵字為負數的記錄之前,要求使用最少的附加空間,且算法的時間復雜度為O(N) [輸入] 待排序記錄個數,各關鍵字的值。 [輸出] 關鍵字從正負分開,正數在前 [存儲結構] 待排序記錄順序存儲。 [算法的基本思想] 快速排序算法每次任取一個記錄的關鍵字為標準,將其余記錄分為兩組將,N個關鍵字去整數的記錄進行整序, 以使所有關鍵字為非負數的記錄排在關鍵字為負數的記錄之前。 #include <iostream> using namespace std #define MAXNUM 100//設文件的最長可能長度 void sort(INT* keys, const INT len)//排序

    標簽: 整數 記錄

    上傳時間: 2014-01-13

    上傳用戶:aig85

  • (1) 給定一段符合Pascal子集語法的語言

    (1) 給定一段符合Pascal子集語法的語言,能成功轉換成C語言; (2) 一個簡單的說明文檔; (3) 2007.7.14之前上傳到ftp:// C07:C07@10.11.3.71/upload,用學號建立自己的目錄; (4) (可額外加分5分)若有出錯處理功能,請在說明文檔中寫明可以處理哪幾項錯誤。 注意事項: (1) 兩人一組 (2) 可以使用詞法、語法自動生成工具,windows下有Flex,Bison,Linux下有Lex,Yacc,Java的有Jlex,JavaCC,ANTLR等 (3) 不用考慮Pascal和C的關鍵詞不同問題,即Pascal子集語言中假設不出現INT,for等作為變量標志符 (4) read()和write()可用由scanf(),prINTf()等組成的語句轉換。 (5) 如果有疑問可以發信給我 xpqiu@fudan.edu.cn.

    標簽: Pascal 語言

    上傳時間: 2015-11-20

    上傳用戶:talenthn

  • 移動平均預測 ModifyShiftAverageRegress.cs 移動平均也可畫趨勢圖

    移動平均預測 ModifyShiftAverageRegress.cs 移動平均也可畫趨勢圖,如下: public double forecast(INT INTerval) 移動平均認為數據是時間序列數據,該方法預測INTerval個時間間隔后的值 public override double[] getTrendArray() 得到趨勢數組,該數組的數據直接在圖形中展示出來就可以產生趨勢線。

    標簽: ModifyShiftAverageRegress 移動 cs

    上傳時間: 2014-01-01

    上傳用戶:wff

  • 顯示數據處理(拆數字).mcu控制LCD顯示數字時的拆數程序

    顯示數據處理(拆數字).mcu控制LCD顯示數字時的拆數程序,可拆INT型整數和float型浮點數,所拆數存放于全局變量 數組中。

    標簽: mcu LCD 數字 顯示數據

    上傳時間: 2013-12-27

    上傳用戶:kikye

  • UC Library Extensions UnderC comes with a pocket implementation of the standard C++ libraries, wh

    UC Library Extensions UnderC comes with a pocket implementation of the standard C++ libraries, which is a reasonably faithful subset. This documentation describes those UnderC functions and classes which are not part of the C++ standard. UC Library Builtin functions: Most of these are standard C functions, but there are a few unique to the UnderC system which give you runtime access to the compiler. You may evaluate expressions, execute commands, compile code, etc. * Expands the text in expr using the UnderC preprocessor, putting the result INTo buff. void uc_macro_subst(const char* expr, char* buff, INT buffsize) * Executes a UC #-command, like #l or #help. uc_cmd() expects the name of the command, _without_ the hash, e.g. uc_cmd("l fred.cpp") or uc_cmd("help"). void uc_cmd(const char* cmd) * Evaluates any C++ expression or statement will return non-zero if unsuccessful.

    標簽: implementation Extensions libraries standard

    上傳時間: 2013-12-14

    上傳用戶:leehom61

  • #ifdef _AFXDLL Enable3dControls() // Call this when using MFC in a shared DLL #else Enable3d

    #ifdef _AFXDLL Enable3dControls() // Call this when using MFC in a shared DLL #else Enable3dControlsStatic() // Call this when linking to MFC statically #endif CPreviewDialogDlg dlg m_pMainWnd = &dlg INT nResponse = dlg.DoModal() if (nResponse == IDOK) { // TODO: Place code here to handle when the dialog is // dismissed with OK } else if (nResponse == IDCANCEL) { // TODO: Place code here to handle when the dialog is // dismissed with Cancel } // Since the dialog has been closed, return FALSE so that we exit the // application, rather than start the application s message pump. return FALSE }

    標簽: Enable3dControls Enable3d AFXDLL shared

    上傳時間: 2015-12-19

    上傳用戶:hustfanenze

  • #if !defined(AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_) #define AFX_GAQUEEN_H_

    #if !defined(AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_) #define AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CGAQueen { public: CGAQueen(INT nPopulation,INT nIteration,float Mutation,INT mChBoard) virtual ~CGAQueen() void Clear() // to clear chess board with 0 value void InitialPopulation() // to create the first and initial randompopulation void FillArea(INT index) // to fill chess board with desired chromosome INT CostFunc(INT index) // determine the cost of matrix[index][index] void PopulationSort() // to sort population from the best to the worst void GenerateCrossOverMatrix() // a way to create children from parent is CcrossOver void Mating() // to create children from parents void Ap

    標簽: AFX_GAQUEEN_H INCLUDED defined define

    上傳時間: 2015-12-27

    上傳用戶:wuyuying

  • Dijkstra算法求最短路徑(C#版) using System using System.Collections using System.Text namespace Greedy

    Dijkstra算法求最短路徑(C#版) using System using System.Collections using System.Text namespace Greedy { class Marx { private INT[] distance private INT row private ArrayList ways = new ArrayList() public Marx(INT n,params INT[] d) { this.row = n distance = new INT[row * row] for (INT i = 0 i < row * row i++) { this.distance[i] = d[i]

    標簽: System using Collections namespace

    上傳時間: 2013-12-29

    上傳用戶:liglechongchong

主站蜘蛛池模板: 济南市| 土默特右旗| 锦屏县| 尼玛县| 饶阳县| 林西县| 陈巴尔虎旗| 永福县| 武隆县| 南宁市| 兴文县| 确山县| 双鸭山市| 奉贤区| 湖口县| 湘潭县| 广平县| 长武县| 柳江县| 涡阳县| 宁蒗| 广昌县| 连江县| 德钦县| 万年县| 桐庐县| 姜堰市| 平泉县| 黄浦区| 武夷山市| 佛坪县| 宁津县| 磴口县| 静海县| 旬阳县| 灵石县| 景泰县| 桃源县| 建昌县| 滦南县| 池州市|