일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- vfd
- 누산기
- C언어
- 주소버스
- 문자열과 포인터
- OPAMP
- 메가바이트
- Visual Studio 2008
- LSB
- MAX232
- serial통신
- 제어버스
- TMS320F28335PGFA
- 오실레이터
- 절대값
- 프로세서 기능
- 파이프 라인(pipeline)
- Call-By-Reference
- H-bridge
- cisc
- 킬로바이트
- Call-By-Value
- 메모리
- risc
- 프로그램 카운터
- 래치
- latch
- 포인터
- 조건 연산자
- 데이터 버스
- Today
- Total
목록Programming/Data Structure (3)
Fortune Smiles On Me
#include #include #define array_len 100 int arr[array_len]; int front = 0; int rear = 0; void enqueue(int data){ arr[rear++] = data; } int dequeue(void){ if (front == rear){ printf("비어있음\n"); exit(1); } return arr[front++]; } int main(void){ enqueue(3); enqueue(5); enqueue(2); enqueue(6); printf("%d\n", dequeue()); printf("%d\n", dequeue()); printf("%d\n", dequeue()); printf("%d\n", dequeue()); ..
#include #include "stack_list.h" void StackInit(Stack *pstack){ pstack->head = NULL; } int SIsEmpty(Stack *pstack){ if (pstack->head == NULL){ return TRUE; } else return FALSE; } void Spush(Stack *pstack, int data ){ Node* newNode = (Node*)malloc(sizeof(Node)); newNode->data = data; newNode->next = pstack->head; pstack->head = newNode; } DATA Spop(Stack *pstack){ DATA rdata; Node *rnode; if (SIs..
#include #include #include "stack.h" void StackInit(Stack *pstack){ pstack->top_index = -1; pstack->Stack_Arr[STACK_LEN]; } int SisEmpty(Stack *pstack){ if (pstack->top_index == -1) // 스택이 비었을 경우 return 1; else return 0; } void StackPush(Stack* pstack, int data) { //pstack->top_index++; pstack->top_index = pstack->top_index + 1; pstack->Stack_Arr[pstack->top_index] = data; } DATA StackPop(Stack*..