atye 0 Report post Posted March 22, 2008 (edited) assalamualaikum..nak mintak tolong otai c++ kt cni yang leh tlg bg idea kt aku untuk wat program ni..aku nk tanye boleh ke wat coding yang mana bile kite masukkan banyak nombor,kemudian programakan baca no yang sama kemudia akan kumpulkan no yang same..contoh ketinggian 10 org student..178,167,145,178,180,175,156,178,145,157kemudian, program akn bace dan listkan no:178 - 3167 - 1145 - 2180 - 1175 - 1156 - 1157 - 1program hanye akn liskan no tanpa pengulangan..cam coding yang aku buat kt bawah, program akn bace semua nombor, pastu akan display jugak jumlah..jadi macam berulang dan serabut..ade sape2 ade idea tak macam mana nak buat supaya pengiraan no yang sama sekali je tanpapengulangan..harap korang dapat membantu..terima kasih...-------------------------------------------------------------------------------------------------------------------------------------------------------------#include<iostream>using namespace std;int main(){ int listNum1[20] , listcount[20], listNum2[20] ; for (int counter = 0; counter < 20; counter ++ ) { cout << " Enter height of students: " ; cin >> listNum1[counter]; } int num, bil; for ( int c = 0; c < 20 ; c++ ) { bil = 0; num = listNum1[c]; for ( int x = 0; x < 20 ; x++ ) if ( num == listNum1[x] ) bil++; listNum2[c] = num; listcount[c] = bil; } cout <<" ************************"<<endl; for ( int y = 0; y < 20; y++) cout << listNum2[y] << " " << listcount[y] << endl; return 0;} Edited March 26, 2008 by atye Quote Share this post Link to post Share on other sites
zeph 1 Report post Posted March 23, 2008 prosessor komputer ni tak sama dgn otak manusia, oleh itu algo anda adalah bagus kalau taknak serabut, sort dulu lepas tu boleh la buat satu loop, tapi sorting algo pun ada loop jugak. Quote Share this post Link to post Share on other sites
atye 0 Report post Posted March 23, 2008 prosessor komputer ni tak sama dgn otak manusia, oleh itu algo anda adalah bagus kalau taknak serabut, sort dulu lepas tu boleh la buat satu loop, tapi sorting algo pun ada loop jugak.owh..gune sort ek..ok trime ksh coz bg idea..aku try sort n kmudian loop..kalau xjadi lg..aku post kt cni lg.. Quote Share this post Link to post Share on other sites
atye 0 Report post Posted March 26, 2008 (edited) salam..em..nk mintak tolong otai2 kt cni cek jap error coding aku ni..aku da msukkan sort..tp ade 3 error la..mgkn aku ade slh..tp sudah puas ku mencari..xjumpe la..ni coding nye...----------------------------------------------------------------------------------------------------------------------------------------#include<iostream>using namespace std;int main(){ int listNum1[20] , listcount[20], listNum2[20] ; for (int count = 0; count < 20; count ++ ) //utk masukkan ketinggian 20 murid sbyk 20 kali { cout << " Enter height of students: " ; cin >> listNum1[count]; //array } void bubble_sort(int array[], int size) { int i,j,flag = 1; int temp; for (i=1; i<=size) && flag; i++) { flag = 0; for (j = 0; j<(size-1); j++) } if (array [j+1] < array[j]) { temp = array[j]; array[j]=array[j+1]; array[j+1] = temp; flag = 1; } } int num, num2; for ( int x = 0; x < 20 ; x++ ) { num2 = 0; num = listNum1[x]; for ( int y = 0; y < 20 ; y++ ) //nk cari height yang sama... if ( num == listNum1[y] ) num2++; listNum2[x] = num; listcount[x] = num2; } cout <<"*******************************************"<< endl; cout << endl; cout << "Height of Pupil's \t Number of Pupil's"<<endl; cout << "_________________ \t _________________"<<endl; for ( int z = 0; z < 20; z++) cout <<"\t"<<listNum2[z] << "\t" <<"\t\t"<<listcount[z] << endl;int main(){ int arrNum[20] = {size} float total = 0.0; bubble_sort(arrNum, 20); for (int x = 0; x<20; x++) { cout<<arrNum[x]<<endl; total = total + arrNum[x]; } cout<<"The average heights of the pupils is " <<total/20<<endl; return 0;}----------------------------------------------------------------------------------------------------------------------------------------------------ni error yg kuar...--------------------Configuration: arr - Win32 Debug--------------------Compiling...arr.cppH:\arr\arr.cpp(16) : error C2601: 'bubble_sort' : local function definitions are illegalH:\arr\arr.cpp(58) : error C2601: 'main' : local function definitions are illegalH:\arr\arr.cpp(73) : fatal error C1004: unexpected end of file foundError executing cl.exe.arr.obj - 3 error(s), 0 warning(s) Edited March 26, 2008 by atye Quote Share this post Link to post Share on other sites
MatchMaker 0 Report post Posted March 26, 2008 mungkin aku dah lupa pasal C++ nisoalan: boleh ke ada lebih dari satu main() dalam satu file?pastu ni error yang aku dapat bila compile guna Dev C++c:\docume~1\user_s~1\my documents\untitled1.cpp: In function `int main()': c:\docume~1\user_s~1\my documents\untitled1.cpp:18: parse error before `{' c:\docume~1\user_s~1\my documents\untitled1.cpp:22: `i' undeclared (first use this function) c:\docume~1\user_s~1\my documents\untitled1.cpp:22: (Each undeclared identifier is reported only once c:\docume~1\user_s~1\my documents\untitled1.cpp:22: for each function it appears in.) c:\docume~1\user_s~1\my documents\untitled1.cpp:22: `size' undeclared (first use this function) c:\docume~1\user_s~1\my documents\untitled1.cpp:22: parse error before `)' c:\docume~1\user_s~1\my documents\untitled1.cpp:24: `flag' undeclared (first use this function) c:\docume~1\user_s~1\my documents\untitled1.cpp:25: `j' undeclared (first use this function) c:\docume~1\user_s~1\my documents\untitled1.cpp:26: parse error before `}' c:\docume~1\user_s~1\my documents\untitled1.cpp:29: `array' undeclared (first use this function) c:\docume~1\user_s~1\my documents\untitled1.cpp:60: parse error before `{' c:\docume~1\user_s~1\my documents\untitled1.cpp: At top level: c:\docume~1\user_s~1\my documents\untitled1.cpp:63: `arrNum' was not declared in this scope c:\docume~1\user_s~1\my documents\untitled1.cpp:63: ANSI C++ forbids declaration `bubble_sort' with no type c:\docume~1\user_s~1\my documents\untitled1.cpp:63: initializer list being treated as compound expression c:\docume~1\user_s~1\my documents\untitled1.cpp:65: parse error before `for' c:\docume~1\user_s~1\my documents\untitled1.cpp:65: parse error before `;' c:\docume~1\user_s~1\my documents\untitled1.cpp:65: syntax error before `++' c:\docume~1\user_s~1\my documents\untitled1.cpp:68: ANSI C++ forbids declaration `total' with no type c:\docume~1\user_s~1\my documents\untitled1.cpp:68: conflicting types for `int total' c:\docume~1\user_s~1\my documents\untitled1.cpp:62: previous declaration as `float total' c:\docume~1\user_s~1\my documents\untitled1.cpp:68: `arrNum' was not declared in this scope c:\docume~1\user_s~1\my documents\untitled1.cpp:68: `x' was not declared in this scope c:\docume~1\user_s~1\my documents\untitled1.cpp:69: parse error before `}' c:\docume~1\user_s~1\my documents\untitled1.cpp:70: syntax error before `<'and aku tgk ada byk syntax error la, for loop nyer block salah, curly bracket tak cukup et cetera. Quote Share this post Link to post Share on other sites
zeph 1 Report post Posted March 26, 2008 kenapa bercelaru sangat coding ko tu? main() function sampai ada dua.well, setakat nak buat sort, kalau guna c++, this codes looks more elegant, isnt it? #include<iostream> #include<vector> #include<algorithm> using namespace std; int main() {     vector<int> vectormarkah;     int markah = 0;     int bil;     int i;     for (int count = 0; count < 5; count ++ ) //utk masukkan ketinggian 20 murid sbyk 20 kali     {         cout << " Enter height of students: ";         cin >> markah;         vectormarkah.push_back(markah);     }     sort (vectormarkah.begin(), vectormarkah.end());     bil = vectormarkah.size();     for (i = 0; i < bil; ++i)     {         cout << vectormarkah[i] << "  ";     }     cout << endl;     return 0; }selebihnya tu, pandai2 la gubah sendiri. Quote Share this post Link to post Share on other sites
atye 0 Report post Posted March 27, 2008 kenapa bercelaru sangat coding ko tu? main() function sampai ada dua.well, setakat nak buat sort, kalau guna c++, this codes looks more elegant, isnt it? em..sori la..sbnrnye aku xpaham sgt nk implement sort dlm array..lectuter aku xajar sal sort nih lg.. so aku tgk tutorial intenet..2je..tu yg jadik tungang langgang tuh..em..ok pape pon, thanks ek..nti aku try phamkn coding ko tu..thanx a lot.. Quote Share this post Link to post Share on other sites
MatchMaker 0 Report post Posted March 27, 2008 tambah sikit Sleep() kat lepas cout << vectormarkah << " ";nampak sikit output dia.ps: aku guna Dev C++ Quote Share this post Link to post Share on other sites
mykk 0 Report post Posted March 28, 2008 #include <iostream> using namespace std; #define size 10 int main() { int num[size] = {178,167,145,178,180,175,156,178,145,157}; int bil[size][2] = {{0,0}}; int i = 0; int count = 0; for(i = 0; i < size; i++) { bool found = false; for(int j = 0; j < count; j++) { if(num[i] == bil[j][0]) { found = true; break; } } if(!found) { bil[count][0] = num[i]; bil[count][1]++; for(int j = i + 1; j < size; j++) { if(num[i] == num[j]) bil[count][1]++; } count++; } } for(i = 0; i < count; i++) { cout<<bil[i][0]<<" - "<<bil[i][1]<<endl; } return 0; } untuk sort dulu rujuk http://forum.putera.com/tanya/t2665.html Quote Share this post Link to post Share on other sites
atye 0 Report post Posted March 28, 2008 wah..terer la korg..xpe la..aku cube lg k..aku nk betul2 phm coding nih..em..aku nk tnye..aku gne ms visual C++ 6.0 ..codingnye ade bze ke gn korg gune dev c++ ni..yela..aku lecturer ajr gne ms visual c++ kn..kne ikut la.. Quote Share this post Link to post Share on other sites
atye 0 Report post Posted April 1, 2008 salam otai2 sekalian.aku dah dapat coding untuk sort..aku gune selection sort..so..skrg ni ade 1 je lg masalah..#include<iostream> using namespace std; const int arrSize = 20; void ArraySort(int *arrHgt, int arrSize); int CalMed(int * arrHgt, int arrSize); int CalMean(int * arrHgt, int arrSize); int main() { cout << "This program will calculate measure height of 20 pupils."<<endl; cout << "From this program, the health visitor will know the average height of"<<endl; cout << "pupils and median height of pupils."<<endl; cout << endl; int arrHeight[arrSize], arrHeight2[arrSize], ListCount[arrSize]; for ( int count = 0; count < arrSize; count++) { cout << "PLEASE ENTER HEIGHT: " ; cin >> arrHeight[count]; } cout<<endl; int arrNum,arrNum2; for (int x = 0; x<arrSize; x++) { arrNum2 = 0; arrNum = arrHeight[x]; for (int y=0; y<arrSize; y++) if (arrNum == arrHeight[y]) arrNum2++; arrHeight2[x]= arrNum; ListCount[x] =arrNum2; } cout << "HEIGHT OF PUPILS \t NUMBERS OF PUPILS" <<endl; cout << "---------------- \t -----------------" <<endl; ArraySort(arrHeight, arrSize); for (int n = 0; n<arrSize; n++) cout<<"\t"<< arrHeight[n]<< "\t"<<"\t\t"<<ListCount[n]<<endl; cout<< endl; cout << "\nTHE AVERAGE (MEAN) HEIGHT OF PUPILS IS " << CalMean(arrHeight,arrSize) << endl; cout << "\nTHE MEDIAN HEIGHT OF PUPILS IS " << CalMed(arrHeight,arrSize) << endl; cout << endl; return 0; } void ArraySort(int *arrHgt, int arrSize) { int x, y, first, temp; for (x = arrSize - 1; x > 0; x--) { first = 0; for (y=1; y<=x; y++) { if (arrHgt[y] > arrHgt[first]) first = y; } temp = arrHgt[first]; //swap arrHgt[first] = arrHgt[x]; arrHgt[x] = temp; } } int CalMed(int * arrHgt, int arrSize) { int mid1,mid2, med; { mid1 = arrSize/2; mid2 = mid1+1; med = (arrHgt[mid1-1] + arrHgt[mid2-1] )/2; } return med; } int CalMean(int * arrHgt, int arrSize) { int sum = 0; for ( int num = 0; num <arrSize; num++) sum += arrHgt[num]; return sum/arrSize; } ok..coding kat ats ni dah display kat output screen..tapi..bile count setiap number yang sama..jumlahnye xsame..contoh..160 --> 3160 --> 1164 --> 2165 --> 1knp..160 jumlahnye x jadi 2 ek?yg lain2 pon same..em..kalau aku letak print screen lg ok kn..tp aku xpandai nak letak..ajar jap..n tolong la tegok2kn code aku tuh..msti aku salah declare lagi..huhu..thnx.. Quote Share this post Link to post Share on other sites
MatchMaker 0 Report post Posted April 2, 2008 banyak logik yang salah.salam sorting, ko cuma sortkan ketinggian, tapi bilangan ketinggian tak disortkan pointing kepada ketinggian.#include<iostream> using namespace std; const int arrSize = 10; //saja buat sepuluh untuk memudahkan aku void ArraySort(int *arrHgt, int *listCount, int arrSize); //tambah satu lagi listCount untuk sort bilangan seiring dengan ketinggian int CalMed(int * arrHgt, int arrSize); int CalMean(int * arrHgt, int arrSize); int main() { cout << "This program will calculate measure height of 10 pupils."<<endl; cout << "From this program, the health visitor will know the average height of"<<endl; cout << "pupils and median height of pupils."<<endl; cout << endl; int arrHeight[arrSize], arrHeight2[arrSize], ListCount[arrSize]; for ( int count = 0; count < arrSize; count++) Â Â Â Â { Â Â Â Â cout << "PLEASE ENTER HEIGHT: "; cin >> arrHeight[count]; Â Â Â Â } Â Â Â Â cout<<endl; int arrNum,arrNum2; for (int x = 0; x<arrSize; x++) Â Â Â Â { Â Â Â Â arrNum2 = 0; Â Â Â Â arrNum = arrHeight[x]; Â Â Â Â for (int y=0; y<arrSize; y++) { Â Â Â Â if (arrNum == arrHeight[y]){ Â Â Â Â arrNum2++; Â Â Â Â arrHeight2[x]= arrNum; Â Â Â Â ListCount[x] =arrNum2; Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â } Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â } Â Â Â Â } cout << "HEIGHT OF PUPILS \t NUMBERS OF PUPILS" <<endl; cout << "---------------- \t -----------------" <<endl; ArraySort(arrHeight2, ListCount, arrSize); //pass arrHeight2 sebab atas tadi dah buat arrHeight2[x]= arrNum; for (int n = 0; n<arrSize; n++){ cout<<"\t"<< arrHeight2[n]<< "\t"<<"\t\t"<<ListCount[n]<<endl; //cout balik arrHeight2 cout<< endl; } cout << "\nTHE AVERAGE (MEAN) HEIGHT OF PUPILS IS " << CalMean(arrHeight,arrSize) << endl; cout << "\nTHE MEDIAN HEIGHT OF PUPILS IS " << CalMed(arrHeight,arrSize) << endl; cout << endl; return 0; } void ArraySort(int *arrHgt, int *listCount, int arrSize) //ambik listCount seperti kat declaration { int x, y, first, temp, tempCount; //tambah variable for (x = arrSize - 1; x > 0; x--) { first = 0; for (y=1; y<=x; y++) { if (arrHgt[y] > arrHgt[first]) first = y; } temp = arrHgt[first]; //swap tempCount = listCount[first]; //untuk susan balik count seiring dengan height arrHgt[first] = arrHgt[x]; listCount[first] = listCount[x]; //sama arrHgt[x] = temp; listCount[x] = tempCount; //sama } } int CalMed(int * arrHgt, int arrSize) { int mid1,mid2, med; { mid1 = arrSize/2; mid2 = mid1+1; med = (arrHgt[mid1-1] + arrHgt[mid2-1] )/2; } return med; } int CalMean(int * arrHgt, int arrSize) { int sum = 0; for ( int num = 0; num <arrSize; num++) sum += arrHgt[num]; return sum/arrSize; } Quote Share this post Link to post Share on other sites
betik 11 Report post Posted April 2, 2008 (edited) ok..coding kat ats ni dah display kat output screen..tapi..bile count setiap number yang sama..jumlahnye xsame..contoh..160 --> 3160 --> 1164 --> 2165 --> 1knp..160 jumlahnye x jadi 2 ek?yg lain2 pon same..em..kalau aku letak print screen lg ok kn..tp aku xpandai nak letak..ajar jap..n tolong la tegok2kn code aku tuh..msti aku salah declare lagi..huhu..thnx..huhu..da lama x guna C++ ni...tp, drpd sekali imbas, aku rasa ko punya c0de perlu dibaiki...huhu..tp utk dptkan apa yg ko nak tu, ko cuma perlu ubah satu perkara je...for ( int count = 0; count < arrSize; count++)   {       cout << "PLEASE ENTER HEIGHT: "; cin >> arrHeight[count];   }     cout<<endl;                     ArraySort(arrHeight, arrSize);  // <----------- SORTKAN DATA ANDA DAHULU!..huhu     int arrNum,arrNum2;     for (int x = 0; x<arrSize; x++)     {         arrNum2 = 0;         arrNum = arrHeight[x];         for (int y=0; y<arrSize; y++)                     if (arrNum == arrHeight[y])                 arrNum2++;             arrHeight2[x]= arrNum;             ListCount[x] =arrNum2;     }     cout << "HEIGHT OF PUPILS \t NUMBERS OF PUPILS" <<endl;     cout << "---------------- \t -----------------" <<endl;     // ArraySort(arrHeight, arrSize);  <---- KO KENA CALL FUNCTION NI LPS USER INPUTKAN DATA     for (int n = 0; n<arrSize; n++)     cout<<"\t"<< arrHeight[n]<< "\t"<<"\t\t"<<ListCount[n]<<endl;     cout<< endl; dan aku rasa c0de ko ni akan print data berulang2 kali sprti post ko yg pertama...sbb for loop yg ko guna tu ada masalah logical sikit..huhu...dan main() ko bole dipendekkan lagi...ni suggestion aku utk main() ko int main(){        cout << "This program will calculate measure height of 20 pupils."<<endl;        cout << "From this program, the health visitor will know the average height of"<<endl;        cout << "pupils and median height of pupils."<<endl;        cout << endl;         int arrHeight[arrSize];     for ( int count = 0; count < arrSize; count++)  {                cout << "PLEASE ENTER HEIGHT: ";           cin >> arrHeight[count];      }     cout<<endl;                     //bahagian yg dibah     ArraySort(arrHeight, arrSize);         cout << "HEIGHT OF PUPILS \t NUMBERS OF PUPILS" <<endl;        cout << "---------------- \t -----------------" <<endl;            int total=0;     int temp = arrHeight[arrSize-1];     for(int i=arrSize-1; i>=0; --i){           if (temp == arrHeight[i]){     ++total;           }           else{     cout<<"\t"<< temp<< "\t"<<"\t\t"<<total<<endl;        temp = arrHeight[i];     total = 1;           }           if(i==0) cout<<"\t"<<temp<< "\t"<<"\t\t"<<total<<endl;     }                 //end of ubahan...     cout<< endl;            cout << "\nTHE AVERAGE (MEAN) HEIGHT OF PUPILS IS " << CalMean(arrHeight,arrSize) << endl;        cout << "\nTHE MEDIAN HEIGHT OF PUPILS IS " << CalMed(arrHeight,arrSize) << endl;        cout << endl;  return 0; }note: dlm C++, ko musti initialize setiap variables...wajib!...huhup/s: pc aku skang ni xde compiler C++...so, mungkin ada salah mana2...haha..happy c0ding Edited April 2, 2008 by betik Quote Share this post Link to post Share on other sites
rizal 1 Report post Posted April 4, 2008 apa maksud initialize variables?macam ni ka?int total=0; Quote Share this post Link to post Share on other sites
betik 11 Report post Posted April 6, 2008 apa maksud initialize variables?macam ni ka?int total=0;yup..ni good programming habit utk C++...sbb C++ ni ialah unmanaged code...byk pekdah kalu initialize dulu variables terutama bila da guna class...kira mcm rules of thumb utk C++ la...hahasatu lg, initialization lbh baik dr kita assign nilai utk variables...sbb kalu kita initialze, xde temporary object yg dibuat...p/s: kalu guna managed code(e.g:.NET), varibles initialization ni adalah bad habit..huhu Quote Share this post Link to post Share on other sites
atye 0 Report post Posted April 6, 2008 owh..camtu..anyway..thnx semua coz tlg aku setelkn mslh ni..aku da boleh buat coding ni dgn bantuan korang...thanx a lot..... Quote Share this post Link to post Share on other sites
otai_g 3 Report post Posted June 4, 2008 lps aku tgk semua program dlm thread ni aku rs program ko yg 1st tu lg bagus la.org kalo boleh nak program yg ringkas/pendek lg bagus.tp makin lama aku tgk thread ni program dia jd lg panjang n kompleks utk hasil output yg sama. Quote Share this post Link to post Share on other sites
betik 11 Report post Posted June 5, 2008 lps aku tgk semua program dlm thread ni aku rs program ko yg 1st tu lg bagus la.org kalo boleh nak program yg ringkas/pendek lg bagus.tp makin lama aku tgk thread ni program dia jd lg panjang n kompleks utk hasil output yg sama.pendapat aku lagi ...1- c0de dia yg pertama x display result mcm yg dia nk2- mmg ada cara yg lebih ringkas (e.g: guna vector, etc) tp aku rasa, apa yg forumer dlm thread ni lakukakn ialah membantu dia mendapatkan hasil yg mcm dia nk dgn inisiatip dia sindri...maksudnya, kita bagi guideline je... bkn spoon-fed 3- mungkin dia blom blajar/sedia lagi utk menggunakan cara ringkas spt vector, etc...mmg lebih efisyen tp utk jd programmer yg bagos, basic kena mantap..dan aku rasa, slps ni dia akan belajar mende baru dan dr situ dia dpt optimumkan lg program yg dia wat skang...hanya pendapat aku je Quote Share this post Link to post Share on other sites
otai_g 3 Report post Posted July 2, 2008 aku x phm result mcm mn yg dikehendaki.program hanye akn liskan no tanpa pengulangan.?apa maksud dia?adakah program akan terima input sesuatu nombor sekali sahaja lps tu kalo dimasukkan no yg sama akan direject?atau mcm mn? Quote Share this post Link to post Share on other sites
OkEsh 1 Report post Posted July 28, 2008 (edited) aku x phm result mcm mn yg dikehendaki.camni, user akan masukkan ketinggian utk 20 org student..contohnya user tu masukkan nilai 165, 163, 165, 158, 187, 147 ........program takkan reject kalu ade nilai input yg sama..lepas user dh key in semua input, sistem akan buat pengiraan..katakanlah ada 2 org student yg mempunyai ketinggian yg sama iaitu 165meter, ---------------------------------------------------------------------------------------so first sistem akan susunkan ketinggian tu mengikut nombor camni:147147147158163165165187then sistem akan kira bilangan pelajar utk setiap ketinggian..contoh outputnya akan jadi camni:147 - 3 org158 - 1 org163 - 1 org165 - 2 org187 - 1 org-------------------------------------------------------------------------ada paham ke?... Edited July 28, 2008 by -HaiBaRa ai- Quote Share this post Link to post Share on other sites
otai_g 3 Report post Posted July 29, 2008 proses dan output yg dikehendaki semua aku phm.yg aku confius part "program hanye akn listkan no tanpa pengulangan"kan lebih mudah kalo gunakan ayat yg pengguna akan masuk semua data sekali sahaja dan akan tekan enter sekali sahaja utk mengesahkan semua data yg telah dimasukkan.x spt sistem konvensional yg masuk input sekali enter.pastu masuk input sekali enter smpi habis.huhu... Quote Share this post Link to post Share on other sites
OkEsh 1 Report post Posted July 29, 2008 ..yg aku confius part "program hanye akn listkan no tanpa pengulangan"tu la gunanya bubble sort Quote Share this post Link to post Share on other sites