标签:lap 嵌入式 include sizeof 开发 gif 设计 list 知识
1.嵌入式系统设计一般法分为几个接单:需求分析阶段、
1 #include "stdio.h" 2 #include <stdlib.h> 3 #include "malloc.h" 4 typedef struct SingleList 5 { 6 int data; 7 struct SingleList *next; 8 9 }LIST,*LPLIST; 10 11 LPLIST CreateNode(int data) 12 { 13 LPLIST Node = (LPLIST)malloc(sizeof(LIST)); 14 Node->data = data; 15 Node->next = nullptr; 16 return Node; 17 } 18 typedef struct queue 19 { 20 LPLIST front; 21 LPLIST rear; 22 int queueSize; 23 24 }Queue,*LPQUEUE; 25 26 void CreateQueue(LPQUEUE Q) 27 { 28 Q->front = Q->rear = nullptr; 29 Q->queueSize = 0; 30 } 31 void push(LPQUEUE Q, int theElement) 32 { 33 LPLIST newNode = CreateNode(theElement); 34 35 }
标签:lap 嵌入式 include sizeof 开发 gif 设计 list 知识
原文地址:https://www.cnblogs.com/pquan/p/12870656.html