분류 전체보기

    C++ 기본 형태

    // 헤더 선언부 #pragma once #include #include using namespace std; #include #define VAR 10 // 메인 선언부 #include "Main.h" #include 쓰인 헤더 파일 void main() { } // 클래스 선언 #include "Main.h" class classname { public: void PrintVar(int iVertexNum); void Print(); virtual ~classname(); protected: void Initialize(); private: int var; }; // 클래스 메인 #include "클래스 헤더" classname::classname() { // 생성자 } classname::~clas..

    C 기본 형태

    #include int function(int a, int b); int main(){ printf("5 + 3 : %d \n", function(5,3)); return 0; } int function(int a, int b){ return a+b; }

    class vs. id

    클래스 .(마침표) class 문서에서 주로 사용되는 서식을 클래스명으로 지정하여 문서에 통일감을 준다. 등 여러 개의 태그에 적용 가능하다. 아이디 #(hash) id 스크립트 언어 (자바스크립트)로 아이디에 지정된 스타일이나 행동 양식을 변경. Dynamic HTML 구현 시 주로 사용 등 하나의 태그에만 적용하여 사용한다.

    id selector & Selectors can be contextual

    id selector #green {color: green} p#para1 { text-align: center; color: red } p#exampleID1 { background-color: white; } p#exampleID2 { text-transform: uppercase; } Good Morning Hello This paragraph has an ID name of "exampleID1" and has a white CSS defined background This paragraph has an ID name of "exampleID2" and has had its text transformed to uppercase letters. Selectors can be contextual Th..

    Grouping & Add Styles to Elements with Particular Attributes

    Grouping h1,h2,h3,h4,h5,h6 { color: green } Add Styles to Elements with Particular Attributes input[type="text"] {background-color: blue}

    Pseudo-Class Selector & CSS 글꼴 꾸밈관련 스타일

    - Pseudo-Class Selector - A:link 보통 때의 링크 텍스트의 스타일 A:visited 이미 방문한 적이 있는 링크의 스타일 A:hover 마우스가 링크 위를 스쳐 지날 때의 색깔 A:active 마우스를 클릭하여 실제로 해당 링크로 페이지가 옮겨지는 동안의 색깔 Example) a:link { text-decoration:underline; color:#8600E4 } a:visited { text-decoration:underline; color:#800080 } a:hover { text-decoration:underline; color:#FF0000 } a:active { text-decoration:underline; color:#0000FF } - CSS 글꼴 꾸밈관련 스..

    css link

    1. 2. 3. 4. this block is red. [Inline Style]

    기본 커리문

    DB 연결 mysql_connect("localhost","아이디","패스워드"); DB선택 mysql_select_db("DB명"); DB 연결 해지 mysql_close(); Query mysql_query(); Query Count mysql_num_rows(커리결과변수); Query Result mysql_result(커리 결과 변수, 번호, "필드명"); Select SELECT '필드' FROM 테이블명 WHERE 조건 ORDER BY '정렬기준필드' DESC Insert INSERT INTO 테이블명 VALUES() 현재날짜입력 : now() 변수 입력 : '변수' Update UPDATE 테이블명 SET 필드명=변수, 필드명 = 변수n WHERE 조건 Delete DELETE FROM 테이..

    주민등록번호 검사

    function check_jumin() { form = window.document.site_info; //주민등록 번호 체크 var pin1 = form.jumin1.value; var pin2 = form.jumin2.value; if (pin1 == '') { alert('주민등록번호 앞자리가 없습니다.'); form.jumin1.focus(); form.jumin1.select(); return true; } if (pin2 == '') { alert('주민등록번호 뒷자리가 없습니다.'); form.jumin2.focus(); form.jumin2.select(); return true; } var i3=0; for (i=0;i

    HTML Event

    - Window Events Only valid in body and frameset elements. - onload script Script to be run when a document loads onunload script Script to be run when a document unloads - Form Element Events Only valid in form elements - onchange script Script to be run when the element changes onsubmit script Script to be run when the form is submitted onreset script Script to be run when the form is reset ons..