Yuav Ua Li Cas Siv Notepad ++ (nrog Duab)

Cov txheej txheem:

Yuav Ua Li Cas Siv Notepad ++ (nrog Duab)
Yuav Ua Li Cas Siv Notepad ++ (nrog Duab)

Video: Yuav Ua Li Cas Siv Notepad ++ (nrog Duab)

Video: Yuav Ua Li Cas Siv Notepad ++ (nrog Duab)
Video: nyiag nkag koj tus hluas nkauj tus messenger ua koj twb g paub password 2024, Kaum ib hlis
Anonim

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

Siv Notepad ++ Kauj Ruam 1
Siv Notepad ++ Kauj Ruam 1

Kauj Ruam 1. Qhib Notepad ++ lub vev xaib

Mus ntsib https://notepad-plus-plus.org/ hauv qhov browser.

Siv Notepad ++ Kauj Ruam 2
Siv Notepad ++ Kauj Ruam 2

Kauj ruam 2. Nyem download

Nws nyob rau saum kaum sab laug ntawm nplooj ntawv.

Siv Notepad ++ Kauj Ruam 3
Siv Notepad ++ Kauj Ruam 3

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

Siv Notepad ++ Kauj Ruam 4
Siv Notepad ++ Kauj Ruam 4

Kauj Ruam 4. Nyem ob npaug rau cov ntaub ntawv teeb tsa

Cov ntawv no tau cim los ntawm lub cim qav ntsuab.

Siv Notepad ++ Kauj Ruam 5
Siv Notepad ++ Kauj Ruam 5

Kauj Ruam 5. Nyem Yog thaum hais kom sai

Lub qhov rai teeb tsa yuav qhib.

Siv Notepad ++ Kauj Ruam 6
Siv Notepad ++ Kauj Ruam 6

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.

Siv Notepad ++ Kauj Ruam 7
Siv Notepad ++ Kauj Ruam 7

Kauj Ruam 7. Nyem OK

Nws nyob hauv qab ntawm lub qhov rais "Lus".

Siv Notepad ++ Kauj Ruam 8
Siv Notepad ++ Kauj Ruam 8

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
Siv Notepad ++ Kauj Ruam 9
Siv Notepad ++ Kauj Ruam 9

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 ++

Siv Notepad ++ Kauj Ruam 10
Siv Notepad ++ Kauj Ruam 10

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.

Siv Notepad ++ Kauj Ruam 11
Siv Notepad ++ Kauj Ruam 11

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.

Siv Notepad ++ Kauj Ruam 12
Siv Notepad ++ Kauj Ruam 12

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.

Siv Notepad ++ Kauj Ruam 13
Siv Notepad ++ Kauj Ruam 13

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.

Siv Notepad ++ Kauj Ruam 14
Siv Notepad ++ Kauj Ruam 14

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

Siv Notepad ++ Kauj Ruam 15
Siv Notepad ++ Kauj Ruam 15

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.

Siv Notepad ++ Kauj Ruam 16
Siv Notepad ++ Kauj Ruam 16

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

Siv Notepad ++ Kauj Ruam 17
Siv Notepad ++ Kauj Ruam 17

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

Siv Notepad ++ Kauj Ruam 18
Siv Notepad ++ Kauj Ruam 18

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.

Siv Notepad ++ Kauj Ruam 19
Siv Notepad ++ Kauj Ruam 19

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.

Siv Notepad ++ Kauj Ruam 20
Siv Notepad ++ Kauj Ruam 20

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.

Siv Notepad ++ Kauj Ruam 21
Siv Notepad ++ Kauj Ruam 21

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.
Siv Notepad ++ Kauj Ruam 22
Siv Notepad ++ Kauj Ruam 22

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.

Siv Notepad ++ Kauj Ruam 23
Siv Notepad ++ Kauj Ruam 23

Kauj Ruam 6. Txheeb xyuas lub luag haujlwm ntawm txoj haujlwm

Hom

int lub ntsiab ()

hauv Notepad ++, tom qab ntawv nyem Enter.

Siv Notepad ++ Kauj Ruam 24
Siv Notepad ++ Kauj Ruam 24

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.

Siv Notepad ++ Kauj Ruam 25
Siv Notepad ++ Kauj Ruam 25

Kauj Ruam 8. Nkag mus rau txoj haujlwm ua tiav txoj cai

Hom

std:: cout << "Nyob zoo ntiaj teb!";

hauv Notepad ++ thiab nias Enter.

Siv Notepad ++ Kauj Ruam 26
Siv Notepad ++ Kauj Ruam 26

