Cov txheej txheem:

Kuv yuav ua li cas khiav C ++ cov ntaub ntawv nyob rau hauv dab noj hnub?
Kuv yuav ua li cas khiav C ++ cov ntaub ntawv nyob rau hauv dab noj hnub?

Video: Kuv yuav ua li cas khiav C ++ cov ntaub ntawv nyob rau hauv dab noj hnub?

Video: Kuv yuav ua li cas khiav C ++ cov ntaub ntawv nyob rau hauv dab noj hnub?
Video: tu txiv tsi pab nkauj tawm tshiab-Cover(niam vamkhwb&paj yeeb& xis xyooj&ntxawm xyooj&niam npawglem) 2024, Hlis ntuj nqeg
Anonim

2.1 C++ Program

  1. Kauj ruam 0: Tua dab noj hnub . Pib Dab tuag los ntawm khiav " dab noj hnub .exe" nyob rau hauv lub Dab tuag ntsia cov directory.
  2. Kauj Ruam 1: Tsim ib qho tshiab C++ Qhov project.
  3. Kauj Ruam 2: Sau lub Hello-world C++ Program .
  4. Kauj Ruam 3: Sau / Tsim.
  5. Kauj Ruam 4: Khiav .

Tom qab ntawd, Kuv puas tuaj yeem khiav C ++ ntawm Dab Ntxwg Nyoog?

Siv Dab tuag rau C/ C++ programming, koj xav tau C / C++ compiler. Hauv Windows, koj ua tau nruab MinGW GCC lossis Cygwin GCC. Xaiv MinGW yog tias koj tsis paub meej, vim MinGW sib dua thiab yooj yim rau nruab, tab sis muaj tsawg dua nta.

Ib yam li ntawd, kuv yuav ua li cas khiav C ++ qhov project? Khiav ib qhov Project

  1. Xaiv Cov Ntaub Ntawv> Txoj Haujlwm Tshiab.
  2. Hauv qhov project wizard, nthuav cov Samples qeb.
  3. Xaiv qhov C / C ++ subcategory, tom qab ntawd xaiv qhov project Arguments.
  4. Right-click lub Arguments_1 project node thiab xaiv Tsim.
  5. Right-click lub Arguments_1 project node thiab xaiv Properties.

Tsis tas li ntawd, kuv yuav qhib qhov project C ++ hauv dab noj hnub li cas?

Tsim cov ntaub ntawv C / C ++

  1. Hauv qhov Project Explorer lossis C ++ Projects saib, right-click ib qhov project, thiab xaiv Tshiab> Cov ntaub ntawv.
  2. Hauv daim ntawv teev cov haujlwm, txheeb xyuas qhov tseeb tias qhov project raug xaiv.
  3. Nyob rau hauv cov ntaub ntawv npe lub thawv, ntaus lub npe ua raws li qhov tsim nyog txuas ntxiv.
  4. Nyem Ua kom tiav.
  5. Sau koj tus lej hauv qhov saib editor.
  6. Ntaus CTRL + S kom txuag tau cov ntaub ntawv.

Kuv yuav import C++ code rau hauv dab noj hnub li cas?

Kev xa tawm C/ C++ code rau hauv ib qhov project uas twb muaj lawm Lub IDE qhia txog Check Out As dialog. Xaiv Xyuas rau hauv ib qhov project uas twb muaj lawm, thiab ces nias Next. Lub IDE qhia txog Kev Tshawb Fawb Hauv dialog: Xaiv ib qhov project uas twb muaj lawm los ntawm daim ntawv teev npe, thiab tom qab ntawd nyem Ua tiav kom ntxiv rau code los ntawm CVS mus rau qhov project xaiv.