Cov txheej txheem:

Kuv tuaj yeem khiav kuv qhov program C ntawm kev hais kom ua li cas?
Kuv tuaj yeem khiav kuv qhov program C ntawm kev hais kom ua li cas?

Video: Kuv tuaj yeem khiav kuv qhov program C ntawm kev hais kom ua li cas?

Video: Kuv tuaj yeem khiav kuv qhov program C ntawm kev hais kom ua li cas?
Video: Neej Puas Vim Ua Zog Công Ty - Zeb Nus Thoj nkauj tawm tshiab 24/06/2022 2024, Hlis ntuj nqeg
Anonim

Yuav Ua Li Cas Sau C Program hauv Command Prompt?

  1. Khiav cov lus txib 'gcc -v' txhawm rau txheeb xyuas yog tias koj muaj lub kaw lus nruab.
  2. Tsim ib c program thiab khaws cia rau hauv koj qhov system.
  3. Hloov tus ua hauj lwm directory rau qhov chaw koj muaj koj Cprogram .
  4. Piv txwv li: > cd Desktop.
  5. Cov cov kauj ruam tom ntej yog muab tso ua ke qhov kev pab cuam .
  6. Hauv tus kauj ruam tom ntej, peb ua tau khiav qhov program .

Ib yam li ntawd, koj tuaj yeem nug, ua li cas koj khiav cov ntaub ntawv hauv kev hais kom ua?

Cov kauj ruam

  1. Qhib koj lub computer Start menu.
  2. Ntaus thiab tshawb cmd ntawm Start menu.
  3. Nyem Command Prompt ntawm Start menu.
  4. Ntaus cd [filepath] rau hauv Command Prompt.
  5. Nrhiav txoj hauv kev ntawm cov ntawv tais ceev tseg uas muaj koj li exeprogram.
  6. Hloov [filepath] hauv cov lus txib nrog koj qhov kev pab cuam filepath.

Ib yam li ntawd, kuv yuav ua li cas thiaj li khiav ib qho program hauv qhov hais kom ua Windows 10? Pib Windows 10 "Kho App" los ntawm cov kab hais kom ua.

  1. Qhib khiav dialog
  2. Hom:
  3. Nrhiav koj lub app (Duab) hauv daim nplaub tshev.
  4. Txoj nyem thiab xaiv "Tsim Shortcut"
  5. Hais "Yes", kom hais kom "tso qhov shortcut ntawm desktop"
  6. Txoj nyem rau ntawm qhov shortcut thiab xaiv "Properties"
  7. Xyuas kom tseeb tias Shortcut tab tshwm.

Ua raws li qhov kev pom no, Kuv yuav ua li cas thiaj li khiav qhov program C compiled hauv davhlau ya nyob twg?

Khiav C / C ++ program ntawm lub davhlau ya nyob twg siv gcccompiler

  1. Qhib lub davhlau ya nyob twg.
  2. Ntaus lus txib kom nruab gcc lossis g ++ complier:
  3. Tam sim no mus rau lub nplaub tshev uas koj yuav tsim C / C ++ cov kev pab cuam.
  4. Qhib cov ntaub ntawv siv txhua tus editor.
  5. Ntxiv cov cai no rau hauv cov ntaub ntawv:
  6. Txuag cov ntaub ntawv thiab tawm.
  7. Sau cov program siv ib qho ntawm cov lus txib hauv qab no:
  8. Txhawm rau khiav qhov program no ntaus cov lus txib no:

Kuv yuav khiav gcc ntawm Windows li cas?

Cov kauj ruam yog:

  1. Nruab Cygwin, uas muab rau peb ib puag ncig zoo li Unix khiav ntawm Windows.
  2. Nruab ib txheej ntawm Cygwin tej pob khoom xav tau rau lub tsev GCC.
  3. Los ntawm hauv Cygwin, rub tawm GCC qhov chaws, tsim thiab nruab nws.
  4. Ntsuam xyuas GCC compiler tshiab hauv C ++ 14 hom siv -std = c ++ 14option.

Pom zoo: