티스토리 툴바



Zombies ate my phone

2011/11/10 17:38

 

게임 열기


이동 : 방향키 또는 W,A,S,D
공격 : 마우스클릭

'Flash Games' 카테고리의 다른 글

Zombies ate my phone  (3) 2011/11/10
The Last Defense  (0) 2010/01/01
Mushroom Madness  (0) 2010/01/01
Biolabs Outbreak - 세균죽이기  (1) 2009/09/30
마그네틱 타워(자석쌓기)  (0) 2009/09/30

Trackback


Trackback Address :: http://mydb.tistory.com/trackback/146 관련글 쓰기

Comments

  1. Favicon of http://maigrirdescuisses.blog4ever.com comment mincir des cuisses vite 2011/12/08 09:09

    아주 좋아요 ! 좋은 주신 것이다 나 페이 스북 을 사랑하지만, 찾을 수 없습니다 버튼을 .

    perm. |  mod/del. |  reply.
  2. Favicon of http://regime-rapide.weebly.com/ regime efficace 2011/12/08 12:18

    당신의 구조 찾기 주제의

    perm. |  mod/del. |  reply.
  3. Favicon of http://comment-reconquerir-son-ex.net comment sauver mon couple 2011/12/08 15:26

    게시물 제가 볼 것이라는 주 ! 이 사이트를 읽을 .

    perm. |  mod/del. |  reply.

What's on your mind?

댓글 입력 폼

Objective-C 데이터형, 표현식, 반복문, 조건문

2011/05/12 02:27
출처 : 상상소프트님 블로그 [http://powersilk.egloos.com/2527828]

1. 기본 데이터형
 
 형 상수 예  NSLog 문자 
 char  'a', '\n'  %c
 short int    %hi, %hx, %ho
 unsigned short int    %hi, %hx, %ho 
 int  12, -97, 0xFFE0, 0177  %i, %x, %o
 unsigned int  12u, 100u, 0XFFu  %u, %x, %o
 long int  12L, -2001, 0xffffL  %li, %lx, %lo
 unsigned long int  12UL, 100ul, 0xffeeUL  %lu, %lx, %lo
 long long int  0xe5e5e5e5LL, 500ll  %lli, %llx, %llo
 unsigned long long int  12ull, 0xffeeULL  %llu, %llx, %llo
 float

 12.34f, 3.1e-5f,

0x1.5p10, 0x1P-1

 %f, %e, %g, %a
 double  12.34, 3.1e-5, 0x.1p3  %f, %e, %g, %a
 long double  12.341, 3.1e-5l  %Lf, %Le, %Lg
 id  nill  %p
 
   - NSLog 문자
c : character
h : short
i : int
x : hexa
o : octal
l : long
f : float
e :exponential
 
2. 산술 표현식
- 기본적으로 C/C++의 산술 표현식과 동일
   result = a+b;
   result += a;
   result = a % b;
 
- 형변환 방법 : C/C++의 방법과 동일
  int a = 10;
  float b;
  b = (float) a;
 
3. 비트 연산자
- C/C++과 동일
 
  & : 논리곱(AND)
  | : 논리합(OR)
  ^ : 배타적 논리합(XOR)
  ~ : 1의 보수
  << :  왼쪽 쉬프트
  >> : 오른쪽 쉬프트
 4. 반복문
- C/C++과 동일 
- for문
 
for(init_expression; loop_condition; loop_expression)
    program statement;
 
- while문
 
while(expression)
    program statement;
 
 
- do문
do
    program statement;
while(expression);
 
- break문 : 반복문 실행 중 어떤 조건을 만족하면 반복문을 빠져나온다.
- continue문 : continue문 이후의 명령문은 건너뛰고 반복문의 맨 앞으로 되돌아 간다.
 
 
5. 조건문
- C/C++ 과 동일
 
- if문 : expression이 참이면 해당되는 명령문 수행
 
if(expression)
    program statement;
 
 
- if ~ else 문
if(expression)            // expression이 참일 때
    program statement 1;
else                        // expresion이 거짓일 때
    program statement 2;
 
 
- switch 문
switch(expression){
case value1 :
    program statements 1;
    break;
case value2 :
    program statements 2;
    break;
...
default:
    program statements n;
    break;
}
 
 
6. 키보드 입력
- C/C++과 동일함
- scanf(...);
int n;
scanf("%i", &n);


Trackback


Trackback Address :: http://mydb.tistory.com/trackback/145 관련글 쓰기

Comments

What's on your mind?

댓글 입력 폼