Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions homework4.txt
Original file line number Diff line number Diff line change
@@ -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.
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 접속을 시도하면 로컬 머신과 원격 머신의 비공개키를 비교하여 일치 여부를 확인합니다.
12 changes: 9 additions & 3 deletions homework4/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]<arr[i]) {
num++;
}
}
output[i] = num;
}

for (int i = 0; i < arrsize; i++) {
cout << output[i] << " ";
Expand Down