From aa7a4d90cfab9456a4b6f2ea55ac53727777c6cb Mon Sep 17 00:00:00 2001 From: HowonLee Date: Thu, 16 Apr 2020 23:23:50 +0900 Subject: [PATCH 1/4] howon aditted --- homework4/Source.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/homework4/Source.cpp b/homework4/Source.cpp index ab69b66..55ffebe 100644 --- a/homework4/Source.cpp +++ b/homework4/Source.cpp @@ -24,7 +24,17 @@ int main() int* output = new int[arrsize]; cout << "Array output: "; - + for (int i = 0; i < arrsize; i++) + { + int count = 0; + for (int j = 0; j < arrsize; j++) + { + if (arr[i] > arr[j]) { + count += 1; + } + } + output[i] = count; + } /*********************************** Implement the code here! ************************************/ @@ -33,4 +43,4 @@ int main() cout << output[i] << " "; } return 0; -} \ No newline at end of file +} From ae5d5b597614f47de4fe5466b5053c1f7535cc39 Mon Sep 17 00:00:00 2001 From: HowonLee Date: Thu, 16 Apr 2020 23:26:00 +0900 Subject: [PATCH 2/4] howon editted --- homework.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 homework.txt diff --git a/homework.txt b/homework.txt new file mode 100644 index 0000000..325b1ee --- /dev/null +++ b/homework.txt @@ -0,0 +1,2 @@ +1. gitignore는 git에서 특정 파일이나 디렉토리를 관리 대상에서제외시킬 수 있는 설정파일이다. +2. SSH key는 서버에 접속할 때 비밀번호 대신 특정한 key를 제출하는 방식이다. SSH key는 private key와 public key가 있는데 SSH 접속을 시도하면 local machine에서 private key와 public key가 서로 매칭되는지 확인한다. SSH key를 통해서 접속하는 방식은 private key가 외부에 노출되지 않기 때문에 github account information을 사용할 때보다 높은 보안수준을 유지할 수 있다. From ddceccb6a28136c8ef2f5ff9eefe5a93c392e167 Mon Sep 17 00:00:00 2001 From: HowonLee Date: Thu, 16 Apr 2020 23:34:40 +0900 Subject: [PATCH 3/4] howon edited --- homework.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homework.txt b/homework.txt index 325b1ee..119f452 100644 --- a/homework.txt +++ b/homework.txt @@ -1,2 +1,2 @@ 1. gitignore는 git에서 특정 파일이나 디렉토리를 관리 대상에서제외시킬 수 있는 설정파일이다. -2. SSH key는 서버에 접속할 때 비밀번호 대신 특정한 key를 제출하는 방식이다. SSH key는 private key와 public key가 있는데 SSH 접속을 시도하면 local machine에서 private key와 public key가 서로 매칭되는지 확인한다. SSH key를 통해서 접속하는 방식은 private key가 외부에 노출되지 않기 때문에 github account information을 사용할 때보다 높은 보안수준을 유지할 수 있다. +2. SSH key는 서버에 접속할 때 비밀번호 대신 특정한 key를 제출하는 방식이다. SSH key는 private key와 public key가 있는데 SSH 접속을 시도하면 local machine에서 private key와 public key가 서로 매칭되는지 확인한다. SSH key를 통해서 접속하는 방식은 private key가 외부에 노출되지 않기 때문에 github account information을 사용할 때보다 높은 보안수준을 유지할 수 있다는 장점이 있다. From 5202326d712f76b51d1f592e9fad2b0580d14664 Mon Sep 17 00:00:00 2001 From: HowonLee Date: Thu, 16 Apr 2020 23:35:59 +0900 Subject: [PATCH 4/4] howon edited --- homework4/Source.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/homework4/Source.cpp b/homework4/Source.cpp index 55ffebe..72b45fe 100644 --- a/homework4/Source.cpp +++ b/homework4/Source.cpp @@ -35,9 +35,6 @@ int main() } output[i] = count; } - /*********************************** - Implement the code here! - ************************************/ for (int i = 0; i < arrsize; i++) { cout << output[i] << " ";