*명*
Bronze개인
팔로워0 팔로우
소개
등록된 소개글이 없습니다.
전문분야 등록된 전문분야가 없습니다.
판매자 정보
학교정보
입력된 정보가 없습니다.
직장정보
입력된 정보가 없습니다.
자격증
  • 입력된 정보가 없습니다.
판매지수
전체자료 1
검색어 입력폼
  • 한빛소프트 책 자료구조 책에 있는 소스
    /*-------------------------------------Title : p77Author : MyeongHoon LeeDate : 17 March 2010Contents : 자료형의 크기확인---------------------------------------*/#include #include int main(){char c, c_array[100];int i, i_array[100];short s, s_array[100];float f, f_array[100];long l, l_array[100];double m, m_array[100];printf("063520 김남진 n");printf("n char c의 size = %d t: char c_array의 size = %4d",sizeof(c), sizeof(c_array));printf("n char i의 size = %d t: char i_array의 size = %4d",sizeof(i), sizeof(i_array));printf("n char s의 size = %d t: char s_array의 size = %4d",sizeof(s), sizeof(s_array));printf("n char f의 size = %d t: char f_array의 size = %4d",sizeof(f), sizeof(f_array));printf("n char l의 size = %d t: char l_array의 size = %4d",sizeof(l), sizeof(l_array));printf("n char m의 size = %d t: char m_array의 size = %4d",sizeof(m), sizeof(m_array));system("pause");}실행화면/*-----------------------------------------Title : p79Author : MyeongHoon LeeDate : 17 March 2010Contents : 학년별 취득 학점 입출력getchar();return 0;}실행화면/*--------------------------------------------------------Title : p212Author : MyeongHoon LeeDate : 14 April 2010Contents : 예제 5-2 연결 리스트를 이용한 다항식의 덧셈 프로그램---------------------------------------------------------*/#include #include typedef struct ListNode{float coef;int expo;struct ListNode* link;} ListNode;typedef struct ListHead{ListNode* head;} ListHead;ListHead* createLinkedList(void){ListHead* L;L = (ListHead *)malloc(sizeof(ListHead));L->head = NULL;return L;}void addLastNode(ListHead* L, float coef, int expo){ListNode* newNode;ListNode* p;newNode = (ListNode *)malloc(sizeof(ListNode));newNode->coef = coef;newNode->expo = expo;newNode->link = NULL;if(L->head == NULL){L->head = newNode;return;}else {p = L->head;while(p->link != NULL){p = p->link;}p->link = newNode;}}void addPoly(ListHead* A, ListHead* B, ListHead* C){ListNode* pA =A->head;ListNode* pB =B->head;float sum;while(pA && pB){if(pA->expo == pB->expo){sum = pA->coef + pB->coef;addLastNode(C, sum, p {printf("nn Stack is Empty!!n");return 0;}else return stack[top--];}void del(){if(top==-1) {printf("nn Stack is Empty !n");exit(1);}else top--;}element peek(){if(top==-1) {printf("nn Stack is Empty !n");exit(1);}else return stack[top];}void printStack(){int i;printf("n STACK [ ");for(i=0; idata = item;temp->link = top;top = temp;}element pop(){element item;stackNode* temp=top;if(top ==NULL) {printf("nn Stack is empty !n");return 0;}else {item = temp->data;top = temp->link;free(temp);return item;}}element peek(){element item;if(top == NULL){;printf("nn Stack is empty !n");return 0;}else {item = top->data;return item;}}void del(){stackNode* temp;if(top == NULL) {printf("nn Stack is empty !n");}else {temp = top;top = top->link;free(temp);}}void printStack(){stackNode* p=top;printf("n STACK [ ");while(p){printf("%d ", p->data);p = p->link;}printf("] ");}int main(void){element item;top = NULL;printStack();push(1);printStack();push(2);printStack();push(3);printStack();itepair;int i, length=strlen(exp);top-NULL;for(i=0; ifront=-1;Q->rear=-1;return Q;}int isEmpty(QueueType *Q){if (Q->front == Q->rear){printf("n Queue is empty! n");return 1;}else return 0;}int isFull(QueueType *Q){if (Q->rear == Q_SIZE-1){printf("n Queue is full! n");return 1;}else return 0;}int enQueue(QueueType *Q, element item){if(isFull(Q)) exit(1);else {Q->rear++;Q->queue[Q->rear] = item;}}element deQueue(QueueType *Q){if(isEmpty(Q)) exit(1);else {Q->front++;return Q->queue[Q->front];}}int del(QueueType *Q){if (isEmpty(Q)) exit(1);else return Q->queue[Q->front+1];}element peek(QueueType *Q){if (isEmpty(Q)) exit(1);else return Q->queue[Q->front+1];}int printQ(QueueType *Q){int i;printf("n Queue : [");for(i=Q->front+1; irear; i++)printf("%3c", Q->queue[i]);printf(" ]");}int main(void){QueueType *Q1 = createQueue();element data;enQueue(Q1, 'A'); printQ(Q1);enQueue(Q1, 'B'); printQ(Q1);deQueue(Q1); printQ(Q1);enQueue(Q1, 'C'); printQ(Q1);data = peek(Q1); printf("n peek item : %c", inorder : ");inorder(n1);printf("n postorder : ");postorder(n1);getchar();}실행화면/*-------------------------------------------------------Title : p348Author : MyeongHoon LeeDate : 21 may 2010Contents : 예제8-4 순차 자료구조를 이용한 최대 히프 프로그램-------------------------------------------------------*/#include #include #define MAX_ELEMENT 100typedef struct {int heap[MAX_ELEMENT];int heap_size;} heapType;heapType* createHeap(){heapType *h = (heapType *)malloc(sizeof(heapType));h->heap_size=0;return h;}void insertHeap(heapType *h, int item){int i;h->heap_size = h->heap_size +1;i = h->heap_size;while((i!=1) && (item > h->heap[i/2])){h->heap[i]= h->heap[i/2];i/=2;}h->heap[i] = item;}int deleteHeap(heapType *h){int parent, child;int item, temp;item = h->heap[1];temp = h->heap[h->heap_size];h->heap_size = h->heap_size -1;parent = 1;child = 2;while(child heap_size){if((child < h->heap_size) && (h->heap[child]) heap[child+1])child++;if(temp >=h->heap[child]) break;h->heap[parent] = h->heap[child];parent = chii
    공학/기술| 2010.06.11| 42페이지| 1,000원| 조회(136)
    미리보기
전체보기
해캠 AI 챗봇과 대화하기
챗봇으로 간편하게 상담해보세요.
2026년 05월 18일 월요일
AI 챗봇
안녕하세요. 해피캠퍼스 AI 챗봇입니다. 무엇이 궁금하신가요?
9:15 오후
문서 초안을 생성해주는 EasyAI
안녕하세요 해피캠퍼스의 20년의 운영 노하우를 이용하여 당신만의 초안을 만들어주는 EasyAI 입니다.
저는 아래와 같이 작업을 도와드립니다.
- 주제만 입력하면 AI가 방대한 정보를 재가공하여, 최적의 목차와 내용을 자동으로 만들어 드립니다.
- 장문의 콘텐츠를 쉽고 빠르게 작성해 드립니다.
- 스토어에서 무료 이용권를 계정별로 1회 발급 받을 수 있습니다. 지금 바로 체험해 보세요!
이런 주제들을 입력해 보세요.
- 유아에게 적합한 문학작품의 기준과 특성
- 한국인의 가치관 중에서 정신적 가치관을 이루는 것들을 문화적 문법으로 정리하고, 현대한국사회에서 일어나는 사건과 사고를 비교하여 자신의 의견으로 기술하세요
- 작별인사 독후감