diff --git a/ASD_Task_1.depend b/ASD_Task_1.depend index f6e48bd..4020de0 100644 --- a/ASD_Task_1.depend +++ b/ASD_Task_1.depend @@ -7,3 +7,6 @@ 1516168119 c:\users\andityaarifianto\documents\github\asd_task_1\asd_task_1.h +1579880852 source:c:\users\lenovo\documents\github\asd_task_1\main.cpp + + diff --git a/bin/Debug/ASD_Task_1.exe b/bin/Debug/ASD_Task_1.exe index bb9d49d..b5094f7 100644 Binary files a/bin/Debug/ASD_Task_1.exe and b/bin/Debug/ASD_Task_1.exe differ diff --git a/main b/main new file mode 100755 index 0000000..7d1f29e Binary files /dev/null and b/main differ diff --git a/main.cpp b/main.cpp index f439d60..ba79beb 100644 --- a/main.cpp +++ b/main.cpp @@ -6,7 +6,7 @@ using namespace std; /** WRITE DOWN YOUR INFORMATION HERE */ string name = ""; // put your name here string ID = ""; // put your student id here -int group_id = 0; // your Group Number here (1-8) +int group_id = 5; // your Group Number here (1-8) /** FUNCTIONS LIST, DO NOT MODIFY THESE */ @@ -24,17 +24,21 @@ void view_data_2(int arr[], int n); void check_group(int id); -int main() { +int main() +{ cout<<"===================== TASK 1 ====================="<0 && group_id<9) { + if( group_id>0 && group_id<9) + { check_group(group_id); cout<= 0; i--) + { + cout << arr[i] << ","; + } + cout << endl; //----------------------- + /** + aku ngerjain bagian ini + */ } -void check_group(int id) { +void check_group(int id) +{ cout<<"Checking Work for Group "<