Jumat, 30 September 2011

C++ Versus JAVA

On the Other hand, Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform.

It has no preprocessor.

If you want to use classes in another library, we have to import with name of the library.

There are no preprocessor-like macros.

Java uses packages in place of namespaces.

There are no Java pointers like in the C and C++.

There are no destructors in Java. Java has constructors, similar to constructors in C++.

Java has method overloading that works similar to C++ function overloading.

Java does not support default arguments.

There’s no goto in Java. Java has no templates.

Inheritance in Java is similar as in C++, but the syntax is different.

C versus C++

The main difference between C & C++ is the OOPS (Object Oriented Programming) concept in C++.

This makes C++ much more efficient than C Language. C is procedure oriented language and c++ is object oriented language. But basically it depends on the project to project which language to choose from C or C++.

C language's syntax is very easy as compared to C++.Another Difference is that C uses Top Down approach and focuses on procedures.

In it Data moves as such whereas in C++ uses the bottom up approach and focuses basically on data . There is Data Hiding what we call as data abstraction.

..

Dynamic memory allocation in C is by calloc() and in C++ by malloc() by new and delete respectively. In C we only able to declare the variable in global declaration part, but in C++ it is possible to declare a variable in anywhere in the program.

This is a big advantage of C++ over C because it saves our time while coding. Function prototyping is optional in c whereas it is compulsion in c++.

Sample Syntax for C & C++

C++: -

cout << "Enter two integers"; cin >> v1 >> v2;

C: -

printf("Enter two integers");
scanf("%i %i", &v1, &v2);

In C, we cannot use template and template class. C source code file name should be *.c and *.h for implement file and header file.

Class is not supported in C, so you should convert all of class definition in C++ to structures and functions in C. C++ supports inheritance, polymorphism & encapsulation & C doesn't.

..

Access specifier in C is public, whereas in C++ it is private. C++ has more keywords than C.

Developers:


C: Dennis Ritche in 1972.
C++: Bjrane Stroustrup in 1980s

Link Download Buat Makalah ADBO

Ni link download buat makalah ADBO, tadinya mau langsung ngasih link ke facebook. Tapi facebooknya sensitif ma linknya?

langsung di download dan di kerjakan yo?

Download makalah ADBO

Download referensi makalah

Admin

Rabu, 28 September 2011

Pengertian Struktur Data


Struktur data adalah cara menyimpan atau merepresentasikan data didalam komputer agar bisa dipakai secara efisien. Sedangkan data adalah representasi dari fakta dunia nyata. Fakta atau keterangan tentang kenyataan yang disimpan, direkam atau direpresentasikan dalam bentuk tulisan, suara, gambar, sinyal atau simbol.
Secara garis besar type data dapat dikategorikan menjadi:
Type data sederhana.
  • Type data sederhana tunggal, misalnya Integer, real, boolean dan karakter.
  • Type data sederhana majemuk, misalnyaString
Struktur Data, meliputi:
  • Struktur data sederhana, misalnya array dan record.
  • Struktur data majemuk, yang terdiri dari:
Linier : Stack, Queue, sertaList dan Multilist
Non Linier : Pohon Biner dan Graph
Pemakaian struktur data yang tepat didalam proses pemrograman akan menghasilkan algoritma yang lebih jelas dan tepat, sehingga menjadikan program secara keseluruhan lebih efisien dan sederhana.
Struktur data yang standar yang biasanya digunakan dibidang informatika adalah:
* List linier (Linked List) dan variasinya
* Multilist
* Stack (Tumpukan)
* Queue (Antrian)
* Tree ( Pohon)
* Graph ( Graf )
REVIEW RECORD (REKAMAN)
Disusun oleh satu atau lebih field. Tiap field menyimpan data dari tipe dasar tertentu atau dari tipe bentukan lain yang sudah didefinisikan sebelumnya. Nama rekaman ditentukan oleh pemrogram.
Rekaman disebut juga tipe terstruktur.

Welcome to My Personal Blog

Ass.

Ini adalah postingan pertama saya pada blog personal ini. Blog ini saya bikin disamping untuk tugas kuliah sekalian untuk perjalanan saya selama kuliah.
Semoga isi postingan kedepannya nanti akan bermanfaat bagi kalian semua.

wass.

My Visitor

free counters
 
Candra Personal Blog powered by blogger.com
Design by Free7 Blogger Templates Simple Clean