Cov txheej txheem:
- Kauj ruam 1: Kawm C ++
- Kauj ruam 2: Qhib Terminal
- Kauj ruam 3: Tau G ++
- Kauj Ruam 4: Ua Txoj Haujlwm
- Kauj ruam 5: Kho kom raug cov ntawv qhia zaub mov
Video: Tsim C ++ Cov Kev Kawm ntawm EEE PC: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:31
Yuav Tsim Li Cas, kho, thiab ua haujlwm C ++ cov haujlwm ntawm ASUS EEE PC. Please nco ntsoov tawm qhov kev thuam thuam nkaus xwb.
Kauj ruam 1: Kawm C ++
Yog tias koj twb paub C ++ ces koj zoo siab hlo hla cov kauj ruam no. IDE, yog li muab cov lus qhia ib ntus thiab pom tias qhov no zoo li zoo li qee yam koj xav tau nkag mus rau hauv. /www.3dbuzz.com Siv cov no lossis tsuas yog mus rau Google thiab tshawb rau "C ++ Tutorial"
Kauj ruam 2: Qhib Terminal
Hom Yooj Yim: Hom yooj yim yog lub interface uas los nrog EEE PC. Daim duab hauv qab no nrog cov txiv kab ntxwv tom qab yog lub vijtsam.to mus rau lub davhlau ya nyob twg tsuas yog mus rau lub desktop thiab nias: 'Ctrl' + 'Alt' + 'T' (Nias cov yuam sij zoo li koj tau ntaus 'Ctrl + Alt + Del') Advanced Mode: Yog tias koj nyob hauv 'Advanced Mode' ces kuv xav tias koj muaj kev paub txaus kom paub tias nws zoo li cas. tom qab ntawd koj tsis tuaj yeem mus rau Linux lub davhlau ya nyob twg zoo li Xandros tuaj yeem (tsis yog tsis yuav qhov tshwj xeeb crossover) Yog tias koj xav tsim C ++ program ntawm Windows Kuv qhia koj kom tau txais ib qho ntawm cov hauv qab no: Dev-C ++ (Tus kws tshaj lij pub dawb uas ua haujlwm zoo li tsuas yog hais txog lwm qhov Windows App) Visual C ++ nthuav qhia (Microsoft App uas siv tas mus li los rub tawm thiab teeb tsa)
Kauj ruam 3: Tau G ++
txhawm rau suav sau C ++ los ntawm cov ntawv rau hauv ib qhov program, Kuv siv G ++ Tau Txais G ++: Cov kauj ruam no siv lub davhlau ya nyob twg, siv cov txheej txheem uas tau hais yav dhau los kom tau txais ib qho ntxiv. suHit 'Nkag mus'-> nano /etc/apt/sources.listnow thaum cov ntaub ntawv no qhib koj yuav xav tau ntxiv cov kab hauv qab no ftp://ftp.us.debian.org/debian ruaj khov lub ntsiab tsis pub dawb (Qhov no yog koj nyob hauv Tebchaws Meskas) Tom qab ntawv ntaus: 'Ctrl' + 'X'Hit' Enter'Then: 'Y'Next, ntaus' Enter 'kom kaw qhov koj nyuam qhuav ua haujlwm thiab rov qab mus rau koj kab lus txib Rov qab rau ntawm qhov hais kom ua lineType:-> apt-tau hloov tshiab tom qab uas ua tiav koj yuav tsum nkag mus:-> apt-tau nruab tsim-qhov tseem ceeb Nco ntsoov muab peev Y rau yog thaum lub console nug koj yog tias koj xav txuas ntxiv. qhov no yuav nruab GCC thiab G ++ compilers xav tau rau program hauv C lossis C ++
Kauj Ruam 4: Ua Txoj Haujlwm
Mus rau qhov chaw uas koj xav kom muaj qhov program nyob hauv lub console. Type:-> kwrite./your_program_here.cppyour_program_here yog qhov uas koj tso lub npe ntawm koj qhov program tshiab … (tsis txhob hnov qab.cpp) qhov no qhib Yog tias koj txiav txim siab tsis ua tib zoo mloog thiab tsis kawm C ++, ces kuv yuav muab qhov program "Nyob Zoo" rau koj kom yooj yim los sim nrog. Hello World Program: (Pib ntawm kab hauv qab no)#suav nrog siv namespace std; lub ntsiab () {cout << "Nyob Zoo Ntiaj Teb!"; cout << cov; system ("ncua"); rov qab 0;} (Xaus ntawm kab saum toj no) Ntaus txuag thiab tawm kwrite.back ntawm hom davhlau ya nyob twg: -> g ++ -g -o./your_final_program_here./your_original_program_here.cpp Ua tsaug rau annex666 rau qhov ua yuam kev ntawdyour_final_program_here yog qhov uas koj tso lub npe ntawm koj qhov kev zov me nyuam kawg (nws txawj siv nws lub npe tib yam li koj.cpp file) Ntaus 'Enter'Let g ++ ua qhov ntawd … (yuav siv sijhawm me ntsis) sim nws los ntawm kev ntaus:-> meej;./your_final_program_hereIf nws ua haujlwm, kaw lub davhlau ya nyob twg Yog tias nws tsis ua, xyuas kom tseeb tias koj lub davhlau ya nyob twg nyob hauv tib lub nplaub tshev ib yam li koj qhov program. Kev sim ntaus ntawv:->./ your_final_program_here (nco ntsoov tias koj ntaus lub npe raug ntawm koj qhov program qhov twg 'koj_final_program_here' nyob qhov twg thiab tsis ntxiv '.cpp' Cov haujlwm ua tau zoo hauv Linux tsis muaj kev txuas ntxiv.) Qhov 'meej;' uas tau mus rau pem hauv ntej ntawm koj qhov program tsuas yog rub lub davhlau ya nyob twg kom nws zoo nkaus li huv.
Kauj ruam 5: Kho kom raug cov ntawv qhia zaub mov
Cov kauj ruam no tsuas yog yog tias koj muaj lub khoos phis tawj siab dua. Ua ib phau ntawv rau koj Cov Haujlwm. Tom qab ntawd hauv phau ntawv teev npe tshiab no ua ib yam khoom tshiab. Qhov Cov Khoom Txhua yam koj xav tau hauv Lub Npe: lub thawv Yog tias koj xav tau, xaiv ib qho Icon rau koj qhov program Nyem rau ntawm daim nplaub tshev icon los ntawm Command: box thiab xaiv koj qhov program. Select lub Xovtooj khawm uas sau tias "run In Terminal" Hit Save. To sim tawm koj qhov program mus rau Start Menu >> koj cov npe tshiab >> koj qhov program tshiabThere koj muaj Nws!