010. 배열 배우기([크기])

jychan99·2021년 10월 2일
0

code

 #include <iostream>

using namespace std;



int main()

{

	//배열역시 C와 동일하다

	const int ARRAYSIZE = 3;



	int founding[ARRAYSIZE];

	founding[0] = 918;

	founding[1] = 1392;

	founding[2] = 1948;



	cout << "고려 건국 연도 : " << founding[0] << endl;

	cout << "조선 건국 연도 : " << founding[1] << endl;

	cout << "한국 건국 연도 : " << founding[2] << endl;



	return 0;

}
profile
내가 지금 두려워 하고 있는 일이 바로 내가 지금 해야 할 일이다. 🐍

0개의 댓글

관련 채용 정보