C++: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
k ←Suntingan Syarif soden (bicara) dibatalkan ke versi terakhir oleh HsfBot
Tag: Pengembalian
Soden.syarif (bicara | kontrib)
Baris 5:
|title = Dasar Pemrograman C++ disertai dengan Pengenalan Pemrograman Berorientasi Objek
|year = 2006
|isbn = 979-763-582-1}}</ref> Pada C++ ditambahkan konsep-konsep baru seperti class dengan sifat-sifatnya seperti inheritance dan [https://syarifsoden.blogsot.com/2020/02/pengertian-dan-fungsi-function-overloading.html overloading].{{fact}} Salah satu perbedaan yang paling mendasar dengan bahasa C adalah dukungan terhadap konsep [[pemrograman berorientasi objek]] (''object-oriented programming'').<ref>{{cite book
|last = Bruce Eckel
|title = Thinking in C++. Jilid 1 dari Thinking in C++ Introduction to Standard C+, Bruce Eckel
Baris 53:
}
</source>
Contoh program untuk merubah format tanggal dapat dilihat dibawah ini:<syntaxhighlight lang="c++">
#include <iostream>
#include <stdlib.h>
#include <conio.h>
 
using namespace std;
 
int main()
{
 
int tgl, bln, th;
 
cout<<"Masukkan data :"<<endl;
cout<<"Tanggal : ";cin>>tgl;
cout<<"Bulan : ";cin>>bln;
cout<<"Tahun : ";cin>>th;
 
system("CLS");
 
cout<<"Data yang Anda masukkan:"<<endl;
cout<<tgl<<"-"<<bln<<"-"<<th;
 
}
</syntaxhighlight>
 
== Keterangan ==
Baris pertama: <source lang="cpp">#include <iostream.h></source>
Baris 282 ⟶ 307:
* Watcom C/C++ compiler
* Zortech
*code blocks
 
== Keluarga bahasa pemrograman C++ ==
Baris 302 ⟶ 328:
 
== Pranala luar ==
*[https://www.syarifsoden.xyz/2019/09/cara-membuat-program-c-menggunakan-code.html https://syarifsoden.blogspot.com/2019/09/cara-membuat-program-c-menggunakan-code.html]
* [http://public.research.att.com/~bs/homepage.html Homepage Bjarne Stroustrup]
* [http://www.cuj.com C++ Users Journal]
* [http://www.sgi.com/tech/stl/ Standard Template Library]