-
Notifications
You must be signed in to change notification settings - Fork 43
Module 4 : Heading Towards C Plus Plus
After 1 whole year of C, now we're going to learn about C++

C++ is a programming language developed from C.
-
Library
<iostream>
This library provide input output functions.-
cin- standard input -
cout- standard output
Trivia: what is the difference between
cinwithscanfandcoutwithprintf?
Hint: Take a glance at the implementation. -
-
namespace
In C, we usually use the prefix on identifier to avoid name conflicts. Thenamespacecan be likened to a container that is used to group functions (or other data) so that they can be distinguished. -
class
Familiar withstruct?classis also a User Defined Data Type. The only difference is the default of the access modifier. In struct the default* ispublic, while inclassthe default isprivate(will be studied further in the Object Oriented Programming course, don't get confused first). -
templateTo create a function orclassthat can adapt and work with different data types, usetemplate. -
and many more...
Note: all libraries that apply in C also apply in C ++, but not the other way around.
What does
using namespace std;mean in the implementation example? ** standard library ** in C ++ uses ** prefix **std::so that it can be used. So, to avoid writing the prefix over and over again, add these lines to the program.
Modul Struktur Data
Ditulis oleh tim Asisten Struktur Data 2020 - Teknik Informatika ITS
Modul 0
- Pengenalan Struktur Data IND | ENG
- Dynamic Array IND | ENG
- Linked List IND | ENG
- Soal Latihan IND | ENG
Modul 1
- Stack IND | ENG
- Queue IND | ENG
- Deque IND | ENG
- Priority Queue (List Based) IND | ENG
- Soal Latihan IND | ENG
Modul 2
- Pengenalan Tree IND | ENG
- Binary Search Tree IND | ENG
- Traversal BST IND | ENG
- Soal Latihan IND | ENG
Modul 3
Modul 4
- Melangkah Menuju C++ | ENG
- Standard Template Library Container | ENG
- Pengenalan Graf | ENG
- Traversal Graf | ENG
Modul 5