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

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

Struct

Struct即結(jié)構(gòu)體,亦被直接稱為“結(jié)構(gòu)”。實際編程時,經(jīng)常需要用相關(guān)的不同類型的數(shù)據(jù)來描述一個數(shù)據(jù)對象。例如,描述學(xué)生的綜合信息時,需要使用學(xué)生的學(xué)號、姓名、性別、成績以及家庭住址等不同類型的數(shù)據(jù)。但是,用相關(guān)的不同類型的數(shù)據(jù)來描述一個數(shù)據(jù)對象會使編程極為不便。因此,C語言提供了一種稱為結(jié)構(gòu)體(Struct)的數(shù)據(jù)類型,以描述需要不同類型數(shù)據(jù)的數(shù)據(jù)對象[1]。
  • 一本很好的學(xué)校JAVASTRUTS的書

    一本很好的學(xué)校JAVASTRUTS的書,對于Struct框架特別精辟的講解!

    標簽: JAVASTRUTS

    上傳時間: 2014-11-06

    上傳用戶:lunshaomo

  • 本系統(tǒng)是基于JAVA語言的辦公系統(tǒng)

    本系統(tǒng)是基于JAVA語言的辦公系統(tǒng),基于Struct框架

    標簽: JAVA 語言

    上傳時間: 2017-08-19

    上傳用戶:z1191176801

  • 兩個鏈表的交集

    兩個鏈表的交集 #include<stdio.h> #include<stdlib.h> typedef Struct Node{   int data;   Struct  Node *next; }Node; void initpointer(Struct Node *p){   p=NULL; } int  printlist(Struct Node* head){   int flag=1;   head=head->next;   /*   因為標記1的地方你用了頭結(jié)點,所以第一個數(shù)據(jù)域無效,應(yīng)該從下一個頭元結(jié)點開始   */   if(head==NULL)     printf("NULL\n");   else   {     while(head!=NULL)     {       if(flag==1)       {       printf("%d",head->data);       flag=0;       }       else       {         printf(" %d",head->data);       }       head=head->next;     }     printf("\n");   }   return 0; } Struct Node *creatlist(Struct Node *head) {      int n;    Struct  Node *p1=(Struct Node *)malloc(sizeof(Struct Node));   p1->next=NULL; while(scanf("%d",&n),n!=-1) {   Struct Node *pnode=(Struct Node *)malloc(sizeof(Struct Node));   pnode->next=NULL;      pnode->data=n;   if(head==NULL)     head=pnode;   p1->next=pnode;   p1=pnode; } return head; } Struct Node *Intersect(Struct Node *head1, Struct Node *head2) { Struct Node *p1=head1,*p2=head2;/*我這里沒有用頭指針和頭結(jié)點,這里是首元結(jié)點head1里面就是第一個數(shù)據(jù),一定要理解什么事頭指針, 頭結(jié)點,和首元結(jié)點 具體你一定要看這個博客:http://blog.sina.com.cn/s/blog_71e7e6fb0101lipz.html*/ Struct Node *head,*p,*q; head = (Struct Node *)malloc(sizeof(Struct Node)); head->next = NULL; p = head; while( (p1!=NULL)&&(p2!=NULL) ) { if (p1->data == p2->data) { q = (Struct Node *)malloc(sizeof(Struct Node)); q->data = p1->data; q->next = NULL; p->next = q;//我可以認為你這里用了頭結(jié)點,也就是說第一個數(shù)據(jù)域無效     **標記1** p = q; p1 = p1->next; p2 = p2->next; } else if (p1->data < p2->data) { p1 = p1->next; } else { p2 = p2->next; } } return head; } int main() {   Struct Node *head=NULL,*headt=NULL,*t;   //initpointer(head);//這里的函數(shù)相當于head=NULL;  // initpointer(headt);//上面已經(jīng)寫了headt=NULL那么這里可以不用調(diào)用這個函數(shù)   head=creatlist(head);   headt=creatlist(headt);   t=Intersect(head,headt);   printlist(t); }

    標簽: c語言編程

    上傳時間: 2015-04-27

    上傳用戶:coco2017co

  • c語言深度剖析

    第一章關(guān)鍵字...................................................................................................................................9 1.1,最寬恒大量的關(guān)鍵字----auto..........................................................................................11 1.2,最快的關(guān)鍵字---- register............................................................................................... 11 1.2.1,皇帝身邊的小太監(jiān)----寄存器............................................................................. 11 1.2.2,使用register 修飾符的注意點.............................................................................11 1.3,最名不符實的關(guān)鍵字----static........................................................................................12 1.3.1,修飾變量...............................................................................................................12 1.3.2,修飾函數(shù)...............................................................................................................13 1.4,基本數(shù)據(jù)類型----short、int、long、char、float、double........................................... 13 1.4.1,數(shù)據(jù)類型與“模子”............................................................................................... 14 1.4.2,變量的命名規(guī)則...................................................................................................14 1.5,最冤枉的關(guān)鍵字----sizeof...............................................................................................18 1.5.1,常年被人誤認為函數(shù)...........................................................................................18 1.5.2,sizeof(int)*p 表示什么意思?........................................................................18 1.4,signed、unsigned 關(guān)鍵字................................................................................................19 1.6,if、else 組合.................................................................................................................... 20 1.6.1,bool 變量與“零值”進行比較...............................................................................20 1.6.2, float 變量與“零值”進行比較.................................................................................21 1.6.3,指針變量與“零值”進行比較...............................................................................21 1.6.4,else 到底與哪個if 配對呢?...............................................................................22 1.6.5,if 語句后面的分號............................................................................................... 23 1.6.6,使用if 語句的其他注意事項.............................................................................. 24 1.7,switch、case 組合........................................................................................................... 24 1.7.1,不要拿青龍偃月刀去削蘋果.............................................................................. 24 1.7.2,case 關(guān)鍵字后面的值有什么要求嗎?.............................................................. 25 1.7.3,case 語句的排列順序...........................................................................................25 1.7.4,使用case 語句的其他注意事項..........................................................................27 1.8,do、while、for 關(guān)鍵字................................................................................................... 28 1.8.1,break 與continue 的區(qū)別.....................................................................................28 1.8.2,循環(huán)語句的注意點...............................................................................................29 1.9,goto 關(guān)鍵字......................................................................................................................30 1.10,void 關(guān)鍵字....................................................................................................................31 1.10.1,void a?............................................................................................................31 1.10,return 關(guān)鍵字................................................................................................................. 34 1.11,const 關(guān)鍵字也許該被替換為readolny....................................................................... 34 1.11.2,節(jié)省空間,避免不必要的內(nèi)存分配,同時提高效率.................................... 35 1.12,最易變的關(guān)鍵字----volatile.......................................................................................... 36 1.13,最會帶帽子的關(guān)鍵字----extern.................................................................................... 37 1.14,Struct 關(guān)鍵字..................................................................................................................38

    標簽: c語言深度剖析

    上傳時間: 2015-05-01

    上傳用戶:cascas

  • 舵機電機PID控制算法

    #include <hidef.h>      /* common defines and macros */ #include "derivative.h"      /* derivative-specific definitions */ #include <mc9s12xs128.h> //定義PID參數(shù) #define VV_KPVALUE 3       //比例 #define VV_KIVALUE 40     //積分 #define VV_KDVALUE 3     //微分 #define VV_MAX 10000       //返回的最大值,是pwm的周期值 #define VV_MIN 0 #define VV_DEADLINE 0X08   //速度PID,設(shè)置死區(qū)范圍 typedef Struct PID       //定義數(shù)法核心數(shù)據(jù) { signed int vi_Ref;      //速度PID,速度設(shè)定值 signed int vi_FeedBack;  //速度PID,速度反饋值

    標簽: PID 舵機 電機 控制算法

    上傳時間: 2016-04-27

    上傳用戶:547453159

  • Struct

    幫助學(xué)習作業(yè)系統(tǒng)的 一些資料   我需要獲得3的 積分  請有興趣者可看

    標簽: Struct

    上傳時間: 2016-06-14

    上傳用戶:fp4397251

  • 利用棧的基本操作實現(xiàn)將任意一個十進制整數(shù)N轉(zhuǎn)化為R進制整數(shù)。

    #include <stdlib.h> #include<stdio.h> #include <malloc.h> #define stack_init_size 100 #define stackincrement 10 typedef Struct sqstack { int *base; int *top; int stacksize; } sqstack; int StackInit(sqstack *s) { s->base=(int *)malloc(stack_init_size *sizeof(int)); if(!s->base) return 0; s->top=s->base; s->stacksize=stack_init_size; return 1; } int Push(sqstack *s,int e) { if(s->top-s->base>=s->stacksize) { s->base=(int *)realloc(s->base,(s->stacksize+stackincrement)*sizeof(int)); if(!s->base) return 0; s->top=s->base+s->stacksize; s->stacksize+=stackincrement; } *(s->top++)=e; return e; } int Pop(sqstack *s,int e) { if(s->top==s->base) return 0; e=*--s->top; return e; } int stackempty(sqstack *s) { if(s->top==s->base) { return 1; } else { return 0; } } int conversion(sqstack *s) { int n,e=0,flag=0; printf("輸入要轉(zhuǎn)化的十進制數(shù):\n"); scanf("%d",&n); printf("要轉(zhuǎn)化為多少進制:\n"); scanf("%d",&flag); printf("將十進制數(shù)%d 轉(zhuǎn)化為%d 進制是:\n",n,flag); while(n) { Push(s,n%flag); n=n/flag; } while(!stackempty(s)) { e=Pop(s,e); switch(e) { case 10: printf("A"); break; case 11: printf("B"); break; case 12: printf("C"); break; case 13: printf("D"); break; case 14: printf("E"); break; case 15: printf("F"); break; default: printf("%d",e); } } printf("\n"); return 0; } int main() { sqstack s; StackInit(&s); conversion(&s); return 0;                        }

    標簽: 整數(shù) 基本操作 十進制 轉(zhuǎn)化 進制

    上傳時間: 2016-12-08

    上傳用戶:愛你198

  • 運動會源代碼

    #include <malloc.h>       #include <stdio.h>       #include <stdlib.h>       #include <string.h>       #define NULL 0      #define MaxSize 30          typedef Struct athleteStruct /*運動員*/     {         char name[20];          int score; /*分數(shù)*/         int range; /**/         int item; /*項目*/     }ATH;     typedef Struct schoolStruct /*學(xué)校*/     {         int count; /*編號*/         int serial; /**/          int menscore; /*男選手分數(shù)*/         int womenscore; /*女選手分數(shù)*/         int totalscore; /*總分*/         ATH athlete[MaxSize]; /**/         Struct schoolStruct *next;      }SCH;         int nsc,msp,wsp;      int ntsp;      int i,j;      int overgame;      int serial,range;      int n;      SCH *head,*pfirst,*psecond;      int *phead=NULL,*pafirst=NULL,*pasecond=NULL;     void create();         void input ()     {         char answer;          head = (SCH *)malloc(sizeof(SCH)); /**/         head->next = NULL;         pfirst = head;          answer = 'y';         while ( answer == 'y' )         {         Is_Game_DoMain:         printf("\nGET Top 5 when odd\nGET Top 3 when even");         printf("\n輸入運動項目序號 (x<=%d):",ntsp);         scanf("%d",pafirst);         overgame = *pafirst;         if ( pafirst != phead )         {             for ( pasecond = phead ; pasecond < pafirst ; pasecond ++ )             {                 if ( overgame == *pasecond )                 {                     printf("\n這個項目已經(jīng)存在請選擇其他的數(shù)字\n");                     goto Is_Game_DoMain;                 }             }         }         pafirst = pafirst + 1;         if ( overgame > ntsp )         {             printf("\n項目不存在");             printf("\n請重新輸入");             goto Is_Game_DoMain;         }         switch ( overgame%2 )         {         case 0: n = 3;break;         case 1: n = 5;break;         }         for ( i = 1 ; i <= n ; i++ )         {         Is_Serial_DoMain:         printf("\n輸入序號 of the NO.%d (0<x<=%d): ",i,nsc);                 scanf("%d",&serial);         if ( serial > nsc )          {             printf("\n超過學(xué)校數(shù)目,請重新輸入");             goto Is_Serial_DoMain;         }         if ( head->next == NULL )          {             create();         }         psecond = head->next ;          while ( psecond != NULL )          {             if ( psecond->serial == serial )             {                 pfirst = psecond;                 pfirst->count = pfirst->count + 1;                 goto Store_Data;             }             else             {                 psecond = psecond->next;             }         }         create();         Store_Data:                 pfirst->athlete[pfirst->count].item = overgame;         pfirst->athlete[pfirst->count].range = i;         pfirst->serial = serial;         printf("Input name:) : ");                 scanf("%s",pfirst->athlete[pfirst->count].name);         }         printf("\n繼續(xù)輸入運動項目(y&n)?");         answer = getchar();         printf("\n");         }     }         void calculate() /**/     {         pfirst = head->next;         while ( pfirst->next != NULL )         {             for (i=1;i<=pfirst->count;i++)             {                 if ( pfirst->athlete[i].item % 2 == 0 )                  {                     switch (pfirst->athlete[i].range)                     {                     case 1:pfirst->athlete[i].score = 5;break;                     case 2:pfirst->athlete[i].score = 3;break;                     case 3:pfirst->athlete[i].score = 2;break;                     }                 }                 else                  {                     switch (pfirst->athlete[i].range)                     {                     case 1:pfirst->athlete[i].score = 7;break;                     case 2:pfirst->athlete[i].score = 5;break;                     case 3:pfirst->athlete[i].score = 3;break;                     case 4:pfirst->athlete[i].score = 2;break;                     case 5:pfirst->athlete[i].score = 1;break;                     }                 }                 if ( pfirst->athlete[i].item <=msp )                  {                     pfirst->menscore = pfirst->menscore + pfirst->athlete[i].score;                 }                 else                  {                     pfirst->womenscore = pfirst->womenscore + pfirst->athlete[i].score;                 }             }             pfirst->totalscore = pfirst->menscore + pfirst->womenscore;             pfirst = pfirst->next;         }     }         void output()     {         pfirst = head->next;         psecond = head->next;         while ( pfirst->next != NULL )          {             // clrscr();              printf("\n第%d號學(xué)校的結(jié)果成績:",pfirst->serial);             printf("\n\n項目的數(shù)目\t學(xué)校的名字\t分數(shù)");             for (i=1;i<=ntsp;i++)              {                 for (j=1;j<=pfirst->count;j++)                  {                     if ( pfirst->athlete[j].item == i )                     {                                                                         printf("\n %d\t\t\t\t\t\t%s\n %d",i,pfirst->athlete[j].name,pfirst->athlete[j].score);break;                                             }                 }             }             printf("\n\n\n\t\t\t\t\t\t按任意建 進入下一頁");             getchar();             pfirst = pfirst->next;         }     //  clrscr();          printf("\n運動會結(jié)果:\n\n學(xué)校編號\t男運動員成績\t女運動員成績\t總分");         pfirst = head->next;         while ( pfirst->next != NULL )         {             printf("\n %d\t\t %d\t\t %d\t\t %d",pfirst->serial,pfirst->menscore,pfirst->womenscore,pfirst->totalscore);             pfirst = pfirst->next;         }         printf("\n\n\n\t\t\t\t\t\t\t按任意建結(jié)束");         getchar();     }         void create()     {                 pfirst = (Struct schoolStruct *)malloc(sizeof(Struct schoolStruct));         pfirst->next = head->next ;         head->next = pfirst ;                 pfirst->count = 1;         pfirst->menscore = 0;         pfirst->womenscore = 0;         pfirst->totalscore = 0;     }     void Save()     {FILE *fp;     if((fp = fopen("school.dat","wb"))==NULL)     {printf("can't open school.dat\n");     fclose(fp);     return;     }     fwrite(pfirst,sizeof(SCH),10,fp);     fclose(fp);     printf("文件已經(jīng)成功保存\n");     }         void main()     {         system("cls");         printf("\n\t\t\t 運動會分數(shù)統(tǒng)計\n");         printf("輸入學(xué)校數(shù)目 (x>= 5):");         scanf("%d",&nsc);          printf("輸入男選手的項目(x<=20):");         scanf("%d",&msp);          printf("輸入女選手項目(<=20):");         scanf("%d",&wsp);          ntsp = msp + wsp;                  phead = (int *)calloc(ntsp,sizeof(int));         pafirst = phead;         pasecond = phead;         input();         calculate();          output();         Save();     }             

    標簽: 源代碼

    上傳時間: 2016-12-28

    上傳用戶:150501

  • c#簡單計算器

    // 學(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; }

    標簽: 計算器 學(xué)生

    上傳時間: 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; }

    標簽: 學(xué)生 計算器

    上傳時間: 2016-12-29

    上傳用戶:767483511

亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产一中文字不卡| 夜夜爽99久久国产综合精品女不卡| 亚洲一区在线播放| 欧美日韩一区在线视频| 久久人体大胆视频| 一本大道久久a久久精品综合| 黄色亚洲免费| 国产精品免费视频观看| 欧美日韩精品欧美日韩精品一| 久久av资源网| 午夜精品一区二区三区在线 | 国产精品久久久久久户外露出| 欧美成人一区二区三区| 久久国产婷婷国产香蕉| 午夜日韩激情| 亚洲欧美一区在线| 一区二区三区日韩精品视频| 日韩视频在线观看国产| 亚洲免费精品| 在线视频精品一| 美女主播一区| 欧美人与禽猛交乱配| 欧美精品在线免费播放| 欧美日韩国产专区| 国产精品第13页| 国产视频在线观看一区二区| 国产亚洲欧美日韩在线一区| 黄色影院成人| 最新国产成人av网站网址麻豆| 在线观看国产日韩| 亚洲美女在线视频| 亚洲永久精品国产| 欧美专区日韩视频| 免费观看亚洲视频大全| 欧美日韩高清在线播放| 在线观看视频亚洲| 亚洲视频免费观看| 小辣椒精品导航| 欧美另类videos死尸| 亚洲国产天堂网精品网站| 一区二区三区产品免费精品久久75| 久久人人97超碰精品888| 欧美激情精品久久久久久黑人| 欧美日韩一区成人| 一本久久综合| 久久久夜精品| 亚洲国产成人91精品| 亚洲欧美国产va在线影院| 久久漫画官网| 国产精品草草| 亚洲欧美国产日韩中文字幕| 欧美暴力喷水在线| 国产日韩亚洲欧美综合| 久久丁香综合五月国产三级网站| 国产一区二区三区成人欧美日韩在线观看| 亚洲国产视频直播| 欧美精品一区二区三区蜜桃| 在线综合亚洲| 欧美日韩成人在线观看| 狠狠色狠狠色综合日日91app| 久久精品一本| 国产目拍亚洲精品99久久精品| 亚洲精品一区二区三区四区高清| 亚洲一区二区日本| 欧美精品激情blacked18| 精久久久久久| 香蕉免费一区二区三区在线观看| 国产一区二区三区丝袜| 西瓜成人精品人成网站| 一区二区在线视频播放| 久久av在线| 亚洲人成在线免费观看| 久久在线免费观看视频| 国产自产高清不卡| 欧美日韩aaaaa| 久久精品国产99国产精品澳门| 国产日本欧美一区二区三区在线| 亚洲综合久久久久| **网站欧美大片在线观看| 国产精品美女久久久久aⅴ国产馆| 亚洲精品孕妇| 国产综合网站| 久久亚洲捆绑美女| 亚洲夜间福利| 国产视频丨精品|在线观看| 免费看成人av| 亚洲美女区一区| 欧美日韩中文字幕精品| 久久久噜噜噜久久| 午夜精品美女自拍福到在线| 国产精品三级视频| 性欧美videos另类喷潮| 国语自产精品视频在线看8查询8| 欧美日韩不卡合集视频| 久久综合九九| 快射av在线播放一区| 最新国产成人在线观看| 欧美日韩免费视频| 亚洲一区二区三区免费在线观看| 国产免费亚洲高清| 欧美午夜久久久| 欧美影院成年免费版| 亚洲国产精品欧美一二99| 欧美日韩极品在线观看一区| 美女视频网站黄色亚洲| 另类酷文…触手系列精品集v1小说| 亚洲精品日韩久久| 欧美日韩国产综合一区二区| 欧美福利一区二区三区| 欧美啪啪成人vr| 欧美在线一二三四区| 亚洲国产精品久久久久秋霞蜜臀| 黄色成人免费网站| 伊人精品成人久久综合软件| 欧美日韩国产综合新一区| 欧美激情久久久久| 久久狠狠婷婷| 亚洲精选成人| 99伊人成综合| 亚洲欧洲午夜| 国产精品午夜在线| 你懂的视频一区二区| 欧美国产先锋| 久久精品首页| 老司机精品视频网站| 亚洲一区国产精品| 欧美一区不卡| 麻豆成人91精品二区三区| 欧美经典一区二区| 欧美福利视频在线观看| 亚洲欧美色一区| 久久久蜜臀国产一区二区| 欧美成人免费全部| 老司机午夜精品| 欧美日韩国产色站一区二区三区| 国产精品久久一区二区三区| 欧美日韩国产在线| 国产日产精品一区二区三区四区的观看方式 | 在线播放视频一区| 日韩五码在线| 欧美在线观看视频| 欧美乱大交xxxxx| 国内精品伊人久久久久av影院 | a91a精品视频在线观看| 亚洲欧美日韩中文播放| 一区二区三区四区五区在线| 亚洲综合成人在线| 欧美高清在线观看| 国产日韩成人精品| 亚洲美女精品久久| 久久久久久久999| 国产精品免费看久久久香蕉| 欧美色欧美亚洲另类七区| 国语自产精品视频在线看| 亚洲一区区二区| 欧美人体xx| 最新高清无码专区| 鲁大师成人一区二区三区| 国产欧美日韩激情| 一本久久综合| 欧美精品在线一区| 亚洲全黄一级网站| 亚洲一级免费视频| 欧美 日韩 国产一区二区在线视频| 另类天堂视频在线观看| 国产婷婷97碰碰久久人人蜜臀| 国产综合色精品一区二区三区| 亚洲影视九九影院在线观看| 欧美四级在线| 亚洲小说春色综合另类电影| 欧美中文在线视频| 国产美女精品在线| 亚洲自拍啪啪| 国产精品扒开腿做爽爽爽软件| 国产尤物精品| 在线不卡a资源高清| 欧美亚洲综合网| 欧美成人午夜77777| 亚洲国产1区| 亚洲综合色网站| 欧美午夜精品久久久久久孕妇| 国产欧美一区二区精品性 | 久久精品女人的天堂av| 欧美成人国产va精品日本一级| 红桃视频国产一区| 久久综合给合久久狠狠色| 亚洲国产精品传媒在线观看 | 欧美日韩理论| 一区二区不卡在线视频 午夜欧美不卡在 | 国产精品久线观看视频| 亚洲视频中文| 欧美三级免费| 一区免费观看| 欧美高清在线一区二区| 99国产精品自拍| 久久久久久精| 亚洲国产精品成人综合| 欧美一区二区三区的| 国产一区二区三区久久悠悠色av | 国产综合av|