Develop
2013.04.23 16:03
[js] 큐 형식으로 배열사용.. ㅋㅋ
조회 수 7019 댓글 0
큐 형식의 배열 사용 샘플..
<html> <head> <title>JS test</title> <script> var map = new Array(); function view(){ while(map.length>0){ v = map.shift() + "<br>"; document.write( v ); } } function add(){ form = document.manage; if(form.memo.value!="") { map.push( form.memo.value ); form.memo.value = ""; form.memo.focus(); } return false; } </script> </head> <body> <form name=manage onSubmit="return add();"> <input type=text name=memo> <input type=button value=ADD onClick="add();"> <input type=button value=VIEW onClick="view();"> </form> <script> document.manage.memo.focus(); </script> </body> </html>
-
[c] 공용체를 이용해 MSB를 LSB로 변환
-
[c] 함수 목록과 예제 소스 파일
-
[c] 윈도우 API Viewport와 Window
-
[c] 윈도우 API sin 함수 출력..
-
베지어 곡선(Bézier curve) 알고리즘(spline 곡선)
-
[c] 압축 알고리즘 소스 및 정리
-
[c] 구구단 최단라인 ㅡㅡ;
-
[ms-sql] 서브스트링(substring), 프로시저(SP) 작성 예제
-
[c++] 초간단 스택 두 가지 방식(class, struct)
-
[c][java] 주사선 채우기 알고리즘(scan line filling algorithm) 구현
-
[c] 더블(이중) 연결리스트 예제..
-
[c++] 헤더, 소스 파일 분리해서 작성해본 테스트 소스