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

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

p-code

  • 基于c0文法寫的生成p-code的編譯器

    基于c0文法寫的生成p-code的編譯器,有詞法分析,語法分析,中間代碼生成等功能

    標(biāo)簽: p-code 編譯器

    上傳時間: 2014-06-13

    上傳用戶:fnhhs

  • 1. 具有比較友好的GUI界面(仿照了我自己正在用的emacs); 2. 語法支持比較全面(畢竟是C-

    1. 具有比較友好的GUI界面(仿照了我自己正在用的emacs); 2. 語法支持比較全面(畢竟是C-,語法還是不多的); 3. Error Recovery; 4. 生成p-code,便于理解; 5. 生成asm代碼,通過masm6.0基本都能編譯成功,但代碼沒有優(yōu)化,效率極低。

    標(biāo)簽: emacs GUI 比較

    上傳時間: 2014-01-12

    上傳用戶:gaojiao1999

  • 數(shù)據(jù)結(jié)構(gòu)實(shí)驗

    #include <iostream> #include <stdio.head> #include <stdlib.head> #include <string.head> #define ElemType int #define max 100 using namespace std; typedef struct node1 { ElemType data; struct node1 *next; }Node1,*LinkList;//鏈棧 typedef struct { ElemType *base; int top; }SqStack;//順序棧 typedef struct node2 { ElemType data; struct node2 *next; }Node2,*LinkQueue; typedef struct node22 { LinkQueue front; LinkQueue rear; }*LinkList;//鏈隊列 typedef struct { ElemType *base; int front,rear; }SqQueue;//順序隊列 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 //1.采用鏈?zhǔn)酱鎯?shí)現(xiàn)棧的初始化、入棧、出棧操作。 LinkList CreateStack()//創(chuàng)建棧 { LinkList top; top=NULL; return top; } bool StackEmpty(LinkList s)//判斷棧是否為空,0代表空 { if(s==NULL) return 0; else return 1; } LinkList Pushead(LinkList s,int x)//入棧 { LinkList q,top=s; q=(LinkList)malloc(sizeof(Node1)); q->data=x; q->next=top; top=q; return top; } LinkList Pop(LinkList s,int &e)//出棧 { if(!StackEmpty(s)) { printf("棧為空。"); } else { e=s->data; LinkList p=s; s=s->next; free(p); } return s; } void DisplayStack(LinkList s)//遍歷輸出棧中元素 { if(!StackEmpty(s)) printf("棧為空。"); else { wheadile(s!=NULL) { cout<<s->data<<" "; s=s->next; } cout<<endl; } } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 //2.采用順序存儲實(shí)現(xiàn)棧的初始化、入棧、出棧操作。 int StackEmpty(int t)//判斷棧S是否為空 { SqStack.top=t; if (SqStack.top==0) return 0; else return 1; } int InitStack() { SqStack.top=0; return SqStack.top; } int pushead(int t,int e) { SqStack.top=t; SqStack.base[++SqStack.top]=e; return SqStack.top; } int pop(int t,int *e)//出棧 { SqStack.top=t; if(!StackEmpty(SqStack.top)) { printf("棧為空."); return SqStack.top; } *e=SqStack.base[s.top]; SqStack.top--; return SqStack.top; } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 //3.采用鏈?zhǔn)酱鎯?shí)現(xiàn)隊列的初始化、入隊、出隊操作。 LinkList InitQueue()//創(chuàng)建 { LinkList head; head->rear=(LinkQueue)malloc(sizeof(Node)); head->front=head->rear; head->front->next=NULL; return head; } void deleteEle(LinkList head,int &e)//出隊 { LinkQueue p; p=head->front->next; e=p->data; head->front->next=p->next; if(head->rear==p) head->rear=head->front; free(p); } void EnQueue(LinkList head,int e)//入隊 { LinkQueue p=(LinkQueue)malloc(sizeof(Node)); p->data=e; p->next=NULL; head->rear->next=p; head->rear=p; } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 //4.采用順序存儲實(shí)現(xiàn)循環(huán)隊列的初始化、入隊、出隊操作。 bool InitQueue(SqQueue &head)//創(chuàng)建隊列 { head.data=(int *)malloc(sizeof(int)); head.front=head.rear=0; return 1; } bool EnQueue(SqQueue &head,int e)//入隊 { if((head.rear+1)%MAXQSIZE==head.front) { printf("隊列已滿\n"); return 0; } head.data[head.rear]=e; head.rear=(head.rear+1)%MAXQSIZE; return 1; } int QueueLengthead(SqQueue &head)//返回隊列長度 { return (head.rear-head.front+MAXQSIZE)%MAXQSIZE; } bool deleteEle(SqQueue &head,int &e)//出隊 { if(head.front==head.rear) { cout<<"隊列為空!"<<endl; return 0; } e=head.data[head.front]; head.front=(head.front+1)%MAXQSIZE; return 1; } int gethead(SqQueue head)//得到隊列頭元素 { return head.data[head.front]; } int QueueEmpty(SqQueue head)//判斷隊列是否為空 { if (head.front==head.rear) return 1; else return 0; } void travelQueue(SqQueue head)//遍歷輸出 { wheadile(head.front!=head.rear) { printf("%d ",head.data[head.front]); head.front=(head.front+1)%MAXQSIZE; } cout<<endl; } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 //5.在主函數(shù)中設(shè)計一個簡單的菜單,分別測試上述算法。 int main() { LinkList top=CreateStack(); int x; wheadile(scanf("%d",&x)!=-1) { top=Pushead(top,x); } int e; wheadile(StackEmpty(top)) { top=Pop(top,e); printf("%d ",e); }//以上是鏈棧的測試 int top=InitStack(); int x; wheadile(cin>>x) top=pushead(top,x); int e; wheadile(StackEmpty(top)) { top=pop(top,&e); printf("%d ",e); }//以上是順序棧的測試 LinkList Q; Q=InitQueue(); int x; wheadile(scanf("%d",&x)!=-1) { EnQueue(Q,x); } int e; wheadile(Q) { deleteEle(Q,e); printf("%d ",e); }//以上是鏈隊列的測試 SqQueue Q1; InitQueue(Q1); int x; wheadile(scanf("%d",&x)!=-1) { EnQueue(Q1,x); } int e; wheadile(QueueEmpty(Q1)) { deleteEle(Q1,e); printf("%d ",e); } return 0; }

    標(biāo)簽: 數(shù)據(jù)結(jié)構(gòu) 實(shí)驗

    上傳時間: 2018-05-09

    上傳用戶:123456..

  • CCS使用介紹

    Code Composor Sdudio 使用教程。該教程由南京傅立葉電子技術(shù)有限公司 (HELLODSP)提供

    標(biāo)簽: ccs

    上傳時間: 2022-04-22

    上傳用戶:

  • CCS 9.1.0 官方版本免費(fèi)下載

    Code Composer Studio 代碼調(diào)試器,代碼設(shè)計套件,縮寫為CCS,可提供強(qiáng)健、成熟的核心功能與簡便易用的配置和圖形可視化工具,使系統(tǒng)設(shè)計更快。文件較大,存在百度網(wǎng)盤,下載文件中提供了鏈接和提取碼。打開即可下載。

    標(biāo)簽: ccs

    上傳時間: 2022-07-08

    上傳用戶:

  • CCS 8.3.0 官方軟件免費(fèi)下載

    Code Composer Studio 代碼調(diào)試器,代碼設(shè)計套件,縮寫為CCS,可提供強(qiáng)健、成熟的核心功能與簡便易用的配置和圖形可視化工具,使系統(tǒng)設(shè)計更快。文件較大,存在百度網(wǎng)盤,下載文件中提供了鏈接和提取碼。打開即可下載。

    標(biāo)簽: ccs

    上傳時間: 2022-07-08

    上傳用戶:

  • 針對嵌入式反應(yīng)式系統(tǒng)開發(fā)的量子操作系統(tǒng),見http://code.google.com/p/qfinet 包含一個基于linux平臺的模擬器, 量子框架,基于量子框架的TCP/IP協(xié)議棧 后續(xù)將發(fā)布A

    針對嵌入式反應(yīng)式系統(tǒng)開發(fā)的量子操作系統(tǒng),見http://code.google.com/p/qfinet 包含一個基于linux平臺的模擬器, 量子框架,基于量子框架的TCP/IP協(xié)議棧 后續(xù)將發(fā)布ARM7TDMI上的移植版

    標(biāo)簽: google qfinet linux http

    上傳時間: 2014-01-23

    上傳用戶:水中浮云

  • mysql+ha. 實(shí)現(xiàn)高可用性 http://code.google.com/p/mysql-master-master/

    mysql+ha. 實(shí)現(xiàn)高可用性 http://code.google.com/p/mysql-master-master/

    標(biāo)簽: mysql-master-master google mysql code

    上傳時間: 2014-11-27

    上傳用戶:aeiouetla

  • dsp hư ớ ng dẫ n giao tiế p LCD code viế t bằ ng C

    dsp hư ớ ng dẫ n giao tiế p LCD code viế t bằ ng C

    標(biāo)簽: 7871 7899 7851 7857

    上傳時間: 2017-06-17

    上傳用戶:xuanjie

  • code củ a dsp 30f4012 viế t cho giao tiế p LCD

    code củ a dsp 30f4012 viế t cho giao tiế p LCD

    標(biāo)簽: 7871 30f4012 code 7911

    上傳時間: 2017-06-17

    上傳用戶:koulian

主站蜘蛛池模板: 花莲市| 平泉县| 启东市| 广东省| 抚远县| 饶平县| 福鼎市| 闵行区| 平乐县| 广元市| 田东县| 徐州市| 宁城县| 临洮县| 岳阳市| 七台河市| 中卫市| 泸溪县| 贵州省| 梅河口市| 恭城| 德令哈市| 庆元县| 金坛市| 临夏市| 大渡口区| 合山市| 宣城市| 巴林右旗| 肇东市| 北碚区| 额尔古纳市| 遂川县| 高台县| 吴江市| 广水市| 巴青县| 栾城县| 淳安县| 浦东新区| 鞍山市|