法:1:將類文件加入到你的項目中 2:在你的對話框中加入一個按紐(button),設(shè)置其文本和大小。 3:利用classwizard為按紐設(shè)置一個CButten類的值m_3dtext,然后編緝對話框的頭文件,將CButten m_3dtext 改為CMyTextButton m_3dtex 在 對話框的.CPP文件中加入#include "CMyTextButton.h"
上傳時間: 2013-12-03
上傳用戶:yyq123456789
員工培訓(xùn)系統(tǒng),首先確認(rèn)您的機(jī)器上已經(jīng)安裝了VC6.0以上版本,要編譯生成可執(zhí)行文件,需打開后綴名為dsw的文件,系統(tǒng)會默認(rèn)用VC打開,然后選擇Build菜單下的Set Active Configuration選項,選擇Project Configuration為Win32 Release,然后編譯項目,得到可執(zhí)行文件。連接數(shù)據(jù)庫請參照第2章的方法,在ODBC數(shù)據(jù)源內(nèi)添加Microsoft Access數(shù)據(jù)庫train.mdb,并將數(shù)據(jù)源名設(shè)定為train即可實現(xiàn)數(shù)據(jù)庫和應(yīng)用程序的正常連接,程序才能正常實現(xiàn)數(shù)據(jù)庫的訪問。另外,如果用戶自己編寫了.chm的幫助文檔只要和可執(zhí)行文件放在同一個目錄下就可以了。 用戶要修改程序源碼可以選擇相應(yīng)的.h和.cpp文件,本實例使用的命名規(guī)則基本是:DIALOG_***** 為管理對話框資源, *****Info為數(shù)據(jù)輸入窗口資源, *****Set為結(jié)果集對應(yīng)的類
上傳時間: 2015-08-26
上傳用戶:wmwai1314
王小平《遺傳算法——理論、應(yīng)用與軟件實現(xiàn)》隨書光盤,內(nèi)容有: \GA 本書中所附源程序C或C++代碼文件及其可執(zhí)行文件 Scs.cpp 基本分類算法源程序,輸入數(shù)據(jù)文件cfile.txt,efile.txt,gfile.txt,pfile.txt,rfile.txt,tfile.txt Sga.c 基本遺傳算法源程序, 輸入數(shù)據(jù)文件input,輸出文件output A_life.c 基于遺傳算法的人工生命模擬源程序, 輸入數(shù)據(jù)文件world GA_nn.c 基于遺傳算法優(yōu)化神經(jīng)網(wǎng)絡(luò)結(jié)構(gòu)源程序,輸入數(shù)據(jù)文件sample Patmat.c 基于遺傳算法提取基元圖形源程序 \Sources 遺傳算法相關(guān)自由軟件及代碼
標(biāo)簽: 算法 光盤 軟件實現(xiàn)
上傳時間: 2013-12-14
上傳用戶:sz_hjbf
Implemented BFS, DFS and A* To compile this project, use the following command: g++ -o search main.cpp Then you can run it: ./search The input is loaded from a input file in.txt Here is the format of the input file: The first line of the input file shoud contain two chars indicate the source and destination city for breadth first and depth first algorithm. The second line of input file shoud be an integer m indicate the number of connections for the map. Following m lines describe the map, each line represents to one connection in this form: dist city1 city2, which means there is a connection between city1 and city2 with the distance dist. The following input are for A* The following line contains two chars indicate the source and destination city for A* algorithm. Then there is an integer h indicate the number of heuristic. The following h lines is in the form: city dist which means the straight-line distance from the city to B is dist.
標(biāo)簽: Implemented following compile command
上傳時間: 2014-01-01
上傳用戶:lhc9102
程序功能: 1 管理員開設(shè)課程; 2 學(xué)生可以選擇課程; 3 學(xué)生注冊; 4 教師注冊; 5 教師給選自己課程的學(xué)生給成績; 6 管理員對學(xué)生成績進(jìn)行管理; 7 學(xué)生能夠查詢通過密碼自己的成績; cpp9.cpp 主函數(shù)控制程序運(yùn)行 teacher.cpp 教師類 course.cpp 課程類 Administrator.cpp 管理員類 delete_record.cpp 刪除記錄 save_lord.cpp 文件存取操作 short_record.cpp 生成簡明文件 bad.cpp 生成均不及格的學(xué)生文件 find.cpp 查找學(xué)生信息 input_disp.cpp 輸入、顯示信息 Graph1.cpp 圖形顯示 學(xué)生成績管理系統(tǒng)簡介.doc 程序說明
上傳時間: 2014-11-07
上傳用戶:shanml
該程序模擬UNIX中save與resume函數(shù),并介紹在VC中如何使用匯編進(jìn)行機(jī)器級的操作. 主函數(shù)很簡單首先引入兩個外部函數(shù),extern "C"表示按傳統(tǒng)C命名習(xí)慣.函數(shù)save將程序指針保存在(*s)中并返回0,為什么有 if(save(&sp)){...} if后的語句看起來永遠(yuǎn)都不會被執(zhí)行,但是運(yùn)行結(jié)果表明它被執(zhí)行了.這個問題同UNIX中處理機(jī)調(diào)度函數(shù)(switch)的那個if語句(第一句)一樣. 程序執(zhí)行完save(&sp)后得到因為條件為假而執(zhí)行else語句,卻在判斷之前將程序指針保存在sp中了. else語句中的resume(&sp),該函數(shù)很狡猾將堆棧中的返回地址改變了,改到了sp所指出,即將程序指針改到了執(zhí)行條件判斷前.resume返回1,條件滿足,執(zhí)行if語句. save函數(shù)堆棧: eip ebp+8 s ebp+4 ebp ebp+0 resume函數(shù)堆棧與save的相同. 新建一個win32的工程,將unixc.cpp和unix.obj加入過程即可. unix.obj是用masm6.11生成的:ml /c /coff unix.asm,生成coff格式的obj而不是omf格式.
標(biāo)簽: save resume extern 函數(shù)
上傳時間: 2015-09-10
上傳用戶:變形金剛
Predefined Style options define the style by setting several other options. If other options are also used, the placement of the predefined style option in the command line is important. If the predefined style option is placed first, the other options may override the predefined style. If placed last, the predefined style will override the other options. For example the style --style=ansi sets the option --brackets=break . If the command line specifies "--style=ansi --brackets=attach", the brackets will be attached and the style will not be ansi style. If the order on the command line is reversed to "--brackets=attach --style=ansi ", the brackets will be broken (ansi style) and the attach option will be ignored. For the options set by each style check the parseOption function in astyle_main.cpp
標(biāo)簽: options other Predefined setting
上傳時間: 2014-12-21
上傳用戶:zhangliming420
基于"trace transform"的識別2D圖像的C++源程序, 主文件是tt.cpp, 在LINUX下可以用 g++ tt.cpp -o tt -O3進(jìn)行編繹, 而且最后的結(jié)果也可以在MATLAB下顯示出來, This package presents C++ tools to the trace transform of a 2D image, and related objects, i.e. circuses and triple features, matlab tools to visualise these entities, and tools to check newly coded functionals. This version is released with a small number of functionals only.
標(biāo)簽: transform trace 識別 圖像
上傳時間: 2013-12-23
上傳用戶:redmoons
本文件概要介紹組成 Example 應(yīng)用程序的每個文件的內(nèi)容。 Example.vcproj 這是使用應(yīng)用程序向?qū)傻?VC++ 項目的主項目文件。 它包含生成該文件的 Visual C++ 的版本信息,以及有關(guān)使用應(yīng)用程序向?qū)нx擇的 平臺、配置和項目功能的信息。 Example.cpp 這是主應(yīng)用程序源文件。 包含用于顯示窗體的代碼。 Form1.h 包含窗體類的實現(xiàn)和 InitializeComponent() 函數(shù)。 AssemblyInfo.cpp 包含用于修改程序集元數(shù)據(jù)的自定義屬性。
標(biāo)簽: Example vcproj Visual 應(yīng)用程序
上傳時間: 2013-12-17
上傳用戶:上善若水
This code in this directory implements the binary hopfield network. Source code may be found in HOPNET.CPP. A sample training file is H7x8N4.trn. Sample test pattern files are: H7x8D4.TST, H5x8D7.TST, H5x8D7.TST and H5x8D9.TST, Output of the program goes to both the screen and a file, ARCHIVE.LST.
標(biāo)簽: code implements directory hopfield
上傳時間: 2014-01-16
上傳用戶:123啊
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1