Ada 2 perintah di dalam struktur data Queue yaitu store dan retrieve.
- algoritma store
- algoritma retrieve
void store (char c)
{
q[m]=c;
if(m==9)m=0;
else m++;
}
char ret()
{
cout <<"result = " <<q[h]<<endl;
if(h==9)h=0;
else h++;
}
Home » Struktur Data » Algoritma Queue
© 2010 WAJIB BERSYUKUR - All Rights Reserved
By Template Blogger - Converted by Belajar SEO Blogspot And Portal Berita
{ 0 komentar... Views All / Send Comment! }
Posting Komentar