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.

11 Comment
nyasar kemari..nyama bali juga..lam kenal
salam kenal kembali, suksma sudah mampir
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.
I never think about this,,,jut write
wah lontar wayah pesu ne
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
HaLo, BLi Dosen. Lama tak sua, semoga dalam waktu dekat bisa jumpa. Mau asistensi tentang Thesis saya.
i want to try, need permission for dunlud
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
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
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!!
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