Vim li cas peb thiaj xav tau C ++ dhau C?
Vim li cas peb thiaj xav tau C ++ dhau C?

Video: Vim li cas peb thiaj xav tau C ++ dhau C?

Video: Vim li cas peb thiaj xav tau C ++ dhau C?
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim

C++ yog lus portable heev thiab yog feem ntau cov lus xaiv rau ntau lub cuab yeej, ntau lub platform app kev txhim kho. C++ muaj lub tsev qiv ntawv nplua nuj ua haujlwm. C++ tso cai tshwj xeeb tuav, thiab muaj nuj nqi overloading uas yog tsis tau nyob rau hauv C . C++ yog ib tug haib, npaum thiab ceev lus.

Tsuas yog li ntawd, vim li cas peb thiaj xav tau C ++?

siv ntawm C++ tso cai rau cov txheej txheem txheej txheem rau kev ua haujlwm hnyav ntawm CPU thiab muab kev tswj hwm kho vajtse, thiab hom lus no yog ceev heev vim qhov uas nws yog dav siv hauv kev tsim cov kev ua si sib txawv lossis hauv cov tshuab ua si. C++ feem ntau yog siv los tsim cov suites ntawm cov cuab yeej ua si.

Ib yam li ntawd, vim li cas C sai dua C ++? C yog ceev tshaj C ++ C++ tso cai rau koj sau abstractions uas compile-down kom sib npaug C . Qhov no txhais tau tias nrog qee qhov kev saib xyuas, a C++ qhov kev pab cuam yuav tsawg kawg yog ceev li a C ib. C++ muab cov cuab yeej rau koj encode koj lub siab nyiam hauv hom-system. Qhov no tso cai rau lub compiler los tsim kom pom binaries los ntawm koj cov cai.

Ua raws li qhov no, vim li cas C tseem nrov?

Ib tug ntawm heev muaj zog vim li cas C programming lus yog nrov thiab siv yog li ntawd dav yog qhov yooj ntawm nws siv rau kev tswj nco. Cov yam ntxwv no ua rau nws ua cov lus siv tau zoo vim tias cov khoom siv qib siab, xws li kev nco, tuaj yeem nkag tau yooj yim. C yog qhov kev xaiv zoo rau kev ua haujlwm theem.

C++ puas yuav tuag?

Yog tias nws "nrov nrov" tau poob qis (uas yog debatable), tsis tau txhais hais tias nws yuav tuag. C++ tsis muaj qhov tsis muaj zog loj. Yeej tsis muaj laj thawj txaus los hloov nws. Nws yuav nyob twj ywm ib qho ntawm cov lus tseem ceeb IT tau ntau xyoo lawm.