자료구조_힙정렬
- 최초 등록일
- 2007.12.24
- 최종 저작일
- 2006.05
- 3페이지/ 한컴오피스
- 가격 1,500원
소개글
실행환경 : win-xp, 512MB RAM, P4 2.01GHz
사용언어 : C#
입력값 : 10, 5, 30, 35, 40, 50
-------------------------------------------------------------------------------------
소스
-------------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
namespace Heap{
class Element {
public static int element_num;
private int key;
private Object data;
static Element() {
element_num = 0;
}
public Element(){}
public Element(int key) {
this.key = key;
}
목차
없음
본문내용
실행환경 : win-xp, 512MB RAM, P4 2.01GHz
사용언어 : C#
입력값 : 10, 5, 30, 35, 40, 50
-------------------------------------------------------------------------------------
소스
-------------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
namespace Heap{
class Element {
public static int element_num;
private int key;
private Object data;
static Element() {
element_num = 0;
}
public Element(){}
public Element(int key) {
this.key = key;
}
public int Key{
get {
return this.key;
}
set {
this.key = value
}
}
public object Data{
get{
return this.data;
}
set{
this.data = value
}
}
}
class HeapProgram {
int max_element = 200;
Element[] heap_array;
public HeapProgram() {
this.element_init();
}
참고 자료
없음