Cov txheej txheem:

Ua Matrix Screen Nrog Pseudo-Random Number Generator: 4 Cov Kauj Ruam
Ua Matrix Screen Nrog Pseudo-Random Number Generator: 4 Cov Kauj Ruam

Video: Ua Matrix Screen Nrog Pseudo-Random Number Generator: 4 Cov Kauj Ruam

Video: Ua Matrix Screen Nrog Pseudo-Random Number Generator: 4 Cov Kauj Ruam
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
Ua Matrix Screen Nrog Pseudo-Random Number Generator
Ua Matrix Screen Nrog Pseudo-Random Number Generator

Yog tias koj nyiam cov lej, thiab muaj qee lub sijhawm so, koj tuaj yeem ua qhov haujlwm tsis muaj qhov kawg, uas qhia tus lej tsis raug, nrawm dua li lub khoos phis tawj tuaj yeem ua haujlwm, saib zoo ib yam li matrix! Nws tsuas siv sijhawm li 5 feeb los npaj!

Kuv tau saib ib puag ncig Chaw Qhia Ntawv, thiab pom qee tus Matrix screen tsim. Kuv nyiam sau cov program hauv computer, thiab ib zaug txiav txim siab los ua ib qho ntawm cov no, thiab kuv yuav qhia koj li cas! Koj yuav tsum muaj Microsoft. NET Framework 3.5 teeb tsa los ua qhov no. Thov ntaus nqi, nws yog thawj qhov kev qhia, thiab kuv xav paub tias kuv yuav mus li cas. ** Hloov tshiab ** Yog tias koj tsis muaj Microsoft. NET Framework 3.5, koj tuaj yeem rub nws los ntawm Microsoft Download site (download.microsoft.com), thiab tshawb rau. NET 3.5. Kuv tau ua qhov hloov tshiab uas spits tawm cov cim tsis sib xws, tsis yog siv tus lej xwb. Nws TSIS YOG qhia qhov screenshot ntawm lub matrix, lossis qhia lub vijtsam 3D. Tsuas yog cov ntawv random. Hauv ntsuab.

Kauj ruam 1: Coding

Koj yuav tsum rub tawm cov ntawv txuas nrog, thiab khaws nws rau hauv koj li kuv cov ntawv tais ceev tseg. Yog tias koj txaus siab rau lub khoos phis tawj lub khoos phis tawj, txoj haujlwm no yuav zoo saib. Koj yuav tsum luam tag nrho cov ntawv italic, thiab khaws nws rau hauv cov ntaub ntawv hu ua Program.txt. siv System; namespace Matrix_V2 {chav kawm {qhov tsis muaj qhov tsis zoo Main (hlua args) {// Teeb cov ntawv xim rau ntsuab Console. ForegroundColor = ConsoleColor. Green; // Tsim txoj hlua nrog qee cov cim tsis sib xws random_characters = "£ ¤ ¥ ¦§¨ © ª« ¬®¯ ± ²³´µ¶ · ¸¹ºΣΤΦΩαβδεμπστφABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.?/:; / "\ '{[}] | ~ 0123456790 -_ =+!@#$%^&*() "; // Tau txais tag nrho cov cim ntawd thiab tig lawv mus rau" array "char random_characters_array = random_characters. ToCharArray (); // Tshem lub vijtsam Console. Clear (); // Sau cov ntsiab lus hais txog daim ntawv thov rau lub console screen Console. Title = "Matrix V2 - Nias Ctrl+C kom tawm"; Console. WriteLine ("Matrix V2"); Console. WriteLine ("Sau los ntawm Chris Ward "); Console. WriteLine (" https://www.instructables.com/member/7654321chris "); Console. Write (" Nias ib qho yuam sij mus txuas ntxiv "); Console. ReadKey (); // Tsim tus pseudo- Random generator Random r = tshiab Random (); // Tsim cov lus uas ua tas mus li thaum (qhov tseeb) {// Tau txais ASCII tus cwj pwm los ntawm cov kab, raws li tus lej yog Console. Write (random_characters_array [r. Next (random_characters. Length)]); // tom qab ntawv sau nqe lus ntxiv … thiab ntxiv … thiab c.}}}

Kauj ruam 2: Tsim Batch File

Qhib notepad dua, thiab ntaus qhov no, tsuas yog hloov cov ntawv yog tias koj paub tseeb tias koj tab tom ua dab tsi, thiab paub tseeb tias nws yog txhua yam ntawm ib kab, raws li kuv tau txav nws mus rau cais kab kom nws haum @C: / WINDOWS Microsoft. NET / Framework / v3.5 / csc.exe /noconfig /nowarn: 1701, 1702 /errorreport: sai /ceeb toom: 4 /txhais: TRACE /reference:"C:\WINDOWS\Microsoft. NET\Framework / v2.0.50727 / System.dll " /filealign: 512 /optimize- /target: exe /out:Matrix. EXE Program.txt Tom qab ntawd koj yuav tsum khaws nws ua cov ntaub ntawv. BAT, nyob rau tib qhov chaw raws li program.txt cov ntaub ntawv.

Kauj ruam 3: Khiav

Khiav
Khiav

Tsuas yog ob npaug nyem rau hauv cov ntawv batch, thiab qhov hais kom ua qhov rai yuav tsum kaw sai. Thaum nws tau kaw, cov ntawv yuav tsum tau sau (Matrix. EXE). Tam sim no txhua yam koj yuav tsum tau ua yog khiav qhov program (Matrix. EXE), thiab qhov program yuav ua haujlwm. Kev daws teeb meem Yog tias cov ntaub ntawv tsis tau tsim, ntxiv rau kab tshiab @pause rau cov ntawv batch, tom qab ntawd sim khiav nws dua, tom qab ntawd yog tias muaj cov ncauj lus kom ntxaws ntawm qhov ua yuam kev, tshaj tawm cov lus pom thiab kuv yuav sim kho qhov teeb meem. Puas muaj lwm yam teeb meem? Cia li tshaj tawm cov lus pom.

Kauj ruam 4: Troubleshooting

Cov ntawv yuam kev: 'C: / WINDOWS / Microsoft. NET / Framework / v3.5' tsis tau lees paub tias yog kev hais sab hauv lossis sab nraud, ua haujlwm tau zoo lossis ua cov ntaub ntawv ' * Qhov no yog qhov kuv ua txhaum tiag, kuv tau ua yuam kev ntawm cov ntawv batch. Kuv yuav hloov kho cov cai ntawm nws, tab sis kom hloov nws, muaj qhov chaw me me, tsuas yog tom qab… ua haujlwm v3.5 thiab ua ntej / csc.exe. Tsuas yog tshem qhov chaw ntawd thiab rov ua haujlwm dua. Xwb, koj tuaj yeem rub tawm cov cai ntxiv. Puas muaj lwm yam teeb meem? Tshaj tawm cov lus thiab kuv yuav rov qab mus rau koj asap.

Pom zoo: