i’m unique
Program C++ Mengurutkan String
{ C++ } { 6 Comments }
15
March
2008

Berikut ini satu pertanyaan lagi yang ditanyakan oleh eurica atush disini

i have another question that i really2 confuse… can u help me… pls

Assume that you are required to enter a list of strings into a computer, rearrange them
in alphabetical order, and then print out the rearranged list. The strings must be stored
in a two-dimensional character array. Each string will be stored in a separate row
within the array. You may use any suitable string manipulation functions. One of the
library functions that can be used is strcmpi.

Read the rest of this entry »

Program C++ Membalik Isi Array
27
February
2008

Berikut ini pertanyaan dari eurica atushi disini.

hi there i have a question here..

write a program that reverses the string contents of a stack (the top and bottom elements exchange positions, the second last element exchange positions, and so forth until the entire stack is reversed). Hint: you may use a second stack. The following diagram illustrates the exchange process.

A E
B D
C C
D B
E A

Ah, dasar saya nggak terlalu ngerti english, jadi mesti baca baik-baik dulu maksud pertanyaannya. Dan setelah mencoba mengerti, kurang lebih maksudnya adalah bagaimana logika membalik isi sebuah array. Saya sudah mencoba membuat programnya, kalau ada yang berminat download, silahkan klik disini.

Mengenal Array
{ C++ } { 2 Comments }
27
February
2008

Array adalah kumpulan data bertipe sama yang menggunakan nama sama. Dengan mengggunakan array, sejumlah variabel dapat memakai nama yang sama. Antara satu variabel dengan variabel lain di dalam array dibedakan berdasarkan subscript. Sebuah subscript berupa bilangan di dalam kurung siku. Melalui subscript inilah masing-masing elemen array dapat diakses.

Read the rest of this entry »