Cov txheej txheem:

Kuv yuav ua li cas kuv txoj haujlwm C hauv dab noj hnub?
Kuv yuav ua li cas kuv txoj haujlwm C hauv dab noj hnub?

Video: Kuv yuav ua li cas kuv txoj haujlwm C hauv dab noj hnub?

Video: Kuv yuav ua li cas kuv txoj haujlwm C hauv dab noj hnub?
Video: PRESTIN - Hnub No Koj Yuav Ncaim Mus (Cover) 2024, Kaum ib hlis
Anonim

2. Sau koj thawj C/C++ Program hauv dab noj hnub

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

Ib yam li ntawd, peb puas tuaj yeem khiav C program hauv dab noj hnub?

Siv Dab tuag rau C /C++ programming , koj xav tau a 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, dab noj hnub CDT yog dab tsi? C/ C++ Development Toolkit ( CDT ) yog ib txheej ntawm Dab tuag plug-ins uas muab C thiab C++ extensions rau cov Dab tuag chaw ua haujlwm. Yog xav paub ntxiv txog Dab tuag , saib Workbench User Guide > Concepts > Workbench. Cov CDT muab C/ C++ IDE uas yooj yim rau ntau yam tib yam cuab yeej uas koj tuaj yeem siv los ntawm kab hais kom ua.

Tom qab ntawd, lo lus nug yog, Kuv yuav ua li cas thiaj tsim tau qhov project C tshiab hauv dab noj hnub?

Tsim ib qhov project tshiab

  1. Mus rau Qhov rai → Qhib kev pom → Lwm yam, xaiv C / C ++, thiab nyem OK.
  2. Mus rau Cov Ntaub Ntawv → Tshiab → C Project, thiab xaiv lub npe rau qhov project (piv txwv li, Nyob Zoo).
  3. Nyob rau hauv qhov Project Hom pane, nthuav Executable thiab xaiv Hello World ANSI C Project.
  4. Nyem Ua kom tiav kom lees txais txhua qhov kev hloov pauv.

Puas yog Eclipse zoo rau C ++?

Tsis muaj zoo IDEs rau ib hom lus, tab sis tsuas yog muaj txiaj ntsig zoo thiaj li ua rau C / C++ programming yooj yim dua. Raws li rau Dab tuag , nws txhawb C thiab C++ ntawm CDT plugin thiab yeej ua haujlwm tawm ntawm lub thawv yog tias koj siv Linux system nrog gcc / g ++ nrog rau lwm cov cuab yeej tsim-tseem ceeb.

Pom zoo: