diff --git a/homework4.txt b/homework4.txt index d8160f0..19971ee 100644 --- a/homework4.txt +++ b/homework4.txt @@ -1,2 +1,7 @@ -1. What is .gitignore? You can write the answer either in Korean or English. -2. Why do Github users need an SSH key pair? (Users can use either SSH key pair or github account info.) Please write down a brief explanation of SSH key. \ No newline at end of file +1. What is .gitignore? You can write the answer either in Korean or English. +Git에서 특정 파일 혹은 디렉토리를 관리 대상에서 제외할 때 사용하는 파일을 말합니다. 이 파일 안에 기입된 내용들은 Git에서 관리하지 않는 것으로 제외할 수 있습니다. + +2. Why do Github users need an SSH key pair? (Users can use either SSH key pair or github account info.) Please write down a brief explanation of SSH key. +프로젝트에 접근하는 유저가 github의 유저 본인이 맞는지 검증하기 위해 사용합니다. + +공개 키와 비공개 키로 만든 뒤, 로컬 머신에 비공개 키를, 리모트 머신에 공개 키를 위치시킵니다. SSH 접속을 시도하면 로컬 머신과 원격 머신의 비공개키를 비교하여 일치 여부를 확인합니다. diff --git a/homework4/Source.cpp b/homework4/Source.cpp index ab69b66..98723e0 100644 --- a/homework4/Source.cpp +++ b/homework4/Source.cpp @@ -25,9 +25,15 @@ int main() int* output = new int[arrsize]; cout << "Array output: "; - /*********************************** - Implement the code here! - ************************************/ + for (int i = 0; i < arrsize; i++) { + int num = 0; + for (int j = 0; j < arrsize; j++) { + if (arr[j]