단순 연결 리스트 #Linked List - 순차 자료구조에서의 연산 시간에 대한 문제와 저장 공간에 대한 문제를 개선한 자료 표현 방법 #삽입,삭제,정렬 typedef struct node { int data; node* pNext; }; void insert(node** head,int data); void remove(node** head, int data); void print(node* head); void sort(node* head); int main() { node* head = NULL; int num,i,rm; for(i=0; ipNext = NULL; newnode->data = data; if(*head==NULL) *head = newnode; else { newnode->pNext = *head;.. 더보기 Decoder #0의 개수의 따라 숫자를 문자로 변환 예) 1 -> A 01 -> B 001 -> C file.h #pragma once #include #include class File { private : char arr[500]; char alpha[500]; public: File(char* str); void change(); void output(); }; file.c #include "File.h" using namespace std; File::File(char* str) { for(int i =0; str[i] != NULL; i++) arr[i] = str[i]; } void File::change() { int i =0; int j =0; int zero = 0; for(i=0; arr[i] !=.. 더보기 DMAC - Top #Top - 앞서 구현한 모듈들을 모두 Instance module top( clk, reset_n, M_req, M_wr, M_address, M_dout, M_grant, M_din, interrupt ); input clk; input reset_n; input M_req; input M_wr; input [7:0] M_address; input [7:0] M_dout; output M_grant; output [7:0] M_din; output interrupt; wire M0_req; wire [7:0] M0_address; wire M0_wr; wire [7:0] M0_dout; wire M0_grant; wire M1_req; wire [7:0] M1_address; wire M1_wr; w.. 더보기 이전 1 ··· 3 4 5 6 7 8 9 ··· 26 다음