«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Archives
관리 메뉴

printf("ho_tari\n");

add 본문

C++

add

호타리 2023. 9. 5. 09:26
#include <iostream>



int main()

{

	int a, b;

	

	std::cin >> a >> b;     // cin.operator >> (a)

	

	std::cout << a + b << std::endl;

	

	return 0;

}

 

<compile 결과>

'C++' 카테고리의 다른 글

Complex (istream 입력 함수)  (0) 2023.09.05
Rational3 (istream 입력 함수)  (0) 2023.09.05
Rational (라이브러리)  (0) 2023.09.05
Rational4 (증감연산자)  (0) 2023.09.04
Complex5 (타입캐스팅)  (0) 2023.09.04