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
5 changes: 4 additions & 1 deletion homework4.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
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.
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. project에 원하지 않는 backup file이나 log file, 또는 컴파일된 파일들을 git에서 제외시킬 수 있는 설정file이다.
2. ssh keypair는 하나의 private key와 public key로 이루어져있다. 그리고 이 한 쌍은 서로 암호학적으로 연결되어있어 public key에 대응하는 private key를 확인함으로써 사용자를 인증할 수 있다. 따라서 보안적인 측면에서 ssh key pair를 사용해야 한다.
9 changes: 9 additions & 0 deletions homework4/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ int main()

int* output = new int[arrsize];
cout << "Array output: ";
for (int i = 0; i < arrsize; i++) {
int x = 0;
for (int j = 0; j < arrsize; j++) {
if (arr[i] > arr[j]) {
x++;
}
}
output[i] = x;
}

/***********************************
Implement the code here!
Expand Down