From 4a47316814254462d5157d58fb2b2c4db565bf34 Mon Sep 17 00:00:00 2001 From: kyeongrok Date: Fri, 17 Apr 2020 15:27:12 +0900 Subject: [PATCH] done. --- homework4.txt | 6 ++++-- homework4/2019-12472.zip | Bin 0 -> 579 bytes homework4/Source.cpp | 12 ++++++++---- 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 homework4/2019-12472.zip diff --git a/homework4.txt b/homework4.txt index d8160f0..91e6837 100644 --- a/homework4.txt +++ b/homework4.txt @@ -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. \ No newline at end of file +1. What is .gitignore? You can write the answer either in Korean or English. +.git ignore À̶õ Project¿¡ ¿øÇÏÁö ¾Ê´Â Backup FileÀ̳ª Log File , ȤÀº ÄÄÆÄÀÏ µÈ ÆÄÀϵéÀ» Git¿¡¼­ Á¦¿Ü½Ãų¼ö ÀÖ´Â ¼³Á¤ FileÀÌ´Ù. +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. +SSH key¸¦ ÀÌ¿ëÇÏ¸é ºñ¹Ð¹øÈ£ º¸´Ù ´õ ³ôÀº º¸¾È¼öÁØÀ» °¡Áú ¼ö ÀÖÀ¸¸ç ·Î±×ÀÎ ¾øÀ̵µ ¼­¹ö¿¡ Á¢¼ÓÇÒ ¼ö ÀÖ´Ù. diff --git a/homework4/2019-12472.zip b/homework4/2019-12472.zip new file mode 100644 index 0000000000000000000000000000000000000000..145b1ac4000965e46dcd08c1bd507fe351af2ac2 GIT binary patch literal 579 zcmWIWW@Zs#U|`^2*j_a;V86w*11lLB7%G?<7`T9zM2rpO1rjdJ9&e+KP{&Vs3>C3?~ z{zrC~8O(M1e^27;!@YS6_~jx)*p%jnZ2p~b==hei=k1#v&&b5bwl^EkHPW0^VmPO$ zG-+QkzsO1E+Ws8=Am!B7J9~=j{;jw_;lNXgb+@lgIUvN@Tg1_&)pnNgoZ0JJysrCC zYIirVPJ5xf+~>UMYMm!n+p4|fb<-rLoXh0i7UJ62c3CUSi#Lz|4pU9|(_IHxzASpG zztkf&v20?Ds`yFO_sMqaD`S^(c9?~*nyr7O)EwS&b4F+K!u}t7o|Vqzn|bG)p~gSS zr{^tA??`7pGu%AMku`9}RGayG^F&KlJKyapRXD_V-!?0)LR~g$DR0ROs|V?t+v@ft z-j)lVWAQdm;!mBuc=I|lmDc?Ii~-(^O!f@8qErPKsUV;LCXpkU3o6FQAi=;;=~U4m ga*Yv2H?-6z)dKke-mGjOjf_AT1EenklL`X^0Iyl>%>V!Z literal 0 HcmV?d00001 diff --git a/homework4/Source.cpp b/homework4/Source.cpp index ab69b66..08e711a 100644 --- a/homework4/Source.cpp +++ b/homework4/Source.cpp @@ -25,10 +25,14 @@ int main() int* output = new int[arrsize]; cout << "Array output: "; - /*********************************** - Implement the code here! - ************************************/ - + for (int i = 0; i < arrsize; i++){ + output[i] = 0; + for (int j = 0; j < arrsize; j++) { + if (arr[i] > arr[j]) { + output[i] += 1; + } + } + } for (int i = 0; i < arrsize; i++) { cout << output[i] << " "; }