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

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

Count

  • Most satellite dish actuators send a series of pulses to indicate their position. By Counting pulse

    Most satellite dish actuators send a series of pulses to indicate their position. By Counting pulses the positioner knows where the dish is pointing. It is possible to use a serial port and Linux with RTAI patches in order to Count these pulses, thus minimising the external hardware required for a positioner. The zip contains instructions, circuit diagrams and example code.

    標(biāo)簽: satellite actuators Counting indicate

    上傳時(shí)間: 2014-12-03

    上傳用戶:netwolf

  • 已知數(shù)據(jù)文件IN.dat中存有200個(gè)四位數(shù)

    已知數(shù)據(jù)文件IN.dat中存有200個(gè)四位數(shù),并已調(diào)用讀函數(shù)rData()把這些數(shù)存入數(shù)組a中,請(qǐng)編寫函數(shù)spellNum(),其功能是:把個(gè)位數(shù)字和千位數(shù)字重新組成一個(gè)新的二位數(shù)(新二位數(shù)的十位數(shù)字是原四位數(shù)的個(gè)位數(shù)字,新二位數(shù)的個(gè)位數(shù)字是原四位數(shù)的千位數(shù)字),以及把百位數(shù)字和十位數(shù)字組成另一個(gè)新的二位數(shù)(新二位數(shù)的十位數(shù)字是原四位數(shù)的百位數(shù)字,新二位數(shù)的個(gè)位數(shù)字是原四位數(shù)的十位數(shù)字),如果新組成的兩個(gè)二位數(shù)一個(gè)是奇數(shù),另一個(gè)為偶數(shù),并且兩個(gè)二位數(shù)中至少有一個(gè)數(shù)能被17整除,同時(shí)兩個(gè)新數(shù)的十位數(shù)字均不為0,則將滿足此條件的四位數(shù)按從大到小的順序存入數(shù)組b中,并要計(jì)算滿足上述條件的四位數(shù)的個(gè)數(shù)Count。最后main()函數(shù)調(diào)用寫函數(shù)wData(),把結(jié)果Count以及數(shù)組b中符合條件的四位數(shù)輸出到OUT.dat文件中。

    標(biāo)簽: 200 dat IN 數(shù)據(jù)文件

    上傳時(shí)間: 2014-10-29

    上傳用戶:李彥東

  • Delphi 泛型容器 TDictionary 的用法 Demo

    Collection of key-value pairs.  TDictionary represents a generic collection of key-value pairs.  This class provides a mapping from a collection of keys to a collection of values. When you create a TDictionary object, you can specify various combinations of initial capacity, equality operation, and initial content.  You can add a key that is associated with a corresponding value with the Add or AddOrSetValue methods. You can remove entries with Remove or Clear, which removes all key-value pairs. Adding or removing a key-value pair and looking up a key are efficient, close to O(1), because keys are hashed. A key must not be nil (though a value may be nil) and there must be an equality comparison operation for keys.  You can test for the presence or keys and values with the TryGetValue, ContainsKey and ContainsValue methods.  The Items property lists all Count dictionary entries. You can also set and get values by indexing the Items property. Setting the value this way overwrites any existing value.  The class TObjectDictionary inherits from TDictionary and provides an automatic mechanism for freeing objects removed from dictionary entries. 

    標(biāo)簽: Delphi 泛型

    上傳時(shí)間: 2015-07-01

    上傳用戶:mirage

  • AVR單片機(jī)轉(zhuǎn)速表

    /****************************************************************                  外部晶振8M                  PA0~3:四位數(shù)碼管的位選                  PB0~7:數(shù)碼管的8位段選                  外部中斷0用于計(jì)數(shù)                  定時(shí)器0溢出中斷的定時(shí)為1ms                  說明 :檢測到水流較小時(shí),繼電器延時(shí)1秒關(guān)閉  ******************************************************************/                #include<iom16v.h>   #include<macros.h>   #define uchar unsigned char   #define uint unsigned int       char led_7[10]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F};  //數(shù)碼管段選        char position[4]={0xfe,0xfd,0xfb,0xf7};//數(shù)碼管位選        uint sumnum=0;  //用于記錄1000ms內(nèi)進(jìn)入中斷的次數(shù)        uint time=0;   //記錄進(jìn)入比較定時(shí)器0的次數(shù)        uint num=0;     //記錄1ms內(nèi)進(jìn)入中斷的次數(shù)        uint Count=0;   //進(jìn)入外部中斷0的次數(shù)        uchar flag;        uint sumnum1;   //記錄100ms內(nèi)的數(shù)目       /***************************函數(shù)聲明***************************/        void delay();        void display(uint m );        void init();        void init_0();        void init_2();    void _delay_us(uint l)   {        unsigned int i;        for(i=0;i<l;i++)        {        asm("nop");        }   }           /**************************主函數(shù)***********************************/       void main()   {        init();        init_0();        init_2();        while(sumnum<5)        {           PORTD=0XBF;           segdisplay(sumnum1);        }       while(1)       {           segdisplay(sumnum1);       }           }        /*************************掃描數(shù)碼管時(shí)的延時(shí)函數(shù)*********************/        void delay()    {         uchar i,j;         for(i=6;i>0;i--)         for(j=225;j>0;j--);    }        /************************數(shù)碼管顯示函數(shù)*****************************/       void segdisplay( int temp)        {         int seg[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};         int temp1,temp2,temp3,temp4;         temp1=temp/1000;         temp2=(temp/100)%10;         temp3=(temp/10)%10;         temp4=temp%10;         DDRB=0xff;         DDRA|=0x0f;           PORTA=~BIT(3);           PORTB=seg[temp1];           _delay_us(100);           PORTA=~BIT(2);           PORTB=seg[temp2];           _delay_us(100);           PORTA=~BIT(1);           PORTB=seg[temp3];           _delay_us(100);           PORTA=~BIT(0);           PORTB=seg[temp4];           _delay_us(100);       }        /***********************管腳初始化函數(shù)*********************/        void init()    {                      DDRD|=0X40;   //PD4 設(shè)置為輸出             PORTD=0XBF;                DDRA=0XFF;             DDRB=0XFF;             PORTA=0XFF;             PORTB=0XFF;    }        /***********************外部中斷0初始化*********************/        void init_0()    {         MCUCR=0X02;   //INT0為下降沿觸發(fā)         GICR=0X40;   //使能INT0中斷         SREG=0X80;  //使能總中斷    }        /**********************定時(shí)器2初始化***********************/        void init_2()    {         TCCR0=0x03;   // 內(nèi)部時(shí)鐘,64 分頻(8M/64=125KHz)          TCNT0=0x83;   //裝初值           TIMSK=0x01;   // 允許 T/C0溢出中斷中斷      }          /***********************外部中斷0子函數(shù)********************/        #pragma interrupt_handler int0_isr:2        void int0_isr(void)        {             Count++;        }        /*********************定時(shí)計(jì)數(shù)器0溢出中斷子函數(shù)*****************/       #pragma interrupt_handler int0_over:10        void int0_over(void)       {           TCNT0=0x83;   //重裝初值            if((time%100) == 0)               sumnum1 = num;           if(time == 1000)           {               sumnum=num;               if(sumnum<10)               {                                      if((flag==1)&&(sumnum<10))                   {                       PORTD=0XFF;                       flag=0;                   }                                      flag++;               }               else                       PORTD=0XBF;               num=0;               time=0;           }           num+=Count;           Count=0;           ++time;        } 

    標(biāo)簽: C語言

    上傳時(shí)間: 2016-03-09

    上傳用戶:彥 yan

  • 1602數(shù)字時(shí)鐘

    # include < reg52.h > # include < 24C02.h> # define uint unsigned int # define uchar unsigned char   sbit rs = P3^5;  //定義lcd1602的rs端 sbit lcden = P3^4;//定義lcd1602的lcden端口 sbit s1 = P3^0;//定義功能鍵s1 sbit s2 = P3^1;//定義功能鍵s2 sbit s3 = P3^2;//定義功能鍵s3   sbit beep = P2^3;//定義蜂鳴器   uchar Count, s1num; char miao,fen,shi; uchar code table[] = "Designer:X_ZL ";//定義初始上電時(shí)液晶默認(rèn)顯示狀態(tài)     void delay_ms( xms )   //定義延時(shí)函數(shù) { uint i,j; for( i = xms ; i > 0 ; i --) for( j = 110 ; j > 0 ; j --); }  

    標(biāo)簽: 1602 數(shù)字時(shí)鐘程序

    上傳時(shí)間: 2016-07-28

    上傳用戶:游戲好嗎

  • oracle查詢語句

    最近在學(xué)習(xí)Oracle,對(duì)測試人員而言必須掌握兩種語言:第一種是DML,數(shù)據(jù)操縱語言 (Data Manipulation Language) 是SQL語言中,負(fù)責(zé)對(duì)數(shù)據(jù)庫對(duì)象運(yùn)行數(shù)據(jù)訪問工作的指令集,以INSERT、UPDATE、DELETE三種指令為核心,分別代表插入、更新與刪除。第二種是:DQL,數(shù)據(jù)查詢語言 (Data Query Language) 是SQL語言中,負(fù)責(zé)進(jìn)行數(shù)據(jù)查詢而不會(huì)對(duì)數(shù)據(jù)本身進(jìn)行修改的語句,這是最基本的SQL語句。核心指令為SELECT,以及一些輔助指令,如FROM、WHERE等,F(xiàn)ROM:表示來源,可以搭配JOIN做鏈接查詢; WHERE:過濾條件;GROUP BY:在使用聚合函數(shù)時(shí)用到,如SUM,Count,MAX,AVG;HAVING:對(duì)聚合結(jié)果進(jìn)行篩選,這是和WHERE的不同點(diǎn);ORDER BY:排序。

    標(biāo)簽: oracle 基礎(chǔ) 資料

    上傳時(shí)間: 2016-09-15

    上傳用戶:天涯云海

  • Detecting Cars Using Gaussian Mixture Models

    This example shows how to detect and Count cars in a video sequence using foreground detector based on Gaussian mixture models (GMMs)

    標(biāo)簽: Detecting Gaussian Mixture Models Using Cars

    上傳時(shí)間: 2016-12-10

    上傳用戶:Fgufsett

  • 運(yùn)動(dòng)會(huì)源代碼

    #include <malloc.h>       #include <stdio.h>       #include <stdlib.h>       #include <string.h>       #define NULL 0      #define MaxSize 30          typedef struct athletestruct /*運(yùn)動(dòng)員*/     {         char name[20];          int score; /*分?jǐn)?shù)*/         int range; /**/         int item; /*項(xiàng)目*/     }ATH;     typedef struct schoolstruct /*學(xué)校*/     {         int Count; /*編號(hào)*/         int serial; /**/          int menscore; /*男選手分?jǐn)?shù)*/         int womenscore; /*女選手分?jǐn)?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輸入運(yùn)動(dòng)項(xiàng)目序號(hào) (x<=%d):",ntsp);         scanf("%d",pafirst);         overgame = *pafirst;         if ( pafirst != phead )         {             for ( pasecond = phead ; pasecond < pafirst ; pasecond ++ )             {                 if ( overgame == *pasecond )                 {                     printf("\n這個(gè)項(xiàng)目已經(jīng)存在請(qǐng)選擇其他的數(shù)字\n");                     goto Is_Game_DoMain;                 }             }         }         pafirst = pafirst + 1;         if ( overgame > ntsp )         {             printf("\n項(xiàng)目不存在");             printf("\n請(qǐng)重新輸入");             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輸入序號(hào) of the NO.%d (0<x<=%d): ",i,nsc);                 scanf("%d",&serial);         if ( serial > nsc )          {             printf("\n超過學(xué)校數(shù)目,請(qǐng)重新輸入");             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)動(dòng)項(xiàng)目(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號(hào)學(xué)校的結(jié)果成績:",pfirst->serial);             printf("\n\n項(xiàng)目的數(shù)目\t學(xué)校的名字\t分?jǐn)?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按任意建 進(jìn)入下一頁");             getchar();             pfirst = pfirst->next;         }     //  clrscr();          printf("\n運(yùn)動(dòng)會(huì)結(jié)果:\n\n學(xué)校編號(hào)\t男運(yùn)動(dòng)員成績\t女運(yùn)動(dòng)員成績\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 運(yùn)動(dòng)會(huì)分?jǐn)?shù)統(tǒng)計(jì)\n");         printf("輸入學(xué)校數(shù)目 (x>= 5):");         scanf("%d",&nsc);          printf("輸入男選手的項(xiàng)目(x<=20):");         scanf("%d",&msp);          printf("輸入女選手項(xiàng)目(<=20):");         scanf("%d",&wsp);          ntsp = msp + wsp;                  phead = (int *)calloc(ntsp,sizeof(int));         pafirst = phead;         pasecond = phead;         input();         calculate();          output();         Save();     }             

    標(biāo)簽: 源代碼

    上傳時(shí)間: 2016-12-28

    上傳用戶:150501

  • java入門編程合集

    題目:古典問題:有一對(duì)兔子,從出生后第3個(gè)月起每個(gè)月都生一對(duì)兔子,小兔子長到第三個(gè)月后每個(gè)月又生一對(duì)兔子,假如兔子都不死,問每個(gè)月的兔子總數(shù)為多少?    //這是一個(gè)菲波拉契數(shù)列問題 public class lianxi01 { public static void main(String[] args) { System.out.println("第1個(gè)月的兔子對(duì)數(shù):    1"); System.out.println("第2個(gè)月的兔子對(duì)數(shù):    1"); int f1 = 1, f2 = 1, f, M=24;      for(int i=3; i<=M; i++) {       f = f2;       f2 = f1 + f2;       f1 = f;       System.out.println("第" + i +"個(gè)月的兔子對(duì)數(shù): "+f2);          } } } 【程序2】    題目:判斷101-200之間有多少個(gè)素?cái)?shù),并輸出所有素?cái)?shù)。 程序分析:判斷素?cái)?shù)的方法:用一個(gè)數(shù)分別去除2到sqrt(這個(gè)數(shù)),如果能被整除, 則表明此數(shù)不是素?cái)?shù),反之是素?cái)?shù)。    public class lianxi02 { public static void main(String[] args) {     int Count = 0;     for(int i=101; i<200; i+=2) {      boolean b = false;      for(int j=2; j<=Math.sqrt(i); j++)      {         if(i % j == 0) { b = false; break; }          else           { b = true; }      }         if(b == true) {Count ++;System.out.println(i );}                                   }     System.out.println( "素?cái)?shù)個(gè)數(shù)是: " + Count); } } 【程序3】    題目:打印出所有的 "水仙花數(shù) ",所謂 "水仙花數(shù) "是指一個(gè)三位數(shù),其各位數(shù)字立方和等于該數(shù)本身。例如:153是一個(gè) "水仙花數(shù) ",因?yàn)?53=1的三次方+5的三次方+3的三次方。 public class lianxi03 { public static void main(String[] args) {      int b1, b2, b3; 

    標(biāo)簽: java 編程

    上傳時(shí)間: 2017-12-24

    上傳用戶:Ariza

  • words Count

    可用作字頻統(tǒng)計(jì),詞頻分析,論文查重,支持中文分析

    標(biāo)簽: 詞頻統(tǒng)計(jì)

    上傳時(shí)間: 2018-04-30

    上傳用戶:Dear

主站蜘蛛池模板: 通州市| 随州市| 平顺县| 沙湾县| 农安县| 出国| 克拉玛依市| 哈尔滨市| 青岛市| 台安县| 上栗县| 乐山市| 靖安县| 辽中县| 阿坝县| 长宁县| 丹阳市| 汉寿县| 呼伦贝尔市| 犍为县| 招远市| 烟台市| 黑山县| 阿巴嘎旗| 谷城县| 邵阳市| 乃东县| 互助| 和硕县| 临高县| 宜丰县| 贺兰县| 石泉县| 大安市| 德安县| 潜江市| 石渠县| 维西| 安远县| 巴林左旗| 镇康县|