전체 글
-
-
쿠키값 저장,불러오기, 삭제JAVASCRIPT 2016. 12. 28. 11:10
저장setCookie("Cookie_lat",lat,1);setCookie("Cookie_lng",lng,1); 불러오기getCookie("Cookie_lat") function setCookie(cName, cValue, cDay){var expire = new Date();expire.setDate(expire.getDate() + cDay);cookies = cName + '=' + escape(cValue) + '; path=/ '; // 한글 깨짐을 막기위해 escape(cValue)를 합니다.if(typeof cDay != 'undefined') cookies += ';expires=' + expire.toGMTString() + ';';document.cookie = cookies;} // ..
-
-
C언어배우기1C&&CPP 2016. 12. 23. 22:59
http://itguru.tistory.com/187 를 보며 배우는 중입니다. --- 음.. 영어도 못하는데 비쥬얼 스튜디오가 영문버전으로 깔렷습니다..! ㅎㅎ 1. 새 프로젝트 생성하기 ctrl+shift+N console 프로그램 선택 empty 선택후 finish 로 프로젝트 생성 그 이후 sorce File 우클릭 -> add -> new item 을 하시면 창이 나옵니다. hellowoeld.c 로 파일명을 지정했습니다.뒤에 확장자를 꼭! 잘 지정해 줘야 한다고 합니다!그래서 착하게 .c 를 잘 붙여주었습니다. 그 후 프로젝트가 생성되어서 =========================#include //stdio.h 파일 인크루드//파일이 실행되면서 가장 먼저 실행될 함수int main() {..