虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

WINdow

  • c#简单计算器

    // 学生管理.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; }

    标签: 计算器 学生

    上传时间: 2016-12-29

    上传用户:767483511

  • 简单的计算器

    // 学生管理.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; }

    标签: 学生 计算器

    上传时间: 2016-12-29

    上传用户:767483511

  • CC2520+STM32

    #define RF_CHANNEL                25      // 2.4 GHz RF channel // BasicRF address definitions   µØÖ·¶¨Òå #define PAN_ID               0x2007 #define TX_ADDR              0xBEEF #define RX_ADDR              0x2520 // transmit data ´«ÊäÊý¾Ý      #define APP_PAYLOAD_LENGTH    1      //Ó¦ÓóÌÐò¸ºÔس¤¶È #define MAX_PAYLOAD_LENGTH    104 #define PACKET_SIZE           sizeof(perTestPacket_t) #define RSSI_AVG_WINdow_SIZE  32  // WINdow size for RSSI moving average // Burst Sizes #define BURST_SIZE_1            1000 #define BURST_SIZE_2            10000 #define BURST_SIZE_3            100000 #define BURST_SIZE_4            1000000

    标签: 2520 STM CC 32

    上传时间: 2017-02-28

    上传用户:DoubleM

  • matlab 滑动相关计算程序

    function [Rs,Ps]=move_corr(X,Y,a) %%%--- this function is for moving correlation %%%--- X,Y is the imput data, a is the length of the moving WINdow %%%--- Rs is the spwarman correlation coeffcient, Ps is the p_vaue

    标签: matlab 计算 程序

    上传时间: 2017-12-27

    上传用户:Clocks

  • java代码的文件上传工具类

    实现了文件的上传和下载和删除,其中可以区分linux和WINdow系统,可以文件分包策略。

    标签: java 代码 文件上传

    上传时间: 2018-12-25

    上传用户:trees217

  • Win32API大全

    win32 API 详细解析 方便大家学习查阅!WINdow开发好帮手!初学者必备!

    标签: Win API 32

    上传时间: 2019-06-29

    上传用户:waterbird28

  • 短时过零率和短时能量

    % Computation of ST-ZCR and STE of a speech signal. % % Functions required: zerocross, sgn, winconv. % % Author: Nabin Sharma % Date: 2009/03/15 [x,Fs] = wavread('so.wav'); % word is: so x = x.'; N = length(x); % signal length n = 0:N-1; ts = n*(1/Fs); % time for signal % define the WINdow wintype = 'rectwin'; winlen = 201; winamp = [0.5,1]*(1/winlen);

    标签: 短时过零率和短时能量

    上传时间: 2019-09-23

    上传用户:minwenji

  • getScreen_v1.zip

    该文件可以实时截屏,通过WINdow win32来截取屏幕整个界面实时截屏,然后通过分割。将图片送到投影仪分割器中。它带有界面可以看到截屏的信息

    标签: 实时截屏

    上传时间: 2020-11-20

    上传用户:zx17621807340

  • MQTT调试客户端

    这是一个调试MQTT的WINdow端好用的工具,可以连接MQTT服务器,发送订阅消息,接收订阅消息。

    标签: mqtt 调试

    上传时间: 2021-12-17

    上传用户:

  • Linux内核裁剪与编译

    学习本章要达到的目标:口1.理解 Linux内核编译选项的含义口2.学会根据不同的硬件配置裁减定制内核;口3.理解内核编译过程中每一步的功能,并编译 Linux2.630内核。需要去重新编译 Linux内核口增加操作系统对新的硬件设备的支持口增加内核新的功能口对内核代码或内核配置进行优化时Prompt for development and/or incomplete code/drivers口显示处于开发调试中或尚未完善的代码或驱口选中:如果是测试人员或者开发者;口不选:其他情况Local version append to kerne release口追加本地版本号口使用命令“uname-a”进行查看。POSIX Message Queues口 POSIX消息队列的支持,这是 POSIX进程间通信的一部分BSD Process Accounting口将进程的统计信息写入文件口信息通常包括建立时间、所有者、命令名称、内存使用、控制终端等,这个选项一般是选择的。Enable loadable module support口使能可加载模块支持口如果使能此选项则可以通过"makemodules_insta"把内核模块安装在/lib/modules/中Kernel support for ELF binaries口内核对ELF文件格式的支持口ELF是开放平台下最常用的二进制文件格式支持动态连接,支持不同的硬件平台Kernel support for a out and ECOFF binaries口早期UNIX系统的可执行文件格式,目前已经被ELF格式取代Unix domain sockets口本机高效率的 Socket口仅能运行在本机上的高效率的 Socket,简称 Unix socket。口很多进程使用为这种机制在操作系统内部进行进程间通信,例如 X WINdow和 syslog等TCP/IP networking口TcP/IP网络协议的支持

    标签: linux

    上传时间: 2022-03-29

    上传用户:kingwide