it

it/programming

Date 객체의 메소드 실습

getFullYear() 연도, 예를들어 2013 getMonth() 월, 0부터 11까지의 숫자로 월을 반환. 0은 1월, 11은 12월을 뜻한다. getDate() 일, 1(1일)에서 31(31일)사이의 값을 리턴한다. getDay() 요일, 0(일요일)에서 6(토요일)사이의 값을 리턴한다. getHours() 시간, 24시간제의 시(0에서 23까지의 숫자). 예를 들어, 오후 11시는 23이다. getMinutes() 분, 0에서 59까지의 숫자로 리턴한다. getSeconds() 초, 0에서 59까지의 숫자로 리턴한다. [과제 1] [과제 2] [과제 3] 웹프밍 과제 1 2 3

it/programming

13.11.21 영어도서부 홈페이지 index

DB 연동만 하면 index는 완성

it/programming

13.11.09 영어도서부 웹 디자인 재시작

main, book, profile /htmlmainstyle, bookstyle, profilestyle, style /css

it/programming

CSS 스타일태그 들의 우선순위

연산자에서의 곱연산(×), 합연산(+), 차연산(-), 분연산(÷) 의 곱ㆍ분연산 우선조건 이나논리연산자의 && || !! 처럼 CSS에도 우선순위가 있다. 그럼 우선 CSS의 적용 우선 순위를 알아보자 . 0. !importantex) red { color : red !important; } 1. Style : style="color:red;"ex) 2. ID : #type { color: red; }ex) #red { color:red; } 3. class : .contents { color:red; }ex) .red { color:red; } 4. 조건 : P B { color:red; }ex) red .color { color:red; } 5. 타입 : B { color:red; }ex) red ..

it/programming

[javascript] 배경색, 글자색 바꾸기

배경색 바꿀때 document.bgColor="색" 글자색 바꿀때 document.fgColor="색" function color(num) { switch(num) { case 1: document.bgColor="blue"; document.fgColor="red"; break; case 2: document.bgColor="black"; document.fgColor="white"; break; case 3: document.bgColor="white"; document.fgColor="black"; break; } } 블로그 기본 세팅을 하양배경으로 굳혀놨기때문에 여기선 글자색만 적용됩니다. 개인 블로그나 웹페이지에서 실험해보세요 ㅎ

it/programming

[C++] 비제네르(Vigenere) 암ㆍ복호화 프로그램

#include #include #include void space(){system("cls");printf("\n\n\n\t\t");} void main() { int i=0, j=0, keys=0, strs=0, select=0; char str[100] ={0,}; char key[100]={0,}; space(); printf("평문 또는 암호문을 입력하세요 .\n\t> "); gets(str); space(); printf("암호문은 1번 복호는 2번 : "); scanf("%d",&select); space(); printf("키 값입력 : "); scanf("%s",key); strs= strlen(str); keys= strlen(key); for(i=0;i='a')&&(str[i]

it/programming

[java] Math 메소드를 활용한 가위바위보

import java.util.Scanner; class RSP { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int user=0, computer=0; String User=null, Computer = null; System.out.println("가위 바위 보 프로그램입니다."); while(user!=5) { System.out.println("\n가위 바위 보 !(1:가위 2:바위 3:보), 종료하려면 Space"); user=sc.nextInt(); computer=(int)(Math.random()*4); switch(user){ case 1:User="가위";break; case 2:User="바위..

it/programming

[C++] ASCII 코드를 이용한 간단한 암호화, 복호화

파일 : #include #include #include char ch; void encrypt(int key); void decoding(int key); void main() { main: int key; printf("\n\tKEY 값을 입력해주세요(정수값) : "); scanf("%d",&key); if(key>25||key=97&&ch122) ch=(ch+key)-26; else ch+=key; } else if(ch>=65&&ch90) ch=(ch+key)-26; else ch+=key; } else continue; putch(ch); } system("cls"); printf("프로그램을 종료합니다.\n"); } void decoding(int key) { system("cls"); pri..

반응형
훈솔
'it' 카테고리의 글 목록 (9 Page)