編寫一個程序,輸出基本數據類型char, short, int, long, float, double和指針類型void *, char *, short *, int *, long *, float *, double *的數據類型的長度。
上傳時間: 2013-12-26
上傳用戶:pompey
A badic controller for the UART. It incorporates a -- transmit and receive FIFO (from Max+Plus II s MegaWizard -- plug-in manager). Note that no checking is done to see -- whether the FIFOs are overflowing or not. This strictly -- handles the transmitting and receiving of the data.
標簽: incorporates controller transmit receive
上傳時間: 2017-09-05
上傳用戶:13681659100
一個用VHDL編寫的秒表程序,可用Max+PlusII仿真
上傳時間: 2017-09-07
上傳用戶:xiaoxiang
Per gli interessati ai metodi della compressione una vera miniera d oro, oltre 70 algoritmi all interno di moduli base indipendenti consentono a questo programma di mostrare il loro utilizzo e le loro performances, ecco elencati alcuni di essi : base64/crc32/fibonacci/mtf/freq/adddif/bwt/fix12/fix128/flatter/ huffman/lzw/lzs/rle/lbe/hash/vbc/scrambler, e tanti tanti altri.
標簽: compressione interessati algoritmi miniera
上傳時間: 2013-12-16
上傳用戶:時代電子小智
內容摘要: LHD6000主板主芯片程序 ISD1730時序說明: 參考:void Send_1Byte(uchar ucData_s)和uchar Receive_1Byte(void)的說明. 應先發"RESET"命令再發"PWR_UP"命令,后發"RESET"命令可能不正常工作. 1730最高地址只有0xFF,所以對指定地址的操作函數的參數使用了"unsigned char"類型, 17系列的其它型號可能才用得到"unsigned int",借用時注意,將對應注釋掉的部分還原.!!
上傳時間: 2017-09-11
上傳用戶:zm7516678
內容摘要:在簡單介紹算術編碼和自適應算術編碼的基礎上,介紹了利用FPGA器件并通過VHDL語言描述實現自適應算術編碼的過程。整個編碼系統在LTERA公司的MAX+plus Ⅱ軟件上進行了編譯仿真,測試結果表明:編碼器各個模塊的設計在速度和資源利用兩方面均達到了較優的狀態,可以滿足實時編碼的要求。
標簽: 算術編碼
上傳時間: 2014-08-10
上傳用戶:gououo
使用Altera的MAX+PlusII設計了一個補碼運算器,文檔里包含了詳細的設計原理及完整電路
標簽: MAX+PlusII 補碼運算
上傳時間: 2015-02-26
上傳用戶:赫爾辛根
DATAS SEGMENT w dw 0 keybuf db 255 db 0 db 255 dup(0) ;定義鍵盤輸入需要的緩沖區 DATAS ENDS STACKS SEGMENT db 200 dup(?) STACKS ENDS CODES SEGMENT ASSUME CS:CODES,DS:DATAS,SS:STACKS START: MOV AX,DATAS MOV DS,AX mov dx,offset keybuf ;用0a號功能,輸入一個字符串 mov ah,0ah ;用回車結束 int 21h mov dl,0ah ;再進行換行,以便在下一行顯示轉換后的字符串 mov ah,2 int 21h ; push ax ; push dx ; mov dl,cl ; mov ah,02 ; int 21h ; pop dx ; pop ax mov bx,offset keybuf+1 ;取出字符串的字符個數,作為循環的次數 mov cl,[bx] mov ch,0 mov ax,0 again: inc bx mov ax,[w] push bx mov bx,16 mul bx pop bx ;是小寫字母,則轉換為大寫字母 mov [w],ax mov dl,[bx] ;取出一個字符, cmp dl,'9' jbe lab1 cmp dl,'F' jbe lab2 sub dl,32 lab2: sub dl ,07h lab1: sub dl,30h add [w],dx loop again mov ax,[w] mov bx,-1 push bx mov bx,10 lab3 :mov dx,0 div bx push dx cmp ax,0 jnz lab3 lab5: pop dx cmp dx,-1 jz lab4 add dl,30h mov ah,02 int 21h jmp lab5 ;循環,處理完整個字符串 lab4: MOV AH,4CH INT 21H CODES ENDS END START
標簽: 匯編
上傳時間: 2015-04-02
上傳用戶:wcc0310
#include <iostream> using namespace std; int main(){ int t; cin>>t; while(t--){ long long n; cin>>n; if(n%2==1) cout<<(n*n-1)/4<<endl; else if (n%4==0) cout <<(n*n)/4-1<<endl; else{ if(n==2) cout<<1<<endl; else{ long long k=n/2-1; cout <<k*k+2*k-3<<endl; } } } return 0; }
標簽: 天津大學acm4022 代碼
上傳時間: 2015-04-20
上傳用戶:nr607
兩個鏈表的交集 #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