Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

새싹교실/2011/學高/5회차: Difference between revisions

From ZeroWiki
imported>rlatpdud302
No edit summary
imported>yjh0817
No edit summary
Line 2: Line 2:


= 과제 =
= 과제 =
* 추후공개
* 다음 소스의 결과값을 예상하라
#include<stdio.h>
int main()
{
  int a=1,b=2,c=3,d=4,e=5;
  printf("%d\n",(++a)+(b++)*(c+d)%e);
  return 0;
}
 
* 다음 bitwise operation을 수행하라
** 0110 0101 ^ 1001 1010
** 1010 1101 & 1010 1010
** 1010 1111 | 1010 1001
 
* 우와, 쉽다


= 2011년 4월 4일 다섯째 시간 =
= 2011년 4월 4일 다섯째 시간 =
== 선생님: 윤종하 ==
== 선생님: 윤종하 ==
=== 가르친 내용(fact) ===
=== 가르친 내용(fact) ===
* redirection: input: <, output: >
* assignment operator: == 이놈과 비슷하니까 조심하세요
* arithmetic operator(이거 모르면 초등학교로 돌아가세요)
* increment/decrement, postfix/prefix: 이거 모르면 곧바로 질문합니다. 저 자는데 깨워도 되요(물론 ~~~안~~~못 받겠지만)
* shorthand operator (arithmetic operator + assignment operator)
* operator precedence/associativity
* bitwise operator


=== 자기 반성 및 수정할 점(feeling/finds) ===
=== 자기 반성 및 수정할 점(feeling/finds) ===
* 진도 계획을 잘못 세웠습니다. 다음부터는 작작 나가야겠습니다.





Revision as of 12:58, 4 April 2011

과제

  • 다음 소스의 결과값을 예상하라
#include<stdio.h>

int main()
{
 int a=1,b=2,c=3,d=4,e=5;
 printf("%d\n",(++a)+(b++)*(c+d)%e);
 return 0;
}
  • 다음 bitwise operation을 수행하라
    • 0110 0101 ^ 1001 1010
    • 1010 1101 & 1010 1010
    • 1010 1111 | 1010 1001
  • 우와, 쉽다

2011년 4월 4일 다섯째 시간

선생님: 윤종하

가르친 내용(fact)

  • redirection: input: <, output: >
  • assignment operator: == 이놈과 비슷하니까 조심하세요
  • arithmetic operator(이거 모르면 초등학교로 돌아가세요)
  • increment/decrement, postfix/prefix: 이거 모르면 곧바로 질문합니다. 저 자는데 깨워도 되요(물론 ~~~안~~~못 받겠지만)
  • shorthand operator (arithmetic operator + assignment operator)
  • operator precedence/associativity
  • bitwise operator

자기 반성 및 수정할 점(feeling/finds)

  • 진도 계획을 잘못 세웠습니다. 다음부터는 작작 나가야겠습니다.


학생: 김세영

배운 내용(fact)

operator(연산자)에 대해 배웠습니다. -expression과 statements의차이 -assignment operater (=)이 같다는 의미가 아니라는것. -increment operator ++i는 expression이 실행되기 전, i++는 후에 1을더해준다 -decrement operator는 위와 동일하지만 1씩 빼준다 -operator precedence(우선순위) << 이건 초등학교때 배운거. 추가된 내용은 %(모듈러스?)는 *,/와 우선순위가 같다정도? -bitwise도 배웠는데 다시 하려니까 잘모르겠네요 ㅜㅜ

자기 반성 및 고칠 점(feeling/finds)

새싹교실하면서 이렇게 복습 열심히 한건 처음인 것 같습니다.. 앞으로는 더 열심히하겠습니다 ~ 그리고 새싹 선생님 열정적으로 가르쳐주셔서 감사해요 ㅋㅋㅋ

과제 정답

과제 아직 모르는뎅..

학생: 이름

배운 내용(fact)

자기 반성 및 고칠 점(feeling/finds)

과제 정답