Kauj Ruam 9. Ntxig rau qhov kaw kab xev

Hom

}

ntawm Notepad ++. Lub sijhawm ua haujlwm ntawm qhov program yuav xaus.

Siv Notepad ++ Kauj Ruam 27
Siv Notepad ++ Kauj Ruam 27

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 ”.

    Siv Notepad ++ Kauj Ruam 28
    Siv Notepad ++ Kauj Ruam 28

    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

    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.

      Siv Notepad ++ Kauj Ruam 29
      Siv Notepad ++ Kauj Ruam 29
    2. 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.

      Siv Notepad ++ Kauj Ruam 30
      Siv Notepad ++ Kauj Ruam 30
    3. 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.

      Siv Notepad ++ Kauj Ruam 31
      Siv Notepad ++ Kauj Ruam 31
    4. Nkag mus rau "echo" hais kom ua. Hom

      @echo tawm

      hauv Notepad ++ thiab nias Enter.

      Siv Notepad ++ Kauj Ruam 32
      Siv Notepad ++ Kauj Ruam 32
    5. 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.

      Siv Notepad ++ Kauj Ruam 33
      Siv Notepad ++ Kauj Ruam 33

      Thaum khiav txoj haujlwm, lub npe ntawm qhov haujlwm yuav tshwm nyob rau sab saud ntawm Command Prompt window

    6. 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.

      Siv Notepad ++ Kauj Ruam 34
      Siv Notepad ++ Kauj Ruam 34
      • Piv txwv li, yog tias koj xav kom Command Prompt hais tias "Tib neeg zoo heev!", Ntaus

        echo Tib neeg zoo heev!

      • ntawm Notepad ++.
    7. Xaus txoj haujlwm. Hom

      ncua

      hauv Notepad ++ txhawm rau kos qhov kawg ntawm txoj haujlwm.

      Siv Notepad ++ Kauj Ruam 35
      Siv Notepad ++ Kauj Ruam 35
    8. Ntsuam xyuas cov cai. Tus lej nkag teb chaws koj nkag mus yuav zoo li no:

      Siv Notepad ++ Kauj Ruam 36
      Siv Notepad ++ Kauj Ruam 36
      • @echo tawm

      • Tseeb Command Prompt lub npe

      • echo Tib neeg zoo heev!

      • ncua

    9. 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 ”.

      Siv Notepad ++ Kauj Ruam 37
      Siv Notepad ++ Kauj Ruam 37

      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

    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.

      Siv Notepad ++ Kauj Ruam 38
      Siv Notepad ++ Kauj Ruam 38
    2. 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.

      Siv Notepad ++ Kauj Ruam 39
      Siv Notepad ++ Kauj Ruam 39
    3. 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.

      Siv Notepad ++ Kauj Ruam 40
      Siv Notepad ++ Kauj Ruam 40
    4. Sau ib daim ntawv npe. Ntaus hauv Notepad ++, tom qab ntawv nyem Enter.

      Siv Notepad ++ Kauj Ruam 41
      Siv Notepad ++ Kauj Ruam 41
    5. Ntxiv tus cim "html". Ntaus hauv Notepad ++ thiab nias Enter qhov tseem ceeb.

      Siv Notepad ++ Kauj Ruam 42
      Siv Notepad ++ Kauj Ruam 42
    6. 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.

      Siv Notepad ++ Kauj Ruam 43
      Siv Notepad ++ Kauj Ruam 43
    7. 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.

      Siv Notepad ++ Kauj Ruam 44
      Siv Notepad ++ Kauj Ruam 44
      • 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 ++.
    8. 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!").

      Siv Notepad ++ Kauj Ruam 45
      Siv Notepad ++ Kauj Ruam 45
    9. Kaw cov cim "html" thiab "lub cev". Ntaus thiab nias Enter, tom qab ntawd ntaus.

      Siv Notepad ++ Kauj Ruam 46
      Siv Notepad ++ Kauj Ruam 46
    10. Ntsuam xyuas cov cai. Qhov chaws nkag nkag yuav zoo li no:

      Siv Notepad ++ Kauj Ruam 47
      Siv Notepad ++ Kauj Ruam 47
      • Txais tos rau kuv qhov chaw

      • Hmoov zoo ntawm no!

    11. 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 ”.

      Siv Notepad ++ Kauj Ruam 48
      Siv Notepad ++ Kauj Ruam 48
      • 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.
    1. https://www.cplusplus.com/doc/tutorial/program_structure/
    2. https://www.makeuseof.com/tag/write-simple-batch-bat-file/
    3. https://www.w3schools.com/