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

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

VOID

  • 編程題(15_01.c) 結構 struct student { long num char name[20] int score struct student *

    編程題(15_01.c) 結構 struct student { long num char name[20] int score struct student *next } 鏈表練習: (1).編寫函數struct student * creat(int n),創建一個按學號升序排列的新鏈表,每個鏈表中的結點中 的學號、成績由鍵盤輸入,一共n個節點。 (2).編寫函數VOID print(struct student *head),輸出鏈表,格式每行一個結點,包括學號,姓名,分數。 (3).編寫函數struct student * merge(struct student *a,struct student *b), 將已知的a,b兩個鏈表 按學號升序合并,若學號相同則保留成績高的結點。 (4).編寫函數struct student * del(struct student *a,struct student *b),從a鏈表中刪除b鏈表中有 相同學號的那些結點。 (5).編寫main函數,調用函數creat建立2個鏈表a,b,用print輸出倆個鏈表;調用函數merge升序合并2個 鏈表,并輸出結果;調用函數del實現a-b,并輸出結果。 a: 20304,xxxx,75, 20311,yyyy,89 20303,zzzz,62 20307,aaaa,87 20320,bbbb,79 b: 20302,dddd,65 20301,cccc,99 20311,yyyy,87 20323,kkkk,88 20307,aaaa,92 20322,pppp,83

    標簽: student struct score long

    上傳時間: 2016-04-13

    上傳用戶:zxc23456789

  • /// /// /// ////1602驅動函數////////////////////////////////////// ////////////////////////////////////

    /// /// /// ////1602驅動函數////////////////////////////////////// ////////////////////////////////////////////////////////////// // 函數原型:print(ucahr *string) // 輸出字符串,超過16個字符時自動移入第二行 // printone(uchar x,uchar y,ucahr Data) // 在指定的位置(x,y)輸出一個字符 // lcm_init(VOID) // 要調用本函數時,必須在main()初始化階段調用 lcm_init() 初始化 1602

    標簽: 1602 驅動 函數

    上傳時間: 2014-12-07

    上傳用戶:CHINA526

  • linux 下串口編程 #include <stdio.h> /*標準輸入輸出定義*/ #include <stdlib.h> /*標準函數庫定義*/ #include

    linux 下串口編程 #include <stdio.h> /*標準輸入輸出定義*/ #include <stdlib.h> /*標準函數庫定義*/ #include <unistd.h> /*Unix標準函數定義*/ #include <sys/types.h> /**/ #include <sys/stat.h> /**/ #include <fcntl.h> /*文件控制定義*/ #include <termios.h> /*PPSIX終端控制定義*/ #include <errno.h> /*錯誤號定義*/ /***@brief 設置串口通信速率 *@param fd 類型 int 打開串口的文件句柄 *@param speed 類型 int 串口速度 *@return VOID*/

    標簽: include stdlib linux stdio

    上傳時間: 2014-01-18

    上傳用戶:xjz632

  • C++名家精華.chm 我們用早期的C++語言編程。工作的第二天中午

    C++名家精華.chm 我們用早期的C++語言編程。工作的第二天中午,厭煩了讀職工手冊,于是我寫了一個工具類,里面包含一個原始指針作為成員變量: #include "xStruct.h" // definition of struct X class xWrapper { X* xItem public: xWrapper() : xItem(new X) { } ~xWrapper() { delete xItem } VOID dump() { /* dumps xItem to cout */ } } 當然了,使用這個類的程序由于內存問題總是時不時的崩潰,因為我違反三個重要設計原則之一:任何時候,只要你提供了析構函數、拷貝構造函數或賦值運算符中的一個,你通常需要三個都提供。([1]) “所以,”我自言自語道,“我必須自己處理拷貝和賦值問題。簡單地...auto_ptr有拷貝構造函數和賦值運算符,我可以拿過來用一下。”(你知道早期C++程序庫中的auto_ptr,是嗎?)

    標簽: chm 語言編程

    上傳時間: 2013-12-28

    上傳用戶:Amygdala

  • 本程序執行后

    本程序執行后,創建一個能夠加載文字的面板,文字的內容是本地主機的IP地址的動態顯示。跑馬燈文字的大小和跑馬燈文字顯示的速度都可以在GatutTextCrawler.html文件里通過參數進行設置。 編程思路:首先,本練習因為要制作偵測IP的跑馬燈的實例,所以首先要生成程序界面:在函數public VOID init()中,首先通過語句s = getParameter("fontSize")和fontSize = s != null ? Integer.valueOf(s).intValue() : 12設置文字字體大小,然后進行字體設置和顯示速度設置,最后通過語句msgText = getParameter("preText")得到GatutTextCrawler.html文件中的字符串值。然后,得到主機IP地址,首先通過函數adds = InetAddress.getLocalHost().toString()得到主機的IP地址,最后在更新屏幕函數public VOID update(Graphics g)中通過實現跑馬燈效果。

    標簽: 程序

    上傳時間: 2016-06-06

    上傳用戶:miaochun888

  • 很完整的51串口程序 包括如下: 串口中斷服務程序

    很完整的51串口程序 包括如下: 串口中斷服務程序,僅需做簡單調用即可完成串口輸入輸出的處理 出入均設有緩沖區,大小可任意設置。 可供使用的函數名: char getbyte(VOID) 從接收緩沖區取一個byte,如不想等待則在調用前檢測inbufsign是否為1。 getline(char idata *line, unsigned char n) 獲取一行數據回車結束,必須定義最大輸入字符數 putbyte(char c) 放入一個字節到發送緩沖區 putbytes(unsigned char *outplace,j) 放一串數據到發送緩沖區,自定義長度 putstring(unsigned char code *puts) 發送一個定義在程序存儲區的字符串到串口 puthex(unsigned char c) 發送一個字節的hex碼,分成兩個字節發。 putchar(uchar c,uchar j) 輸出一個無符號字符數的十進制表示,必須標示小數點的位置,自動刪除前面無用的零 putint(uint ui,uchar j) 輸出一個無符號整型數的十進制表示,必須標示小數點的位置,自動刪除前面無用的零 delay(unsigned char d) 延時n x 100ns putinbuf(uchar c) 人工輸入一個字符到輸入緩沖區 CR 發送一個回車換行

    標簽: 串口程序 串口中斷 服務 程序

    上傳時間: 2016-06-13

    上傳用戶:epson850

  • 復數運算#include<iostream.h> class Complex { public: Complex( double r =0, double i =0 ) C

    復數運算#include<iostream.h> class Complex { public: Complex( double r =0, double i =0 ) Complex(int a) { Real = a Image = 0 } VOID print() const friend Complex operator+ ( const Complex & c1, const Complex & c2 ) friend Complex operator- ( const Complex & c1, const Complex & c2 ) friend Complex operator- ( const Complex & c ) private: double Real, Image }

    標簽: Complex double iostream include

    上傳時間: 2016-06-30

    上傳用戶:wang5829

  • 我所采用的內存管理思想是鏈表管理思想

    我所采用的內存管理思想是鏈表管理思想,內存分配方案是最佳適應方案(best fit)。其主要的數據結構為 struct node { char* p int memosize int flag struct node* next } 這是一個鏈表的結點的數據結構,用它來管理內存的分配與回收。P 表示所指的分配的內存的首地址,memosize 表示分配的內存塊的大小,flag 為一個標志量,表示內存塊是否被占用。用 1 和 0 來表示被占用和不被占用。next 表示下一個結點的首地址。 內存管理包括一個分配內存的mm_request(unsigned int)函數,一個初始化所要管理的內存的mm_init()函數,一個空閑列表排序函數sort(),一個釋放內存的mm_release(VOID* )函數和一個判斷內存是否被占用的IsFree(int)函數。

    標簽: 內存管理

    上傳時間: 2016-07-06

    上傳用戶:qunquan

  • package query public class LinkQuery { private Node front private Node vear public Link

    package query public class LinkQuery { private Node front private Node vear public LinkQuery() { this.front=null this.vear=null } public VOID add(int i) { Node newNode=new Node(i) if(vear==null && front==null) { vear=newNode front=newNode return } vear.next=newNode vear=newNode } public int remove() { if(this.front==null) { System.out.println("隊是空的,無法取") return -1 } int temp=this.front.data this.front=this.front.next if(this.front==null) { this.vear=null }

    標簽: private public Node LinkQuery

    上傳時間: 2016-07-08

    上傳用戶:天誠24

  • 1. 學生成績刪除功能:該功能通過調用int shanchu(struct Student *p,int x,int num,float a[])來實現。該功能采用的是詢問管理人員的意見之后再功能實現

    1. 學生成績刪除功能:該功能通過調用int shanchu(struct Student *p,int x,int num,float a[])來實現。該功能采用的是詢問管理人員的意見之后再功能實現,由學號來引出學生信息,當學號不存在時,系統將給出信息“該學生不存在!”。然后詢問管理員是否繼續刪除。 2. 學生成績添加功能:該功能通過調用VOID luru(struct Student *p)來實現。實現了手工輸入功能,當然可以通過連接數據庫來在數據庫中進行修改。 3. 學生成績更新功能:該功能通過調用VOID xiugai(struct Student *p,int x,int num,float a[])來實現。同樣可以在連接數據庫之后字其中進行修改。 4. 學生成績排列功能:該功能通過調用VOID paixu(struct Student *p,int x,float 5. a[])來實現。本系統采用按平均成績由高到低來排序。 6. 學生信息查詢功能:該功能通過調用VOID chaxun(struct Student *p,int x,int num,float a[])來實現。本系統采用根據學號來查詢學生信息,當連接數據庫之后就可以用查詢分析器來進行,即使用SQL語句來實現。

    標簽: int Student shanchu struct

    上傳時間: 2013-12-02

    上傳用戶:hebmuljb

主站蜘蛛池模板: 盱眙县| 华池县| 大城县| 墨江| 宁武县| 喜德县| 尖扎县| 通海县| 虎林市| 枣庄市| 纳雍县| 宕昌县| 化德县| 桂平市| 新营市| 钟山县| 巴南区| 江安县| 稷山县| 区。| 德阳市| 仁布县| 潼南县| 襄汾县| 正蓝旗| 元氏县| 平果县| 繁峙县| 息烽县| 准格尔旗| 白河县| 诏安县| 禹城市| 瑞丽市| 白朗县| 乌兰察布市| 永济市| 上饶县| 连州市| 永胜县| 泗水县|