기초를 탄탄히 세워주는 C++ 프로그래밍 입문 1장 연습문제
IT/C, C++ 2021. 1. 6. 18:58

1장은 C언어 복습이다. 표준 입출력부터 포인터, 구조체, 컴파일러 사용 방법까지 배운다. 1.1 #include int main() { double x, y; printf("2개의 실수 입력 : "); scanf("%lf %lf", &x, &y); printf("%lf + %lf = %lf \n", x, y, x + y); printf("%lf - %lf = %lf \n", x, y, x - y); printf("%lf * %lf = %lf \n", x, y, x * y); printf("%lf / %lf = %lf \n", x, y, x / y);} 1.2 #include int main() { int x, y; printf("2개의 정수 입력 : "); scanf("%d %d", &x, &y); f..