Sie sind auf Seite 1von 13

Pendahuluan Praktikum

Pemrograman Dasar 2
TEKNIK KOMPUTER @2018
Informasi Mata Kuliah

 Bobot SKS/Jam: 1/3


 Kelompok Mata Kuliah: MK Dasar Keahlian
 Capaian pembelajaran:
 Mahasiswa mampu memahami dan dapat menggunakan berbagai fungsi
lanjutan dari bahasa pemrograman C++,
 Mahasiswa mampu membuat aplikasi yang lebih kompleks dengan
menggunakan pointer, struktur data, kelas dan akses ke dan dari file,
 Mahasiswa mampu menguasai konsol dasar C++ pada graphical user
interface, seperti kontrol dasar, list box & combo box, kotak dialog, menu,
mouse, timer, slider, progress bar, picture, animate, dll,
 Mahasiswa terampil mengerjakan permasalahan secara mandiri atau
berkelompok untuk mengerjakan tugas/proyek pemrograman yang
diberikan.
Pokok Bahasan

1. Introduction / Pre Test 9. Visual Programming 1


2. Pointer 10. Visual Programming 2
3. Dynamic Memory 11. Visual Programming 3
4. Data Structures 12. Visual Programming 4
5. Class 13. Visual Programming 5
6. Inheritance 14. Visual Programming 6
7. Polymorphism 15. Visual Programming 7
8. Post Test 1 16. Post Test 2
Referensi

1. Juan Soulie, C++ Language Tutorial, cplusplus.com, June 2007


2. Learn C++ Programming Language, Tutorialspoint, 2014
3. Richard L. Halterman, Fundamentals of C++ Programming,
October 2017
Asesmen

 Pre Test
 Ketrampilan/Keahlian: 50%
 Post Test 1 : 25%
 Post Test 2 : 25%

Keterangan: semua test berbasis waktu


Review Singkat

 Pointer
A pointer is a variable whose value is the address of
another variable. Like any variable or constant, you must
declare a pointer before you can work with it.
Review Singkat

 Dynamic Memory
Until now, in all our programs, we have only had as much
memory available as we declared for our variables, having
the size of all of them to be determined in the source
code, before the execution of the program. But, what
if we need a variable amount of memory that can only be
determined during runtime? For example, in the case
that we need some user input to determine the necessary
amount of memory space.

The answer is dynamic memory, for which C++ integrates


the operators new and delete.
Review Singkat

 Data Structures
C/C++ arrays allow you to define variables that combine
several data items of the same kind, but structure is
another user defined data type which allows you to
combine data items of different kinds.
Structures are used to represent a record, suppose you
want to keep track of your books in a library. You might
want to track the following attributes about each book:
Title
Author
Subject
Book ID
Review Singkat

 Class
A class is used to specify the form of an object and it
combines data representation and methods for
manipulating that data into one neat package. The data
and functions within a class are called members of the
class.

When you define a class, you define a blueprint for a data


type. This doesn't actually define any data, but it does
define what the class name means, that is, what an object
of the class will consist of and what operations can be
performed on such an object.
Review Singkat

 Inheritance
A key feature of C++ classes is inheritance. Inheritance
allows to create classes which are derived from other
classes, so that they automatically include some of its
"parent's" members, plus its own. For example, we are
going to suppose that we want to declare a series of
classes that describe polygons like our CRectangle, or like
CTriangle. They have certain common properties, such as
both can be described by means of only two sides:
height and base.
Review Singkat

 Polymorphism
The word polymorphism means having many forms.
Typically, polymorphism occurs when there is a hierarchy
of classes and they are related by inheritance.
C++ polymorphism means that a call to a member
function will cause a different function to be executed
depending on the type of object that invokes the function.
Review Singkat

 Visual Programming
Pre Test (40 menit)

 Buatlah program untuk menampilkan deret


bilangan fibonacci hingga 300!
 Buatlah program perkalian matriks (dot
product) dan tampilkan hasilnya dalam
bentuk matriks!

Das könnte Ihnen auch gefallen