Contents
3.1.2. ¶
- 키하
- Compile?
- ?
- C Java C++
-> 1110010 (AND) ()
C (high level )
"hello"
#include ----- => source=code
coding
"hello"
#include ----- => source=code
coding
3.2.4. ¶
- 했 할 . ㅋㅋㅋ
1.int a=10,b=12,temp; a b , b a .
//힌트!!
#include <stdio.h>
int main(){
int a=10,b=12,temp;
//
printf("%d %d",a,b);
// 12 10 ?
return 0;// .
}
2.형 , int, float,char,double 해 합.( ~
)
3. 하 해, 확해.
)3. 하 해, 확해.
#include <stdio.h>
int main(){
int a=21,b=2,c;
a=a*b;
c=a+b;
printf("하, . 1+3=%d",c+b);
return 0;
}
4.Compile ? 하 한 해 .
3.2.5. ¶
( compile High level language , 하 Machine language() 하 하 합.-
- 화.... 1 행하 했. ㅠㅠㅠ 퉁 해할 . ㅠㅠ ~ ! ㅋㅋ + ㅋㅋ -태
3.3.3. ¶
- %d, %c, 형, 향, if-else,scanf,printf, else if
#include <stdio.h>
int main(){
char a='d';
int b;
char e=a;
printf("%c",e);
return 0;
}
?
- 해
- 180 크 , . 164 , 171 , 187 .
- 180 크 , . 164 , 171 , 187 .
#include <stdio.h>
int main(){
int height;
scanf("%d",&height);
if(164==height) printf("");
else if(171==height) printf("");
else if(187==height) printf("");
....
return 0;
}
화
#include <stdio.h>
int main()
{
int a=164, height;
scanf("%d",&height);
if(164==height) {
printf(" ");
}
if (171==height){
printf("");
}else if(187==height){
printf("");
}else if(height<180){
printf("");
}else{
printf("");
}
return 0;
}
3.3.4. ¶
1 2 하 택해 하
1. (형, %d, %c, 향, if-else, scanf, printf, else if, ==, =, +=,>) 해. 호 해 . 해 , 한 해 한 해한 형태 . 히 A4 페 ~.
2-2.char형 통해 printf("%c%c%c%c%c",????); Woori 합. jereneal20@.com .
1. (형, %d, %c, 향, if-else, scanf, printf, else if, ==, =, +=,>) 해. 호 해 . 해 , 한 해 한 해한 형태 . 히 A4 페 ~.
- 퓨 해 , . 퓨 하 jereneal20@.com .
2-2.char형 통해 printf("%c%c%c%c%c",????); Woori 합. jereneal20@.com .
- 테 . 한 하 크해 .^^
- 하 합~
3.3.5. ¶
- 6p 했. if else if, temp, scanf, printf 해 . scanf 헷 & 확히 했. if 해. 호 . ... ㅎㅎㅎㅎㅎ -화
- 태형 해 printf scanf 형 temp if else if 함 . 헷 , 훈하 한. c . 하 했, 키 해하 ㅋㅋ -
- 학 . ㅋㅋ -태
- 학 . ㅋㅋ -태
- . ㅋㅋ 해 ..ㅋㅋ 힘. 표 하 하 ..... ㅋㅋ -
3.4.4. ¶
- : %d
- 행
- 행 ------ row
- \n
- 행 ------ row
- Linux - Ubuntu
- cd change directory
- ls
- gcc
- cd change directory
#include <stdio.h>
int main(){
int a=2;
a+=3; // a=a+3;
return 0;
}
- (2!=3) =>
- ASCII Code 키 => char
#include <stdio.h>
int main(){
char a='a',c='d';
c=a+1;
printf("%c",c);
return 0;
}
?
switch(height){
case 171:
printf("");
case 187:
printf("");
default:
printf(" 키 ");
}
한 키 확
- a++;, ++a;
for(i=0;i<=100;i++){
for(j=0;j<100;j++)
printf("%d\n",i);
}
- for -> 1243 243 243
- Linux, switch, gcc, while, for.
3.4.5. ¶
- 하 4 8 하 합.
- jereneal20@.com 해~
- jereneal20@.com 해~
- 통 1: 하 .
1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 3 6 9 12 15 18 21 24 27 30 . . .
- 통 2: C .
- : 해한 하 .
- (5 5-4-3-2-1 형태 , 4 4-3-2-1 .)
- 하 ! ㅋㅋ
- (5 5-4-3-2-1 형태 , 4 4-3-2-1 .)
*****
****
***
**
*
- 화, : 해 while for 해 .
1112111 1112111 1112111 3333333 1112111 1112111 1112111
- 해.
3.6.3. ¶
- 함 하. scope ( , ), .
- 화 함 하.
- 화 함 하.
#include <stdio.h>
int function(int fa,int fb);
int funct(int fa,int fb);
int main()
{
int a,j,b;
a=10;
b=12;
for(j=0;j<5;j++){
a+=function(a,b);
}
}
int funct(int fa,int fb)
{
return fa+1;
}
int function(int fa,int fb)
{
fa=funct(fa,fb);
printf("%d %d\n",fa,fb);
return 0;
}
3.6.5. ¶
- 함 . int main() 함 함 한 . 힘 해 . 하 해 하 태형 합
-
- 하 ㅇㅅㅇ ㅋㅋ - 태
- - 함 해 . 함 ㅠㅠ 해 할 ㅠㅠㅠ do while << 도 배웠는데 <<할 때 2진수까지 생각해야해서 화났다.
- c ...-화
- 하 ㅇㅅㅇ ㅋㅋ - 태
3.7.2. IceBreaking ¶
- IceBreaking 험 -_-;;
3.7.3. ¶
- 2010 험 , .
- 허 ppt 한 .
- int main( void ) - main indicate that main is a program building block called a function
- printf,\n,\t,\a,\\,\",return 0; in main,compile, link, scanf, int ==> variables, c=a+b;, %d, + => operator, %,if, ==, !=, >=, else, sequential execution, for, ab:c, total variable, counter variable, garbage value, (int), , ++a a++ pre/post in/decrement operator, math.h // pow,%21.2d, case switch, break, continue, logical operator || && ! .
- int main( void ) - main indicate that main is a program building block called a function
3.8.2. IceBreaking ¶
- 험 ?!












