[자료구조] 위상정렬
- 최초 등록일
- 2003.06.04
- 최종 저작일
- 2003.06
- 1페이지/ 압축파일
- 가격 2,000원
컴파일 실행환경
자료구조의 위상정렬 프로그램입니다.
메뉴구조로 DOS 모드에서 동작합니다.
윈도우 2000에서 비주얼 C++ 로 만든 C화일입니다.
본문내용
#include < stdio.h>
#include < conio.h>
#include < stdlib.h>
#include < string.h>
#define MAX_NO_VERTICES 9
typedef struct node *nodePointer;
typedef struct node{
int vertex;
nodePointer link;
};
typedef struct headNode{
int count;
nodePointer link;
} headNode;
headNode graph[MAX_NO_VERTICES];
int menu(int index);
void init(int n)
{
int i;
for(i=0 ; i<n ; i++)
{
graph[i].count = 0;
graph[i].link = NULL;
printf("%d %d\n", i+1, graph[i].count);
}
}
압축파일 내 파일목록
topsort.c
topsort.exe
참고 자료
없음