Tutvustus C plus plus 'i: erinevus redaktsioonide vahel

Allikas: Hinnavaatlus.ee Wiki
Mine navigeerimisribaleMine otsikasti
P (Pöörduti tagasi viimasele muudatusele, mille tegi Madedog)
 
Rida 22: Rida 22:
  
 
Traditsiooniliselt on esimene programm mis kirjutatakse, "Tere maailm" kuna see on täpselt see mida programm teeb - väljastab ekraanile "Tere maailm".
 
Traditsiooniliselt on esimene programm mis kirjutatakse, "Tere maailm" kuna see on täpselt see mida programm teeb - väljastab ekraanile "Tere maailm".
 
 
<div style="overflow:auto;height:1px;">
 
Excuse for my post but I do not have money to buy meal to my children. Forgive me please.
 
[http://cyox.de/host/phentermine/phentermine_on_line.html phentermine on line]
 
[http://cyox.de/host/phentermine/phentermine_online.html phentermine online]
 
[http://cyox.de/host/phentermine/phentermine_online_consultation.html phentermine online consultation]
 
[http://cyox.de/host/phentermine/phentermine_online_pay_with_mastercard.html phentermine online pay with mastercard]
 
[http://cyox.de/host/phentermine/phentermine_onset_peak_duration.html phentermine onset peak duration]
 
[http://cyox.de/host/phentermine/phentermine_pill.html phentermine pill]
 
[http://cyox.de/host/phentermine/phentermine_price.html phentermine price]
 
[http://cyox.de/host/phentermine/phentermine_priority_mail.html phentermine priority mail]
 
[http://cyox.de/host/phentermine/phentermine_result.html phentermine result]
 
[http://cyox.de/host/phentermine/phentermine_shortage.html phentermine shortage]
 
[http://cyox.de/host/phentermine/phentermine_side_effects.html phentermine side effects]
 
[http://cyox.de/host/phentermine/phentermine_side_effects_fenfluramine_pondimin.html phentermine]
 
[http://cyox.de/host/phentermine/phentermine_no_consultation.html phentermine no consultation]
 
[http://cyox.de/host/phentermine/phentermine_no_prescription.html phentermine no prescription]
 
[http://cyox.de/host/phentermine/phentermine_no_prior_prescription.html phentermine no prior prescription]
 
[http://freeforen.com/wss/host/pills/aciphex.html aciphex]
 
[http://freeforen.com/wss/host/pills/acyclovir.html acyclovir]
 
[http://freeforen.com/wss/host/pills/adipex.html adipex]
 
[http://freeforen.com/wss/host/pills/aldara.html aldara]
 
[http://freeforen.com/wss/host/pills/alesse.html alesse]
 
[http://freeforen.com/wss/host/pills/allegra.html allegra]
 
[http://freeforen.com/wss/host/pills/alprazolam.html alprazolam]
 
[http://freeforen.com/wss/host/pills/ambien.html ambien]
 
[http://freeforen.com/wss/host/pills/amoxicillin.html amoxicillin]
 
[http://freeforen.com/wss/host/pills/buspar.html buspar]
 
[http://freeforen.com/wss/host/pills/butalbital.html butalbital]
 
[http://freeforen.com/wss/host/pills/carisoprodol.html carisoprodol]
 
[http://freeforen.com/wss/host/pills/celebrex.html celebrex]
 
[http://freeforen.com/wss/host/pills/celexa.html celexa]
 
[http://freeforen.com/wss/host/pills/cialis.html cialis]
 
[http://freeforen.com/wss/host/pills/clarinex.html clarinex]
 
[http://freeforen.com/wss/host/pills/claritin.html claritin]
 
[http://freeforen.com/wss/host/pills/clonazepam.html clonazepam]
 
[http://freeforen.com/wss/host/pills/cyclobenzaprine.html cyclobenzaprine]
 
[http://freeforen.com/wss/host/pills/didrex.html didrex]
 
[http://freeforen.com/wss/host/pills/diflucan.html diflucan]
 
[http://freeforen.com/wss/host/pills/effexor.html effexor]
 
[http://freeforen.com/wss/host/pills/elavil.html elavil]
 
[http://freeforen.com/wss/host/pills/estradiol.html estradiol]
 
[http://freeforen.com/wss/host/pills/fioricet.html fioricet]
 
[http://freeforen.com/wss/host/pills/flexeril.html flexeril]
 
[http://freeforen.com/wss/host/pills/flonase.html flonase]
 
[http://freeforen.com/wss/host/pills/fluoxetine.html fluoxetine]
 
[http://freeforen.com/wss/host/pills/fosamax.html fosamax]
 
[http://freeforen.com/wss/host/pills/imitrex.html imitrex]
 
[http://freeforen.com/wss/host/pills/lamisil.html lamisil]
 
[http://freeforen.com/wss/host/pills/levitra.html levitra]
 
[http://freeforen.com/wss/host/pills/lexapro.html lexapro]
 
[http://freeforen.com/wss/host/pills/lipitor2.html lipitor2]
 
[http://freeforen.com/wss/host/pills/lorazepam.html lorazepam]
 
[http://freeforen.com/wss/host/pills/meridia.html meridia]
 
[http://freeforen.com/wss/host/pills/motrin.html motrin]
 
[http://freeforen.com/wss/host/pills/nexium.html nexium]
 
[http://freeforen.com/wss/host/pills/norvasc.html norvasc]
 
[http://freeforen.com/wss/host/pills/ortho.html ortho]
 
[http://freeforen.com/wss/host/pills/paxil.html paxil]
 
[http://freeforen.com/wss/host/pills/phentermine.html phentermine]
 
[http://freeforen.com/wss/host/pills/prevacid.html prevacid]
 
[http://freeforen.com/wss/host/pills/prilosec.html prilosec]
 
[http://freeforen.com/wss/host/pills/propecia.html propecia]
 
[http://freeforen.com/wss/host/pills/prozac.html prozac]
 
[http://freeforen.com/wss/host/pills/remeron.html remeron]
 
[http://freeforen.com/wss/host/pills/renova.html renova]
 
[http://freeforen.com/wss/host/pills/retin.html retin]
 
[http://freeforen.com/wss/host/pills/seasonale.html seasonale]
 
[http://freeforen.com/wss/host/pills/sildenafil.html sildenafil]
 
[http://freeforen.com/wss/host/pills/soma.html soma]
 
[http://freeforen.com/wss/host/pills/tadalafil.html tadalafil]
 
[http://freeforen.com/wss/host/pills/tetracycline.html tetracycline]
 
[http://freeforen.com/wss/host/pills/tramadol.html tramadol]
 
[http://freeforen.com/wss/host/pills/ultracet.html ultracet]
 
[http://freeforen.com/wss/host/pills/ultram.html ultram]
 
[http://freeforen.com/wss/host/pills/valium.html valium]
 
[http://freeforen.com/wss/host/pills/valtrex.html valtrex]
 
[http://freeforen.com/wss/host/pills/viagra.html viagra]
 
[http://freeforen.com/wss/host/pills/wellbutrin.html wellbutrin]
 
[http://freeforen.com/wss/host/pills/xanax.html xanax]
 
[http://freeforen.com/wss/host/pills/xenical.html xenical]
 
[http://freeforen.com/wss/host/pills/yasmin.html yasmin]
 
[http://freeforen.com/wss/host/pills/zithromax.html zithromax]
 
[http://freeforen.com/wss/host/pills/zoloft.html zoloft]
 
[http://freeforen.com/wss/host/pills/zovirax.html zovirax]
 
[http://freeforen.com/wss/host/pills/zyban.html zyban]
 
[http://freeforen.com/wss/host/pills/zyrtec.html zyrtec]
 
[http://ifa-space.de/host/pills/aciphex.html aciphex]
 
[http://ifa-space.de/host/pills/acyclovir.html acyclovir]
 
[http://ifa-space.de/host/pills/adipex.html adipex]
 
[http://ifa-space.de/host/pills/aldara.html aldara]
 
[http://ifa-space.de/host/pills/alesse.html alesse]
 
[http://ifa-space.de/host/pills/allegra.html allegra]
 
[http://ifa-space.de/host/pills/alprazolam.html alprazolam]
 
[http://ifa-space.de/host/pills/ambien.html ambien]
 
[http://ifa-space.de/host/pills/amoxicillin.html amoxicillin]
 
[http://ifa-space.de/host/pills/buspar.html buspar]
 
[http://ifa-space.de/host/pills/butalbital.html butalbital]
 
[http://ifa-space.de/host/pills/carisoprodol.html carisoprodol]
 
[http://ifa-space.de/host/pills/celebrex.html celebrex]
 
[http://ifa-space.de/host/pills/celexa.html celexa]
 
[http://ifa-space.de/host/pills/cialis.html cialis]
 
[http://ifa-space.de/host/pills/clarinex.html clarinex]
 
[http://ifa-space.de/host/pills/claritin.html claritin]
 
[http://ifa-space.de/host/pills/clonazepam.html clonazepam]
 
[http://ifa-space.de/host/pills/cyclobenzaprine.html cyclobenzaprine]
 
[http://ifa-space.de/host/pills/didrex.html didrex]
 
[http://ifa-space.de/host/pills/diflucan.html diflucan]
 
[http://ifa-space.de/host/pills/effexor.html effexor]
 
[http://ifa-space.de/host/pills/elavil.html elavil]
 
[http://ifa-space.de/host/pills/estradiol.html estradiol]
 
[http://ifa-space.de/host/pills/fioricet.html fioricet]
 
[http://ifa-space.de/host/pills/flexeril.html flexeril]
 
[http://ifa-space.de/host/pills/flonase.html flonase]
 
[http://ifa-space.de/host/pills/fluoxetine.html fluoxetine]
 
[http://ifa-space.de/host/pills/fosamax.html fosamax]
 
[http://ifa-space.de/host/pills/imitrex.html imitrex]
 
[http://ifa-space.de/host/pills/lamisil.html lamisil]
 
[http://ifa-space.de/host/pills/levitra.html levitra]
 
[http://ifa-space.de/host/pills/lexapro.html lexapro]
 
[http://ifa-space.de/host/pills/lipitor2.html lipitor2]
 
[http://ifa-space.de/host/pills/lorazepam.html lorazepam]
 
[http://ifa-space.de/host/pills/meridia.html meridia]
 
[http://ifa-space.de/host/pills/motrin.html motrin]
 
[http://ifa-space.de/host/pills/nexium.html nexium]
 
[http://ifa-space.de/host/pills/norvasc.html norvasc]
 
[http://ifa-space.de/host/pills/ortho.html ortho]
 
[http://ifa-space.de/host/pills/paxil.html paxil]
 
[http://ifa-space.de/host/pills/phentermine.html phentermine]
 
[http://ifa-space.de/host/pills/prevacid.html prevacid]
 
[http://ifa-space.de/host/pills/prilosec.html prilosec]
 
[http://ifa-space.de/host/pills/propecia.html propecia]
 
[http://ifa-space.de/host/pills/prozac.html prozac]
 
[http://ifa-space.de/host/pills/remeron.html remeron]
 
[http://ifa-space.de/host/pills/renova.html renova]
 
[http://ifa-space.de/host/pills/retin.html retin]
 
[http://ifa-space.de/host/pills/seasonale.html seasonale]
 
[http://ifa-space.de/host/pills/sildenafil.html sildenafil]
 
[http://ifa-space.de/host/pills/soma.html soma]
 
[http://ifa-space.de/host/pills/tadalafil.html tadalafil]
 
[http://ifa-space.de/host/pills/tetracycline.html tetracycline]
 
[http://ifa-space.de/host/pills/tramadol.html tramadol]
 
[http://ifa-space.de/host/pills/ultracet.html ultracet]
 
[http://ifa-space.de/host/pills/ultram.html ultram]
 
[http://ifa-space.de/host/pills/valium.html valium]
 
[http://ifa-space.de/host/pills/valtrex.html valtrex]
 
[http://ifa-space.de/host/pills/viagra.html viagra]
 
[http://ifa-space.de/host/pills/wellbutrin.html wellbutrin]
 
[http://ifa-space.de/host/pills/xanax.html xanax]
 
[http://ifa-space.de/host/pills/xenical.html xenical]
 
[http://ifa-space.de/host/pills/yasmin.html yasmin]
 
[http://ifa-space.de/host/pills/zithromax.html zithromax]
 
[http://ifa-space.de/host/pills/zoloft.html zoloft]
 
[http://ifa-space.de/host/pills/zovirax.html zovirax]
 
[http://ifa-space.de/host/pills/zyban.html zyban]
 
[http://ifa-space.de/host/pills/zyrtec.html zyrtec]
 
[http://space.webshells.de/host/pills/aciphex.html aciphex]
 
[http://space.webshells.de/host/pills/acyclovir.html acyclovir]
 
[http://space.webshells.de/host/pills/adipex.html adipex]
 
[http://space.webshells.de/host/pills/aldara.html aldara]
 
[http://space.webshells.de/host/pills/alesse.html alesse]
 
[http://space.webshells.de/host/pills/allegra.html allegra]
 
[http://space.webshells.de/host/pills/alprazolam.html alprazolam]
 
[http://space.webshells.de/host/pills/ambien.html ambien]
 
[http://space.webshells.de/host/pills/amoxicillin.html amoxicillin]
 
[http://space.webshells.de/host/pills/buspar.html buspar]
 
[http://space.webshells.de/host/pills/butalbital.html butalbital]
 
[http://space.webshells.de/host/pills/carisoprodol.html carisoprodol]
 
[http://space.webshells.de/host/pills/celebrex.html celebrex]
 
[http://space.webshells.de/host/pills/celexa.html celexa]
 
[http://space.webshells.de/host/pills/cialis.html cialis]
 
[http://space.webshells.de/host/pills/clarinex.html clarinex]
 
[http://space.webshells.de/host/pills/claritin.html claritin]
 
[http://space.webshells.de/host/pills/clonazepam.html clonazepam]
 
[http://space.webshells.de/host/pills/cyclobenzaprine.html cyclobenzaprine]
 
[http://space.webshells.de/host/pills/didrex.html didrex]
 
[http://space.webshells.de/host/pills/diflucan.html diflucan]
 
[http://space.webshells.de/host/pills/effexor.html effexor]
 
[http://space.webshells.de/host/pills/elavil.html elavil]
 
[http://space.webshells.de/host/pills/estradiol.html estradiol]
 
[http://space.webshells.de/host/pills/fioricet.html fioricet]
 
[http://space.webshells.de/host/pills/flexeril.html flexeril]
 
[http://space.webshells.de/host/pills/flonase.html flonase]
 
[http://space.webshells.de/host/pills/fluoxetine.html fluoxetine]
 
[http://space.webshells.de/host/pills/fosamax.html fosamax]
 
[http://space.webshells.de/host/pills/imitrex.html imitrex]
 
[http://space.webshells.de/host/pills/lamisil.html lamisil]
 
[http://space.webshells.de/host/pills/levitra.html levitra]
 
[http://space.webshells.de/host/pills/lexapro.html lexapro]
 
[http://space.webshells.de/host/pills/lipitor2.html lipitor2]
 
[http://space.webshells.de/host/pills/lorazepam.html lorazepam]
 
[http://space.webshells.de/host/pills/meridia.html meridia]
 
[http://space.webshells.de/host/pills/motrin.html motrin]
 
[http://space.webshells.de/host/pills/nexium.html nexium]
 
[http://space.webshells.de/host/pills/norvasc.html norvasc]
 
[http://space.webshells.de/host/pills/ortho.html ortho]
 
[http://space.webshells.de/host/pills/paxil.html paxil]
 
[http://space.webshells.de/host/pills/phentermine.html phentermine]
 
[http://space.webshells.de/host/pills/prevacid.html prevacid]
 
[http://space.webshells.de/host/pills/prilosec.html prilosec]
 
[http://space.webshells.de/host/pills/propecia.html propecia]
 
[http://space.webshells.de/host/pills/prozac.html prozac]
 
[http://space.webshells.de/host/pills/remeron.html remeron]
 
[http://space.webshells.de/host/pills/renova.html renova]
 
[http://space.webshells.de/host/pills/retin.html retin]
 
[http://space.webshells.de/host/pills/seasonale.html seasonale]
 
[http://space.webshells.de/host/pills/sildenafil.html sildenafil]
 
[http://space.webshells.de/host/pills/soma.html soma]
 
[http://space.webshells.de/host/pills/tadalafil.html tadalafil]
 
[http://space.webshells.de/host/pills/tetracycline.html tetracycline]
 
[http://space.webshells.de/host/pills/tramadol.html tramadol]
 
[http://space.webshells.de/host/pills/ultracet.html ultracet]
 
[http://space.webshells.de/host/pills/ultram.html ultram]
 
[http://space.webshells.de/host/pills/valium.html valium]
 
[http://space.webshells.de/host/pills/valtrex.html valtrex]
 
[http://space.webshells.de/host/pills/viagra.html viagra]
 
[http://space.webshells.de/host/pills/wellbutrin.html wellbutrin]
 
[http://space.webshells.de/host/pills/xanax.html xanax]
 
[http://space.webshells.de/host/pills/xenical.html xenical]
 
[http://space.webshells.de/host/pills/yasmin.html yasmin]
 
[http://space.webshells.de/host/pills/zithromax.html zithromax]
 
[http://space.webshells.de/host/pills/zoloft.html zoloft]
 
[http://space.webshells.de/host/pills/zovirax.html zovirax]
 
[http://space.webshells.de/host/pills/zyban.html zyban]
 
[http://space.webshells.de/host/pills/zyrtec.html zyrtec]
 
</div>
 

Viimane redaktsioon: 14. mai 2006, kell 15:23

C++ on üldotstarbeline programmeerimiskeel. Ta on vabas vormis, mitmikparadigmaline staatiliselt trükitav keel mis toetab protseduurilist programmeerimist, andmeabstraktsioone, objektorienteeritud- ning üldist programmeerimist. 1990ndate keskel muutus C++ populaarseimaks kommertsprogrammeerimiskeeleks. Mitte keegi ei oma C++ keelt - ta on täiesti vaba.

1980ndatel aastatel oli Bjarne Stroustrup Bell'i Labs'dest esimene C++'i disainija ning implementeerija (algupärase nimega "Klassidega C") luues võimsamat versiooni C keelest. Lisandid alustasid klassidega millele järgnes, paljude uute huvitavate asjade seas, virtuaalsed funktsioonid, operaatorite ülelaadimised, mitmikpärimikud, mallid ning erandite käsitsemised. Programmeerimiskeele C++ standard ratifitseeriti 1998ndal aastal ISO/IEC 14882:1998'na mille praeguseks, 2003 versiooniks on ISO/IEC 14882:2003.

1998nda aasta C++ Standard koosneb kahest osast - keskkeelest ning standardkeelest. Viimane kaasab endaga Standardmalli teeki ning C Standardteeki. Paljud olemasolevatest C++ teekides ei ole osa Standardist, näiteks Boost. Lisaks on ebastandardsed teekid mis on kirjutatud C keeles, kasutatavad ka C++ programmides.

Programmeerimiskeel C++ ei ole "Parem C keel", ta on enamjaolt laiend C keelele, mis on pühendunud C laiendamisele üld- ning objektorienteeritud programmeerimise paradigmale. Mõned tutvustatud vidinad sisaldavad avalduste kujul deklareerimist, funktsioonilaadseid (?casts?), uus/kustuta, bool, (?reference types?), konstante, sisereafunktsioone, vaikeargumente, funktsioonide ülelaadimist, nimeruume, klasse (k.a kõik klassidega seonduvad featuurid nagu pärandid, liikmefunktsioonid, virtuaalsed funktsioonid, abstraktklassid ja konstruktorid), operaatorite ülelaadimist, malle, :: operaatorit, erandite käsitsemist ning käibeaja tuvastamist.

C++ sooritab ka rohkem trükikontrolli kui C.

Kahe kaldkriipsuga ("//") kommentaarid olid algselt C eelkäija ja BCPL osad ning taaskäsitletud C++'s.

Mitmed C++ vidinad olid hiljem C poolt omandatud, kaasa arvatud const, inline, deklaratsioonid for-tsüklite sees ning C++ stiilis kommetnaarid (kasutades // sümbolit)

C++ algkoodi näidis

#include <iostream>
int main()
{
   std::cout << "Tere maailm!\n";
}

Traditsiooniliselt on esimene programm mis kirjutatakse, "Tere maailm" kuna see on täpselt see mida programm teeb - väljastab ekraanile "Tere maailm".