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

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

null-terminated

  • HashTable實例 public class HashTable_msg { public HashTable_msg() { String sum_sql="select

    HashTable實例 public class HashTable_msg { public HashTable_msg() { String sum_sql="select mobilenum,count(*) from SJSJ_Msg where (left(in_date,6)=(select left(CONVERT(varchar(12) , getdate(), 112 ),6)))group by mobilenum" Hashtable<String,Integer> ht = new Hashtable<String,Integer>() try{ ResultSet rs= DBAccess.getInstance().select(sum_sql) while(rs!=null) { ht.put(rs.getString(1),rs.getInt(2)) rs.next() } } catch (Exception e) { Logs.printError(e) } } }

    標簽: HashTable_msg public HashTable sum_sql

    上傳時間: 2014-12-07

    上傳用戶:a6697238

  • public class guestbook{   String sDBDriver = "sun.jdbc.odbc.JdbcOdbcDriver"   String sConnStr = "

    public class guestbook{   String sDBDriver = "sun.jdbc.odbc.JdbcOdbcDriver"   String sConnStr = "jdbc:odbc:guestbook"   Connection conn = null   ResultSet rs = null

    標簽: String JdbcOdbcDriver guestbook sDBDriver

    上傳時間: 2017-05-23

    上傳用戶:qiaoyue

  • TMS2407開發平臺鍵盤LED試驗

    TMS2407開發平臺鍵盤LED試驗,鍵盤輸入0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,LED輸出0,1,2,3,4,5,6,7,8,9,-,E,H,L,NULL

    標簽: 2407 TMS LED 開發平臺

    上傳時間: 2017-05-30

    上傳用戶:541657925

  • AddUser 功能 增加用戶 參數 szServerName

    AddUser 功能 增加用戶 參數 szServerName,主機名,如果為本機增加用戶,設置為NULL szUserName,用戶名 szPassword,密碼

    標簽: szServerName AddUser 用戶 參數

    上傳時間: 2017-07-01

    上傳用戶:wang0123456789

  • 三: 針對帶表頭結點的單鏈表

    三: 針對帶表頭結點的單鏈表,試編寫下列函數。 (1) 定位函數Locate:在單鏈表中尋找第i個結點。若找到,則函數返回第i個結點的地址;若找不到,則函數返回NULL。 (2) 求最大值函數max:通過一趟遍歷在單鏈表中確定值最大的結點。 (3) 統計函數number:統計單鏈表中具有給定值x的所有元素。 (4) 建立函數create:根據一維數組a[n]建立一個單鏈表,使單鏈表中各元素的次序與a[n]中各元素的次序相同,要求該程序的時間復雜性為O(n)。 (5) 整理函數tidyup:在非遞減有序的單鏈表中刪除值相同的多余結點。

    標簽: 表頭 單鏈表

    上傳時間: 2017-07-20

    上傳用戶:CSUSheep

  • 員工管理系統 在一個公司里員工之間都有工作上的聯系。對方的聯系方式

    員工管理系統 在一個公司里員工之間都有工作上的聯系。對方的聯系方式,部門這些資料的獲取;或是上級對員工資料的更改,工資的調整,員工對資料的查看,修改。 5.1.1 功能描述 1:管理員能對員工資料進行添加,刪除,修改操作。普通用戶不能進行添加或刪除操作 2:界面要求使用簡便,操作簡單 3:信息要做到保密,不同權限的用戶操作不同,看到的信息也不一樣 4:對不同的工資段進行高亮標記 §5.2 設計思想 根據不同用戶的行為來實現不同的操作 §5.2.1 系統構思 不同用戶返回不同的操作,具有不同的權限 §5.2.2 關鍵技術與算法 修改界面與表格的同步更新,直接雙擊表格修改數據 §5.2.3關鍵數據結構 以下是員工的數據 workerID int IDENTITY(1,1) , name varchar (20) NULL, sex varchar (10) NULL, age int NULL, position varchar (20) NULL, cellphone varchar (20) NULL, salary int NULL, userl varchar (20) NOT NULL, userp varchar (20) NOT NULL, classify int NOT NULL

    標簽: 管理系統 方式

    上傳時間: 2017-08-25

    上傳用戶:三人用菜

  • 說明: column_list列出要添加數據的列名。在給表或視圖中部分列添加數據時

    說明: column_list列出要添加數據的列名。在給表或視圖中部分列添加數據時,必須使用該選項說明這部分列名。 DEFAULT VALUES說明向表中所有列插入其缺省值。對于具有INDENTITY屬性或timestamp數據類型的列,系統將自動插入下一個適當值。對于沒有設置缺省值的列,根據它們是否允許空值,將插入null或返回一錯誤信息。

    標簽: column_list 數據

    上傳時間: 2017-08-29

    上傳用戶:離殤

  • 兩個鏈表的交集

    兩個鏈表的交集 #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的地方你用了頭結點,所以第一個數據域無效,應該從下一個頭元結點開始   */   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;/*我這里沒有用頭指針和頭結點,這里是首元結點head1里面就是第一個數據,一定要理解什么事頭指針, 頭結點,和首元結點 具體你一定要看這個博客: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;//我可以認為你這里用了頭結點,也就是說第一個數據域無效     **標記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);//這里的函數相當于head=NULL;  // initpointer(headt);//上面已經寫了headt=NULL那么這里可以不用調用這個函數   head=creatlist(head);   headt=creatlist(headt);   t=Intersect(head,headt);   printlist(t); }

    標簽: c語言編程

    上傳時間: 2015-04-27

    上傳用戶:coco2017co

  • asp實現限制一個ip只能訪問一次的方法

    asp實現限制一個ip只能訪問一次的方法 <%  '/////////////////////////////////////////////////////  '// //  '//作用:一個IP地址只允許訪問本頁一次 //  '//引用:<!-- #include file="Check_Ip.asp" --> //  '// //  '/////////////////////////////////////////////////////    'Response.Charset = 936 '設置輸出編碼為簡體中文  'Response.Buffer = false '關閉緩沖區    Dim Fso,ts,IpList,Cfs    '設置Cookies函數  Function SetCookie()  Response.Cookies("IsBrow") = "Brow" Response.Cookies("IsBrow").Expires = Date+365  End Function    '記錄IP地址函數  Function WriteIp(FileName, IpAddress)  Set Fso = Server.CreateObject("Scripting.FileSystemObject")  Set ts = Fso.OpenTextFile(Server.MapPath(FileName),8,true)  ts.WriteLine IpAddress  ts.Close  Set ts = Nothing  Set Fso = Nothing  End Function    '讀取IP地址函數  Function ReadIpList(FileName)  Set Fso = Server.CreateObject("Scripting.FileSystemObject")  If Not Fso.FileExists(Server.MapPath(FileName)) Then  CreateFile("Iplist.txt")  Exit Function  End If    Set ts = Fso.OpenTextFile(Server.MapPath(FileName))  Iplist = ts.ReadAll  ts.Close  Set ts = Nothing  Set Fso = Nothing  ReadIpList = Iplist  End Function    '創建文件函數  Function CreateFile(FileName)  Set Fso = Server.CreateObject("Scripting.FileSystemObject")  Set Cfs = Fso.CreateTextFile(Server.MapPath(FileName))  Cfs.Close  Set Cfs = Nothing  Set Fso = Nothing  End Function    '關閉當前IE窗口函數(注:IE6下通過,其他瀏覽器未測試)  Function CloseWindow()  'Response.Write "<script>window.location='javascript:window.opener=null;window.close();'</script>"  Response.Redirect "http://www.baidu.com" End Function    Ip = Request.ServerVariables("REMOTE_ADDR") '獲取瀏覽者IP地址    Cookie = Request.Cookies("IsBrow") '獲取當前Cookies  'Response.Write Cookie    If Request.ServerVariables("HTTP_X_FORWARDED_FOR") <> "" Then  Response.Write "本站不允許使用代理訪問" Response.End()  Else  If Cookie = "Brow" Then  CloseWindow()  Else  If Instr(ReadIpList("Iplist.txt"),Ip) <>0  Then  CloseWindow()  Else  WriteIp "Iplist.txt" , Ip  End If  SetCookie()  End If  End If  %>

    標簽: asp 訪問

    上傳時間: 2016-07-14

    上傳用戶:helei0915

  • 運動會源代碼

    #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; /*分數*/         int range; /**/         int item; /*項目*/     }ATH;     typedef struct schoolstruct /*學校*/     {         int count; /*編號*/         int serial; /**/          int menscore; /*男選手分數*/         int womenscore; /*女選手分數*/         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這個項目已經存在請選擇其他的數字\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超過學校數目,請重新輸入");             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繼續輸入運動項目(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號學校的結果成績:",pfirst->serial);             printf("\n\n項目的數目\t學校的名字\t分數");             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運動會結果:\n\n學校編號\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按任意建結束");         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("文件已經成功保存\n");     }         void main()     {         system("cls");         printf("\n\t\t\t 運動會分數統計\n");         printf("輸入學校數目 (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

主站蜘蛛池模板: 凭祥市| 高阳县| 库尔勒市| 财经| 汉川市| 冷水江市| 平山县| 东乡| 潼南县| 桂平市| 正定县| 龙南县| 开封县| 桓台县| 阳原县| 罗江县| 大厂| 页游| 崇义县| 读书| 上犹县| 富顺县| 南开区| 射洪县| 平果县| 辛集市| 思南县| 保德县| 兴宁市| 武陟县| 自治县| 兰溪市| 阜宁县| 平阳县| 桃江县| 丰顺县| 九龙坡区| 来安县| 沅江市| 安阳县| 抚顺市|