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
4 changes: 3 additions & 1 deletion homework4.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
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.
.gitignore informs git to ignore the files after file has been committed.
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 users need an SSH key pair just becuse they don't have to login with their usernmae and password all time and the key pair acts as an alternate to them.
10 changes: 10 additions & 0 deletions homework4/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ int main()
int* output = new int[arrsize];
cout << "Array output: ";

int p;
for (int i = 0; i < arrsize; i++) {
p = 0;
for (int j = 0; j < arrsize; j++) {
if (arr[i] < arr[j]) {
p++;
}
}
output[i] = p;
}
/***********************************
Implement the code here!
************************************/
Expand Down
1 change: 1 addition & 0 deletions myfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
myfile