Qhov wikiHow no qhia koj yuav ua li cas rau nruab thiab siv Notepad ++ program ntawm lub khoos phis tawj Windows. Notepad ++ yog cov ntawv sau uas tau ua kom zoo dua rau cov lus programming ua rau nws haum rau kev sau ua lus xws li C ++, Batch, thiab HTML.
Kauj ruam
Ntu 1 ntawm 3: Txhim Kho Txoj Haujlwm
Kauj Ruam 1. Qhib Notepad ++ lub vev xaib
Mus ntsib https://notepad-plus-plus.org/ hauv qhov browser.
Kauj ruam 2. Nyem download
Nws nyob rau saum kaum sab laug ntawm nplooj ntawv.
Kauj Ruam 3. Nyem DOWNLOAD
Nws yog lub pob ntsuab nyob nruab nrab ntawm nplooj ntawv. Cov ntaub ntawv teeb tsa Notepad ++ yuav rub tawm tam sim ntawd.
Tej zaum koj yuav tsum xaiv qhov chaw khaws lossis lees paub qhov rub tawm ua ntej mus rau kauj ruam tom ntej, nyob ntawm koj lub browser teeb tsa
Kauj Ruam 4. Nyem ob npaug rau cov ntaub ntawv teeb tsa
Cov ntawv no tau cim los ntawm lub cim qav ntsuab.
Kauj Ruam 5. Nyem Yog thaum hais kom sai
Lub qhov rai teeb tsa yuav qhib.
Kauj Ruam 6. Xaiv cov lus sib tham
Nyem rau kab lus nco-down lub thawv thiab xaiv cov lus sib tham uas koj xav siv.
Kauj Ruam 7. Nyem OK
Nws nyob hauv qab ntawm lub qhov rais "Lus".
Kauj Ruam 8. Ua raws li cov lus qhia uas pom ntawm qhov screen
Ua raws cov theem hauv qab no:
- Nyem " Tom ntej no ”
- Nyem " Kuv Pom Zoo ”
- Xaiv " Tom ntej no ”
- Nyem " Tom ntej no ”
- Txheeb xyuas cov kev xaiv ntxiv, tom qab ntawd nyem " Nruab ”
Kauj Ruam 9. Nyem Ua tiav
Tsuav koj khaws qhov "Run Notepad ++" xaiv, lub qhov rai teeb tsa yuav kaw thiab Notepad ++ program yuav qhib.
Ntu 2 ntawm 3: Teeb tsa Notepad ++
Kauj Ruam 1. Qhib Notepad ++ yog tias txoj haujlwm tseem tsis tau qhib
Nyem ob npaug rau Notepad ++ lub cim uas zoo li lub ncoo dawb nrog qav ntsuab nyob sab hauv.
Kauj Ruam 2. Rho tawm cov ntawv pom hauv Notepad ++ qhov rai
Feem ntau, koj tuaj yeem pom cov ntawv sau los ntawm tus tsim tawm hauv lub qhov rais. Tsuas yog kos thiab rho tawm cov lus.
Kauj Ruam 3. Nyem Qhov Chaw
Cov ntawv no yog nyob rau sab saud ntawm Notepad ++ qhov rai. Thaum nyem, cov ntawv qhia zaub mov nco-down yuav tshwm.
Kauj Ruam 4. Nyem Nyiam…
Qhov kev xaiv no yog nyob hauv cov ntawv qhia zaub mov nco-down " Chaw " Lub qhov rai "Nyiam" yuav qhib tom qab.
Kauj Ruam 5. Tshawb xyuas Notepad ++ chaw
Saib cov kev teeb tsa nyob hauv nruab nrab ntawm lub qhov rais, lossis nyem rau ntawm tabs ntawm sab laug ntawm "Preferences" qhov rai los hloov cov qeb ntawm kev teeb tsa raug tshuaj xyuas.
Koj tuaj yeem hloov pauv qhov chaw raws li koj xav tau, tab sis ceev faj tsis txhob hloov pauv yam uas koj tsis nkag siab
Kauj Ruam 6. Nyem Kaw
Nws nyob hauv qab ntawm lub qhov rais "Nyiam". Cov kev hloov pauv yuav raug cawm thiab lub qhov rai yuav kaw.
Kauj Ruam 7. Txheeb xyuas cov ntawv qhia zaub mov
Nyob rau sab saud ntawm Notepad ++ qhov rai, koj tuaj yeem pom kab ntawm cov xim khawm. Hover hla txhua tus yuam sij kom pom nws ua dab tsi.
Piv txwv li, lub icon diskette ntshav nyob rau sab saud sab laug ntawm lub qhov rais txuag kev ua tiav ntawm txoj haujlwm thaum nyem
Kauj Ruam 8. Txiav txim siab hom lus uas koj xav siv
Kab lus no suav nrog piv txwv coding hauv C ++, Batch, thiab HTML, tab sis koj tuaj yeem siv yuav luag txhua yam lus uas koj xav tau hauv Notepad ++. Thaum koj muaj lus, koj tuaj yeem siv Notepad ++ tam sim los tsim cov haujlwm.
Ntu 3 ntawm 3: Tsim Yooj Yim C ++ Cov Haujlwm
Kauj Ruam 1. Nyem Cov Lus tab
Nws yog ib lub tab nyob saum lub qhov rai. Thaum nyem, cov ntawv qhia zaub mov nco-down yuav tshwm.
Kauj Ruam 2. Xaiv C
Qhov kev xaiv no yog nyob hauv cov ntawv qhia zaub mov nco-down " Lus " Cov ntawv qhia zaub mov pop-out yuav tshwm.
Kauj Ruam 3. Nyem C ++
Nws nyob hauv cov ntawv qhia zaub mov pop-out. Feem ntau, cov programmer feem ntau siv C ++ programming lus yuav tsim cov program uas hais tias "Nyob Zoo Ntiaj Teb!" (Lossis qee yam zoo sib xws) thaum lawv khiav. Hauv qib no, koj yuav tsim qhov program.
Kauj Ruam 4. Ntxiv cov npe program
Hom, ua raws li lub npe program (piv txwv li "Kuv thawj qhov program"), tom qab ntawd nyem Enter.
- Cov ntawv sau tom qab ob qho kev sib tsoo ntawm kab yuav tsis raug nyeem ua tus lej.
-
Piv txwv li, yog tias koj xav tau lub npe program "Nyob Zoo Ntiaj Teb", ntaus
// Nyob zoo ntiaj teb
- hauv Notepad ++ qhov rai.
Kauj Ruam 5. Nkag mus rau qhov hais kom ua ua ntej ua ntej
Hom
#suav nrog
hauv Notepad ++ qhov rai thiab nias Enter. Cov lus txib no muab C ++ los ua cov kab hauv qab no ntawm cov cai raws li txoj haujlwm.
Kauj Ruam 6. Txheeb xyuas lub luag haujlwm ntawm txoj haujlwm
Hom
int lub ntsiab ()
hauv Notepad ++, tom qab ntawv nyem Enter.
Kauj Ruam 7. Ntxig rau qhov qhib kab zauv
Hom
{
hauv Notepad ++, tom qab ntawv nyem Enter. Tom qab ntawd, txoj haujlwm tseem ceeb ntawm txoj cai yuav tsum tau muab tso rau nruab nrab ntawm qhov qhib thiab kaw cov plaub hau.
Kauj Ruam 8. Nkag mus rau txoj haujlwm ua tiav txoj cai
Hom
std:: cout << "Nyob zoo ntiaj teb!";
hauv Notepad ++ thiab nias Enter.
Kauj Ruam 9. Ntxig rau qhov kaw kab xev
Hom
}
ntawm Notepad ++. Lub sijhawm ua haujlwm ntawm qhov program yuav xaus.
Kauj Ruam 10. Txheeb xyuas txoj haujlwm
Qhov chaws koj nkag mus yuav zoo li no:
-
// Nyob zoo ntiaj teb
-
#suav nrog
-
int lub ntsiab ()
-
{
-
std:: cout << "Nyob zoo ntiaj teb!";
-
}
Kauj ruam 11.
Txuag qhov kev zov me nyuam.
Nyem cov ntawv qhia zaub mov " Cov ntaub ntawv ", xaiv" Txuag Raws Li… "Hauv cov ntawv qhia zaub mov nco, sau lub npe program, xaiv qhov chaw khaws tseg, thiab nyem" Txuag ”.
Yog tias koj muaj ib qho program hauv koj lub computer uas tuaj yeem ua haujlwm C ++, koj tuaj yeem qhib "Hello World" program hauv qhov program ntawd
Tsim Cov Kev Pab Cuam Yooj Yim
-
Nyem Cov Lus tab. Nws yog ib lub tab nyob saum lub qhov rai. Thaum nyem, cov ntawv qhia zaub mov nco-down yuav tshwm.
-
Xaiv B. Qhov kev xaiv no nyob hauv cov ntawv qhia zaub mov nco " Lus " Cov ntawv qhia zaub mov pop-out yuav tshwm tom qab ntawd.
-
Nyem rau pawg. Nws nyob hauv cov ntawv qhia zaub mov pop-out. Batch yog hloov kho cov lus txib uas koj ib txwm siv ntawm Command Prompt yog li koj tuaj yeem qhib Batch cov ntaub ntawv los ntawm txoj haujlwm.
-
Nkag mus rau "echo" hais kom ua. Hom
@echo tawm
hauv Notepad ++ thiab nias Enter.
-
Ntxiv cov npe program. Hom
Title ntawv
thiab nias Enter qhov tseem ceeb. Nco ntsoov tias koj hloov "ntawv" nrog lub npe ntawm qhov program xav tau.
Thaum khiav txoj haujlwm, lub npe ntawm qhov haujlwm yuav tshwm nyob rau sab saud ntawm Command Prompt window
-
Sau cov ntawv nyeem. Hom
echo ntawv
thiab nias Enter qhov tseem ceeb. Hloov "cov ntawv" nrog cov ntawv twg los xij koj xav pom hauv qhov Command Prompt window.
-
Piv txwv li, yog tias koj xav kom Command Prompt hais tias "Tib neeg zoo heev!", Ntaus
echo Tib neeg zoo heev!
- ntawm Notepad ++.
-
Xaus txoj haujlwm. Hom
ncua
hauv Notepad ++ txhawm rau kos qhov kawg ntawm txoj haujlwm.
-
Ntsuam xyuas cov cai. Tus lej nkag teb chaws koj nkag mus yuav zoo li no:
-
@echo tawm
-
Tseeb Command Prompt lub npe
-
echo Tib neeg zoo heev!
-
ncua
-
Txuag qhov kev zov me nyuam. Nyem cov ntawv qhia zaub mov " Cov ntaub ntawv ", xaiv" Txuag Raws Li… "Hauv cov ntawv qhia zaub mov nco, sau lub npe program, xaiv qhov chaw khaws tseg, thiab nyem" Txuag ”.
Yog tias koj xav ua qhov haujlwm, yooj yim pom qhov program hauv nws qhov chaw cia khoom thiab ob npaug nias nws lub cim
Tsim Cov Qauv HTML yooj yim
-
Nyem Cov Lus tab. Nws yog ib lub tab nyob saum lub qhov rai. Thaum nyem, cov ntawv qhia zaub mov nco-down yuav tshwm.
-
Xaiv H. Qhov kev xaiv no yog nyob hauv cov ntawv qhia zaub mov nco " Lus " Tom qab ntawd, cov ntawv qhia zaub mov tawm yuav tshwm.
-
Nyem HTML. Nws nyob hauv cov ntawv qhia zaub mov pop-out. HTML yog hom lus siv ntau tshaj plaws rau nplooj ntawv web. Hauv qhov kev tawm dag zog no, koj yuav tsim lub vev xaib yooj yim lub npe thiab cov npe.
-
Sau ib daim ntawv npe. Ntaus hauv Notepad ++, tom qab ntawv nyem Enter.
-
Ntxiv tus cim "html". Ntaus hauv Notepad ++ thiab nias Enter qhov tseem ceeb.
-
Ntxiv tus cim "lub cev". Ntaus hauv Notepad ++ thiab nias Enter qhov tseem ceeb. Tus cim no qhia tias koj tab tom yuav nkag mus rau ntu ntu ntawm cov ntawv lossis lwm yam ntaub ntawv.
-
Sau ib nplooj ntawv npe. Hom
ntawv
thiab nias Enter qhov tseem ceeb. Nco ntsoov tias koj hloov ntu "ntawv" nrog rau nplooj ntawv xav tau lub npe.
-
Piv txwv li, yog tias koj xav siv "Txais tos rau kuv lub xaib" raws li koj lub npe nplooj ntawv, ntaus
Txais tos rau kuv qhov chaw
- ntawm Notepad ++.
-
Ntxiv cov ntawv hauv qab lub npe. Hom
ntawv
thiab nias Enter qhov tseem ceeb. Hloov "ntawv" nrog cov ntawv uas xav tau (piv txwv li "Muaj sijhawm zoo nyob ntawm no!").
-
Kaw cov cim "html" thiab "lub cev". Ntaus thiab nias Enter, tom qab ntawd ntaus.
-
Ntsuam xyuas cov cai. Qhov chaws nkag nkag yuav zoo li no:
-
Txais tos rau kuv qhov chaw
-
Hmoov zoo ntawm no!
-
tseg txoj haujlwm. Nyem cov ntawv qhia zaub mov " Cov ntaub ntawv ", nyem" Txuag Raws Li… "Hauv cov ntawv qhia zaub mov nco, sau lub npe program, xaiv qhov chaw khaws tseg, thiab nyem" Txuag ”.
- Tsuav koj xaiv cov lus ua ntej khaws cov ntaub ntawv, Notepad ++ yuav txiav txim siab qhov tsim nyog ua hom ntawv.
- Koj tuaj yeem qhib cov ntawv HTML hauv txhua lub vev xaib.
Lub tswv yim
Notepad ++ siv tab los thauj ntau hom ntsiab lus yog li yog qhov program poob, koj tseem tuaj yeem nkag tau cov ntsiab lus thaum qhov program rov pib dua
Ceeb toom
- Xaiv cov lus tsis raug cai yuav ua rau yuam kev thaum koj sim ua qhov program.
- Ib txwm sim qhov program ua ntej tso tawm nws lossis muab rau lwm tus. Los ntawm kev sim nws, koj tuaj yeem daws teeb meem lossis hloov kho tshiab thiab hloov pauv uas xav tau.
- https://www.cplusplus.com/doc/tutorial/program_structure/
- https://www.makeuseof.com/tag/write-simple-batch-bat-file/
- https://www.w3schools.com/