Design Data for Microstip Transmission Lines on RT duroid Laminates.pdf
標(biāo)簽: Microstip duroid
上傳時(shí)間: 2016-09-22
上傳用戶:dopod577w
// 學(xué)生管理.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resource.h" #define MAX_LOADSTRING 100 // Global Variables: HINSTANCE hInst; // current instance TCHAR szTitle[MAX_LOADSTRING]; // The title bar text TCHAR szWindowClass[MAX_LOADSTRING]; // The title bar text // Foward declarations of functions included in this code module: ATOM MyRegisterClass(HINSTANCE hInstance); BOOL InitInstance(HINSTANCE, int); LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); LRESULT CALLBACK About(HWND, UINT, WPARAM, LPARAM); struct person { char name[10]; int ID; int cj_yw; int cj_sx; struct person* next; struct person* pro; }per; int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // TODO: Place code here. MSG msg; HACCEL hAccelTable; // Initialize global strings LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); LoadString(hInstance, IDC_MY, szWindowClass, MAX_LOADSTRING); MyRegisterClass(hInstance); // Perform application initialization: if (!InitInstance (hInstance, nCmdShow)) { return FALSE; } hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_MY); // Main message loop: while (GetMessage(&msg, NULL, 0, 0)) { if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } return msg.wParam; } // // FUNCTION: MyRegisterClass() // // PURPOSE: Registers the window class. // // COMMENTS: // // This function and its usage is only necessary if you want this code // to be compatible with Win32 systems prior to the 'RegisterClassEx' // function that was added to Windows 95. It is important to call this function // so that the application will get 'well formed' small icons associated // with it. // ATOM MyRegisterClass(HINSTANCE hInstance) { WNDCLASSEX wcex; wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW; wcex.lpfnWndProc = (WNDPROC)WndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = hInstance; wcex.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_MY); wcex.hCursor = LoadCursor(NULL, IDC_ARROW); wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); wcex.lpszMenuName = (LPCSTR)IDC_MY; wcex.lpszClassName = szWindowClass; wcex.hIconSm = LoadIcon(wcex.hInstance, (LPCTSTR)IDI_SMALL); return RegisterClassEx(&wcex); } // // FUNCTION: InitInstance(HANDLE, int) // // PURPOSE: Saves instance handle and creates main window // // COMMENTS: // // In this function, we save the instance handle in a global variable and // create and display the main program window. // BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { HWND hWnd; hInst = hInstance; // Store instance handle in our global variable hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL); if (!hWnd) { return FALSE; } ShowWindow(hWnd, nCmdShow); UpdateWindow(hWnd); return TRUE; } // // FUNCTION: WndProc(HWND, unsigned, WORD, LONG) // // PURPOSE: Processes messages for the main window. // // WM_COMMAND - process the application menu // WM_PAINT - Paint the main window // WM_DESTROY - post a quit message and return // // LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { int wmId, wmEvent; PAINTSTRUCT ps; HDC hdc; TCHAR szHello[MAX_LOADSTRING]; LoadString(hInst, IDS_HELLO, szHello, MAX_LOADSTRING); switch (message) { case WM_COMMAND: wmId = LOWORD(wParam); wmEvent = HIWORD(wParam); // Parse the menu selections: switch (wmId) { case IDM_ABOUT: DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About); break; case IDM_EXIT: DestroyWindow(hWnd); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } break; case WM_PAINT: hdc = BeginPaint(hWnd, &ps); // TODO: Add any drawing code here... RECT rt; GetClientRect(hWnd, &rt); DrawText(hdc, szHello, strlen(szHello), &rt, DT_CENTER); EndPaint(hWnd, &ps); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } return 0; } // Mesage handler for about box. LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_INITDIALOG: return TRUE; case WM_COMMAND: if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) { EndDialog(hDlg, LOWORD(wParam)); return TRUE; } break; } return FALSE; }
上傳時(shí)間: 2016-12-29
上傳用戶:767483511
// 學(xué)生管理.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resource.h" #define MAX_LOADSTRING 100 // Global Variables: HINSTANCE hInst; // current instance TCHAR szTitle[MAX_LOADSTRING]; // The title bar text TCHAR szWindowClass[MAX_LOADSTRING]; // The title bar text // Foward declarations of functions included in this code module: ATOM MyRegisterClass(HINSTANCE hInstance); BOOL InitInstance(HINSTANCE, int); LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); LRESULT CALLBACK About(HWND, UINT, WPARAM, LPARAM); struct person { char name[10]; int ID; int cj_yw; int cj_sx; struct person* next; struct person* pro; }per; int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // TODO: Place code here. MSG msg; HACCEL hAccelTable; // Initialize global strings LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); LoadString(hInstance, IDC_MY, szWindowClass, MAX_LOADSTRING); MyRegisterClass(hInstance); // Perform application initialization: if (!InitInstance (hInstance, nCmdShow)) { return FALSE; } hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_MY); // Main message loop: while (GetMessage(&msg, NULL, 0, 0)) { if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } return msg.wParam; } // // FUNCTION: MyRegisterClass() // // PURPOSE: Registers the window class. // // COMMENTS: // // This function and its usage is only necessary if you want this code // to be compatible with Win32 systems prior to the 'RegisterClassEx' // function that was added to Windows 95. It is important to call this function // so that the application will get 'well formed' small icons associated // with it. // ATOM MyRegisterClass(HINSTANCE hInstance) { WNDCLASSEX wcex; wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW; wcex.lpfnWndProc = (WNDPROC)WndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = hInstance; wcex.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_MY); wcex.hCursor = LoadCursor(NULL, IDC_ARROW); wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); wcex.lpszMenuName = (LPCSTR)IDC_MY; wcex.lpszClassName = szWindowClass; wcex.hIconSm = LoadIcon(wcex.hInstance, (LPCTSTR)IDI_SMALL); return RegisterClassEx(&wcex); } // // FUNCTION: InitInstance(HANDLE, int) // // PURPOSE: Saves instance handle and creates main window // // COMMENTS: // // In this function, we save the instance handle in a global variable and // create and display the main program window. // BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { HWND hWnd; hInst = hInstance; // Store instance handle in our global variable hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL); if (!hWnd) { return FALSE; } ShowWindow(hWnd, nCmdShow); UpdateWindow(hWnd); return TRUE; } // // FUNCTION: WndProc(HWND, unsigned, WORD, LONG) // // PURPOSE: Processes messages for the main window. // // WM_COMMAND - process the application menu // WM_PAINT - Paint the main window // WM_DESTROY - post a quit message and return // // LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { int wmId, wmEvent; PAINTSTRUCT ps; HDC hdc; TCHAR szHello[MAX_LOADSTRING]; LoadString(hInst, IDS_HELLO, szHello, MAX_LOADSTRING); switch (message) { case WM_COMMAND: wmId = LOWORD(wParam); wmEvent = HIWORD(wParam); // Parse the menu selections: switch (wmId) { case IDM_ABOUT: DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About); break; case IDM_EXIT: DestroyWindow(hWnd); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } break; case WM_PAINT: hdc = BeginPaint(hWnd, &ps); // TODO: Add any drawing code here... RECT rt; GetClientRect(hWnd, &rt); DrawText(hdc, szHello, strlen(szHello), &rt, DT_CENTER); EndPaint(hWnd, &ps); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } return 0; } // Mesage handler for about box. LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_INITDIALOG: return TRUE; case WM_COMMAND: if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) { EndDialog(hDlg, LOWORD(wParam)); return TRUE; } break; } return FALSE; }
標(biāo)簽: 學(xué)生 計(jì)算器
上傳時(shí)間: 2016-12-29
上傳用戶:767483511
將圖像rgb空間轉(zhuǎn)換成Lab,對(duì)顏色相似的區(qū)域目標(biāo)實(shí)現(xiàn)實(shí)現(xiàn)分割
上傳時(shí)間: 2017-02-20
上傳用戶:monanzyq
簡(jiǎn)單易懂,大總結(jié),fid=fopen('Ising.m','rt'),sta=fclose(fid),fclose('all')
上傳時(shí)間: 2017-06-12
上傳用戶:tian610115
rt csharp namespace intro
上傳時(shí)間: 2017-08-19
上傳用戶:abc_1234
Proteus軟件是英國(guó)Lab Center Electronics公司出版的EDA工具軟件(該軟件中國(guó)總代理為廣州風(fēng)標(biāo)電子技術(shù)有限公司)。它不僅具有其它EDA工具軟件的仿真功能,還能仿真單片機(jī)及外圍器件。它是目前比較好的仿真單片機(jī)及外圍器件的工具。雖然目前國(guó)內(nèi)推廣剛起步,但已受到單片機(jī)愛(ài)好者、從事單片機(jī)教學(xué)的教師、致力于單片機(jī)開(kāi)發(fā)應(yīng)用的科技工作者的青睞。
上傳時(shí)間: 2018-04-07
上傳用戶:數(shù)字信號(hào)處理123
淋浴器溫度控制調(diào)節(jié)采用MAT LAB 的附加組件Simulink, 仿真系 統(tǒng)的框圖如圖1 所示。圖中的虛線為模糊控制器, 作為二維模糊控制器機(jī)構(gòu)以水的溫度偏差temp 和 流量偏差f low 為輸入量, 采用模糊推理方法對(duì)水 的溫度偏差和流量偏差進(jìn)行整定, 用來(lái)確定冷水閥 門(mén)和熱水閥門(mén)的開(kāi)口大小cold 和hot 以便控制冷 熱水的流量, 構(gòu)成2 輸入2 輸出的一階模糊控制系 統(tǒng); 模糊推理與去模糊化采用MIN - MAX 法及重 心法, 并用MA TLAB 模糊推理工具箱來(lái)編輯模糊 控制器。 圖1
上傳時(shí)間: 2018-10-12
上傳用戶:一只蟲(chóng)蟲(chóng)
用于開(kāi)發(fā)單片機(jī)的!!!超級(jí)單片機(jī)開(kāi)發(fā)工具!!! 單片機(jī)開(kāi)發(fā)過(guò)程中用到的多功能工具,包括熱敏電阻RT值--HEX數(shù)據(jù)轉(zhuǎn)換;3種LED編碼;色環(huán)電阻計(jì)算器;HEX/BIN 文件互相轉(zhuǎn)換;eeprom數(shù)據(jù)到C/ASM源碼轉(zhuǎn)換;CRC校驗(yàn)生成;串口調(diào)試,帶簡(jiǎn)單而實(shí)用的數(shù)據(jù)分析功能;串口/并口通訊監(jiān)視等功能. 用C++ Builder開(kāi)發(fā),無(wú)須安裝,直接運(yùn)行,不對(duì)注冊(cè)表進(jìn)行操作。純綠色軟件。 詳細(xì)說(shuō)明: 1、RT轉(zhuǎn)換:支持兩種電路,8/10位轉(zhuǎn)換精度,生成C/ASM源代碼格式的數(shù)據(jù),可手工輸入數(shù)據(jù)或從文件中讀取,輸入的數(shù)據(jù)可以保存到文件中。文件格式為逗號(hào)分隔符: 溫度,阻值 2、LED編碼信息:可以支持 7段/14段/16段 LED,支持 C/ASM 語(yǔ)法,可生成 4/8 位編碼,4位編碼主要用于某些 LCD 驅(qū)動(dòng)芯片。其中 7 段碼包括:0 -- F (Hex) 14 段碼包括:A -- Z, 0 -- F 16 段碼包括:A -- Z, 0 -- F 編碼方案可以保存供將來(lái)使用。 使用方法請(qǐng)點(diǎn)幫助。 3、色環(huán)電阻計(jì)算器功能。 4、HEX/BIN 文件相互轉(zhuǎn)換; HEX/BIN 轉(zhuǎn)換成 C/ASM 源代碼格式,適用于eeprom數(shù)據(jù)等處理。 加入CRC校驗(yàn)碼生成功能。其中生成BIN文件時(shí)自動(dòng)生成校驗(yàn)碼,Get CRC 可生成任意文件的CRC碼。 另外還有相關(guān)知識(shí)、資料等。 5、串口調(diào)試具有 a. 基本通訊功能; b. 數(shù)據(jù)分析功能,可自定義通訊數(shù)據(jù)中的變量,包括變量名、變量類(lèi)型(長(zhǎng)度),顯示方式等; 內(nèi)存映射功能中自定義變量的起始地址即內(nèi)存起始地址,可自定義; 由map文件自動(dòng)讀取內(nèi)存變量(因條件所限,目前只支持由 ImageCraft C(ICC) 編譯器產(chǎn)生的map文件,歡迎提供其他編譯器的map文件樣本); 可自定義內(nèi)存塊的起始/結(jié)束標(biāo)志; 歷史數(shù)據(jù)保存功能; c. 交互式通訊, 主發(fā)時(shí)可自定義多命令自動(dòng)循環(huán)發(fā)送; 從發(fā)時(shí)可定義接收到相應(yīng)命令后的應(yīng)答數(shù)據(jù)并自動(dòng)應(yīng)答; 6、串口監(jiān)視功能 目前具有本功能的多為共享軟件,本軟件中沒(méi)有任何限制。 實(shí)時(shí)監(jiān)視串口操作而不占用串口資源,可保存歷史數(shù)據(jù),2k下測(cè)試通過(guò),98下使用捕捉時(shí)可能會(huì)有點(diǎn)問(wèn)題,沒(méi)有進(jìn)行調(diào)試。 并口監(jiān)視應(yīng)該可以使用,沒(méi)有調(diào)試。 各種工具
標(biāo)簽: 單片機(jī)
上傳時(shí)間: 2019-05-27
上傳用戶:小愛(ài)心早餐
RtThread學(xué)習(xí)筆記,內(nèi)核機(jī)制等,如信號(hào)量互斥鎖時(shí)間郵箱等
標(biāo)簽: RT-Thread
上傳時(shí)間: 2021-11-01
上傳用戶:trh505
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1