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
6 changes: 5 additions & 1 deletion homework4.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
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.
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�� �̿��� �� ����ҿ� ������ ���ε��ؾ� �� �ʿ䰡 �ִ�. �̶� ���ɾ�δ� git push��
�̿������� �� �������� ����Ҹ� ������ ������ Ȯ���ؾ� �Ѵ�. �̶� github info ��� SSH key�� �̿��ϴ� ����
����ҿ� ������ ������ ���̵�� ��й�ȣ�� �Է����� �ʾƵ� �ǹǷ� https ��ĺ��� �� �����ϴٴ� ������ �ִ�.
10 changes: 10 additions & 0 deletions homework4/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ int main()
cout << arr[i] << " ";
}
cout << endl;


//Given the int array arr, generate another int array output.
//whose element indiciates how many elements in arr is smaller than arr[i].
Expand All @@ -24,6 +25,15 @@ int main()

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

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