일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 래치
- 파이프 라인(pipeline)
- latch
- 포인터
- Visual Studio 2008
- Call-By-Reference
- LSB
- OPAMP
- 킬로바이트
- 문자열과 포인터
- 프로그램 카운터
- 데이터 버스
- 절대값
- vfd
- cisc
- 오실레이터
- risc
- 프로세서 기능
- TMS320F28335PGFA
- Call-By-Value
- C언어
- H-bridge
- 제어버스
- MAX232
- 주소버스
- serial통신
- 메가바이트
- 메모리
- 누산기
- 조건 연산자
- 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*..