Cov txheej txheem:

Bubble Sort in Batch !: 4 Kauj Ruam
Bubble Sort in Batch !: 4 Kauj Ruam

Video: Bubble Sort in Batch !: 4 Kauj Ruam

Video: Bubble Sort in Batch !: 4 Kauj Ruam
Video: Sorting in Java | Bubble Sort, Selection Sort & Insertion Sort | Java Placement Course 2024, Kaum ib hlis
Anonim
Bubble Sort hauv Batch!
Bubble Sort hauv Batch!

Puas tau xav tsis thoob ua qhov yooj yim sorting algorithm hauv cov khoom ntshiab? Tsis txhob txhawj, nws yooj yim li ncuav qab zib! Qhov no kuj qhia cov txheej txheem ntawm nws txheeb. (Nco tseg: Kuv tau ua qhov no hauv Windows XP khoos phis tawj yog li qee qhov chaws yuav tsis ua haujlwm. Kuv tsis paub txawm tias thov txim.)

Kauj ruam 1: Ua Batch File

Ua Batch File
Ua Batch File

Luam cov cai hauv lub rooj thiab muab lawv tso rau hauv notepad.

@ECHO tawm

COLOR 0a TITLE Bubble Sort

Ntawm no, koj hloov pauv xim thiab npe uas koj nyiam.

Tsis txhob hloov '@ECHO tawm' vim qhov no tiv thaiv kev cuam tshuam rau koj li haujlwm.

Kauj Ruam 2: Ua Tus Tsim Tus Zauv Random

Ua Tus Random Number Generator
Ua Tus Random Number Generator

Kuv tau tsim tus lej zauv los ua pov thawj tias qhov no siv rau txhua qhov kev hloov pauv ntawm cov lej!

Rub tawm cov ntawv thiab muab tshuaj txhuam rau hauv koj daim ntawv tam sim no. (Tsis txhob txhawj, daim ntawv no muaj kev nyab xeeb.)

Kauj ruam 3: Txheeb Sijhawm

Txheeb Sijhawm!
Txheeb Sijhawm!

Nov yog qhov uas cov khoom raug txheeb. Nov yog cov ntsiab lus ntawm koj qhov haujlwm, thiab yuav luag tag nrho ntawm nws!

Rub tawm cov ntawv thiab muab tshuaj txhuam rau hauv koj daim ntawv tam sim no. (Tsis txhob txhawj, daim ntawv no muaj kev nyab xeeb.)

Kauj ruam 4: Xaiv

Xaiv!
Xaiv!

Luam cov cai hauv cov ntxhuav thiab muab tso rau hauv notepad.

Yeej, yog tias koj xav sim dua lossis tawm mus. Txawm li cas los xij, qhov no yog qhov kawg ntawm txoj haujlwm! Tsuas yog txuag li Bubble_Sort.bat thiab tawg! Ua npuas hom.

Rub tawm cov ntawv thiab muab tshuaj txhuam rau hauv koj daim ntawv tam sim no. (Tsis txhob txhawj, daim ntawv no muaj kev nyab xeeb.)

Pom zoo: