본문 바로가기

분류 전체보기146

MS Windows Family Tree 2009. 6. 29.
printf함수에서 특수 문자를 출력하는 초보자의 C printf에서 큰 따옴표(“ ”)를 나타내기 위해서는 \(백스래시)를 붙여서 표현을 한다. printf("강아지는 \"멍!멍!\" 하고 짓는다."); \a 경고음소리 발생 \b 벡스페이스 \f 폼 피드 \n 개행 \t 수평탭 \v 수직탭 \\ 백슬래시 \‘ 작은 따옴표 \“ 큰 따옴표 2009. 6. 28.
두개의 double형 실수를 받아 사칙연산의 결과를 출력하는 초보자의 C /* 두개의 실수를 받아 사칙연산의 결과를 출력 문제 출처 : 열혈강의 C 프로그래밍 */ #include main(void) { double a,b,c,d,e,f; printf("두개의 정수를 입력하시오\n"); scanf("%lf %lf",&a,&b); c = a - b; d = a + b; e = a * b; f = a / b; printf("%lf - %lf 의 값은 %lf 입니다.\n", a, b, c); printf("%lf + %lf 의 값은 %lf 입니다.\n", a, b, d); printf("%lf * %lf 의 값은 %lf 입니다.\n", a, b, e); printf("%lf / %lf 의 값은 %lf 입니다.\n", a, b, f); return 0; } 2009. 6. 28.
Amazing grace.... Amazing grace! how sweet the sound That sav'd a wretch like me! I once was lost, but now am found, Was blind, but now I see. 'Twas grace that taught my heart to fear, And grace my fears reliev'd; How precious did that grace appear, The hour I first believ'd! Thro' many dangers, toils and snares, I have already come; 'Tis grace has brought me safe thus far, And grace will lead me home. The Lord h.. 2009. 6. 28.