i’m unique
Menghitung Jumlah Huruf Dalam Kalimat
{ C++, algorithm } { }
26
November
2008

I’m sorry because I use bahasa for the tittle of this post because I confuse how to describe about this post. As usually, I get questions about C++ here and I will try to answer as I can. The question is how to calculate the frequency of each letter appears in a sentence using the C++ program. OK, I’ll try to answer it.

The algorithm is, first, we must enter a sentence, in C++ we should use the function cin.getline. Then we must find the length of that sentence. Then we compare each letter from the letter “a” to the letter “z” and calculate the amount. For more details, please download the C++ program here. Sample results are displayed as below.

Related Posts

11 Comment

boyin
November 27th, 2008 at 3:06 am

nyasar kemari..nyama bali juga..lam kenal

salam kenal kembali, suksma sudah mampir :-)

arqu3fiq
November 27th, 2008 at 8:51 pm

Met Pagi Bli Wira.
Apa kabar?

Sory aku ndak ngerti C++ itu apaan secara q jurusan Sastra. Tapi Q selalu menyimak pelajaran dari Bli Wira.

Bli sekarang anda tak perlu puzing lagi comment di Blog ku, Just simple. Easy than yours. I hope you Visit now.

Thanx Bli wira.

scarface
November 28th, 2008 at 5:51 am

I never think about this,,,jut write :D

devari
November 28th, 2008 at 1:26 pm

wah lontar wayah pesu ne :)

chazzuka
November 28th, 2008 at 10:21 pm

bos jeg buka kursus online langsung …

Dim a,o,i,z
a = “satu satu dua”
Set o = server.createobject(”scripting.dictionary”)
for i=0 to len(a)
z = a(i)
if o.exists(z)=true then
o.item(z) = o.item(z)+1
else
o.Add z,1
end if
next

Dim k,v
k = o.keys
v = o.Items
for i=0 to o.Count-1
Response.Write(k(i)+”=”+v(i))
next

set d=nothing

beneh sing to hahaha

pande baik
November 29th, 2008 at 7:14 am

HaLo, BLi Dosen. Lama tak sua, semoga dalam waktu dekat bisa jumpa. Mau asistensi tentang Thesis saya. :)

adinata
November 29th, 2008 at 12:15 pm

i want to try, need permission for dunlud

penyu
November 30th, 2008 at 7:29 am

woagh nice script bro :D, poor me i dont understant C++, i spec in D++ hehehe just kidding bro :)

msgbox “Aduh sing ngerti ne, help please :D”,vbError

end
dispose Me

mirah
December 17th, 2008 at 8:39 am

bli de, gaen jep tugas, tiang pun coba, tapi jelek, tow tugas praktek algoritma, ada tugas materine, orin ngae animasi kayak game pinball…
please.. thx

mega
mega
December 20th, 2008 at 4:33 am

I am your student at the stikom bali, in class N081

My task of the “perkalian metrik” and “tanggal”. I have send to email wirautama06@yah00.com, what it email true!!

Gusman
Gusman
December 24th, 2008 at 7:20 am

pak apa file header untuk memakai fungsi delay, saya sudah coba menggunakan dos.h tetapi tetap saja delay tidak dapat dikenali. saya ingin membuat tulisan bisa jalan, misalnya dari kiri ke kanan. ada gak fungsi selain delay ? kalau ada cara penulisannya gimana dan headernya memakai apa ?? Mohon di balas pak . terima kasih

Leave a Reply