목록분류 전체보기 (16)
Taek
1. a) " 86,1040" 86을 4칸 띄우고 출력한다. %m.pf에서 m은 출력할 최소너비이고 p는 최소 출력할 문자 개수이다. 최소 너비는 모자르면 빈 칸으로, 최소 문자는 0으로 출력하게 된다. b) " 3.02530e+1"로 출력된다. %m.pe에서 m은 f와 똑같고 p는 소수점 이후에 몇 개가 출력되는지를 의미한다. c) "83.1620"%m.pf에서 m과 p는 e와 같은 의미이다. 단, f는 지수 형식으로 출력되지 않는다. d) "1e-06"%m.pg에서 p는 '수의 크기'에 따라 지수형식이나 고정 소수점수로 표현한다. p에 따라 표시할 개수가 달라진다. 2. a) printf("%-8.1e", x);b) printf("%10.6e", x);c) printf("%-8.3f", x);d) p..
1. #include int main(void){ printf(" *\n"); printf(" *\n"); printf(" *\n"); printf("* *\n"); printf(" * *\n"); printf(" *\n"); return 0;} 2. #include int main(void){ int radius = 10; float volume = ( ( radius * radius * radius * 3.14) * (4.0f / 3.0f) ); printf("Volume of sphere with 10-meter radius is %f\n", volume); return 0; } 3. #include int main(void){ int radius; printf("Enter the radius of..
1. main 함수는 int형을 반환하는 함수이다. 따라서 return 0;를 추가해야 한다.단, C99에는 main 함수에서 반환하지 않아도 IDE에 따라 오류가 나지 않는 경우도 있다. 2. a) directives : #include statements : printf("Parkinson's Law : \nWork expands so as to ");printf("fill the time\n");printf("available for its completion.\n");return 0; b) Parkinson's Law:Work expands so as to fill the timeavailable for its completion. 3. #include int main(void){int heigh..
모든 내용은 Bjarne Stroustrup의 "Programming Principles and Practice Using C++"에 있으며, 여기엔 Drill과 Exercises에서 나온 제 소스를 공개합니다.
Database System Concepts - Six Edition 저자 : Abaraham Silberschatz, Henry F.Korth, S.Sudarshan 연습문제 풀이만 올릴 예정입니다.