#include #include using namespace std; class Dikstra { public : Dikstra(int); void input(); // 인접-행렬 입력 및 생성 void ShortestPath(const int n, const int v); // 빠른길로 가중치를 갱신 int choose(int); // 시작~목적지 까지의 누적 길이가 가장 적은 정점을 반환 void print_route(int i , int u); // 누적 길이를 출력 void result(int v,int end); // 최종 목적지까지의 최종 경로 출력 private: int length; // 배열의 최대길이 int **matrix; // 인접-행렬 bool *check_route; // 중복체..
%{ #include #include enum tGrammar{TEOF, VERB, ADVERB, PREPOSITION, CONJUNCTION, ADJECTIVE, UNCONJUGATIONADJECTIVE,PRONOUN,NOUN,TDOT,SPACE,TSPOT}; %} /* 액션코드로 C 언어 기술 시 필요한 자료 구조, 변수, 그리고 상수 등을 정의. 렉스의 출력인 lex.yy.c의 앞부분에 복사 치환식은 정규표현, 이름은 정규 표현의 이름 */ letter[a-zA-Z] %% is|am|are|were|was|be|being|been|do|does|did|will|would|should|can|could|has|have|had|go return(VERB); very|simply|gently|quietl..
import java.awt.*; import java.awt.event.*; import java.util.*; // 쓰레드 클래스를 상속 받아서 run을 오버라이딩 할 것이다. public class SimpleThread extends Thread{ static Canvas canvas; int y = 0; String str = null; Random rand = new Random(); public SimpleThread(int y, String str){ this.y = y; this.str = str; } // run은 start를 통해서 실행 된다. 현재 run은 오버라이딩 한 상태다. public void run(){ Graphics g = canvas.getGraphics(); g.dr..
%{ unsigned long charCount=0, wordCount=0, lineCount=0; %} word [^ \t\n]+ eol \n %% {word} { wordCount++; charCount+=yyleng; } {eol} {charCount++; lineCount++; } . {charCount++;} %% int main(void) { FILE *file; char fn[20]; printf("Type a ipnut file Name:"); scanf("%s",fn); file=fopen(fn, "r"); if (!file) { fprintf(stderr,"file '%s' could not be opened. \n",fn); exit(1); } yyin=file; yylex(); pr..
- Total
- Today
- Yesterday
- 네이버
- 홍성표 교수
- 키워드
- 티스토리
- Presentation Ice Breaker
- 괴산
- 한국은행 통화정책 경시대회
- 티스토리 초대권
- 양구
- 함성
- 초대장
- 대전
- wwe
- 티스토리 초대장
- 충주
- 아동 학대
- 충남대
- 충남대학교 경제학과 30주년 기념
- 충남대 홍성표
- 충주대원고등학교
- 충주충일중학교
- 충남대학교
- 티스토리 초대
- 경제학 홍성표
- 경제학과 홍성표
- 검색량
- 충남대학교 경제학과
- 학점 계산기
- 홍성표
- 한국천문연구원
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |