'C++PrimerPlus' 태그의 글 목록 — Archive

C++PrimerPlus

Projects

[C++] C++ Primer Plus 6th Programming Exercises (Chapter 3)

Programming Exercises (C++ Primer Plus 6th, pp.129-130.) 1. Write a short program that asks for your height in integer inches and then converts your height to feet and inches. Have the program use the underscore character to indicate where to type the response. Also use a const symbolic constant to represent the conversion factor. 키를 정수형 인치 단위로 묻고 그 값을 피트와 인치 단위로 변환하는 짧은 프로그램을 작성하라. 입력해야 할 곳을 사용..

Projects

[C++] C++ Primer Plus 6th Programming Exercises (Chapter 2)

Programming Exercises (C++ Primer Plus 6th, pp.69-70.) 1. Write a C++ program that displays your name and address (or if you value your privacy,a fictitious name and address.) 이름과 주소를 출력하는 C++ 프로그램을 작성하라. (개인 정보를 소중히 생각한다면, 허구의 이름과 주소를 이용하라.) Answer. #include using namespace std; int main(){ cout

Projects

[C++] C++ Primer Plus 6th Chapter Review (Chapter 3)

Chapter Review (C++ Primer Plus 6th, pp.126-130.) 1. Why does C++ have more than one integer type? C++는 왜 여러 개의 정수형을 제공하는가? Answer. 시스템의 메모리를 효율적으로 사용하기 위한 수단으로써 여러가지 정수형을 이용할 수 있다. 특히, int type은 대부분의 시스템에서 다른 data type보다 빠르고 원활하게 처리된다. 2. Declare variables matching the following descriptions: 다음 서술과 일치하는 변수들을 선언하라: a. A short integer with the value 80 값이 80인 short형 정수 b. An unsigned int integer..

Projects

[C++] C++ Primer Plus 6th Chapter Review (Chapter 2)

Chapter Review (C++ Primer Plus 6th, pp.66-67.) 1. What are the modules of C++ programs called? C++ 프로그램을 구성하는 모듈을 무엇이라 부르는가? Answer. 함수 2. What does the following preprocessor directive do? 다음과 같은 전처리 지사자가 하는 역할은 무엇인가? #include Answer. "iostream" 헤더 파일을 현재 작성중인 프로그램 파일에 포함시킨다. 3. What does the following statement do? 다음과 같은 구문이 하는 역할은 무엇인가? using namespace std; Answer. 위 구문이 정의된 범위내에서, 이름공간 "st..

lww7438
'C++PrimerPlus' 태그의 글 목록