KNOW JULz???

KINSAI KATIGO MUBISAYA..? sori nalng kai bisaya version jud ni...hehe.. Ako diay c
Julius S. Milloza
..never mind nalng sa middle nym..tawag sa ako mga frendz nako "YUS" sumtymz "OYUS"..murag puyos..hehe..pro wafo man.. taasun man ko..ahem..(kai taas jud)..skinny pa jud..hehe.. Ako d kaau ganahan ug frendz..pro naa koi frendz..pro tagsa rasad..d man gud ko ganahn naai makahatag ug bad influince naq..nakzzz..makig frendz ra q qng comp4tabli ko nla..qng d gani pla rai pag biya noh.. Mahilig sad ko sa mga games..sauna na man koi brek game,.sunod kai ni uso man amg gameboy,.man nisunod nasad ang playstation,.adoi kai nangaguba man..karun kai computer na jud..hehe.. Basta wah koi lingaw mag kinatug lng ko..

ONLY DRAGONS KNOW

xslide1.gif xslide2.gif xslide42.gif
plzzz....leave ahh..
Comment Here Pictures, Images and Photos

Wednesday, May 4, 2011

SORTING

#include



int num[6];
int number, tmp;
char choice;

void main(){
for(int i=0;i<5;i++){

cout<<"Enter Number : ";
cin>>number;
num[i]=number;
}
cout<<"\nUnsorted : \n";
for(int j=0;j<5;j++){
cout<<"\t "< cout<<" ";
}

cout<<"\n\nChoices [i]Increasing || [d]Decreasing ";
cout<<"\nChoose ? : ";cin>>choice;

if(choice=='i'||choice=='I'){
for(int next=1;next<5;next++){
tmp=num[next];
int moveItem=next;

while((moveItem>0)&&(num[moveItem-1]>tmp))
{
num[moveItem]=num[moveItem-1];
moveItem--;
}
num[moveItem]=tmp;
}
cout<<"\nSorted[Increasing] Array : \n";
for(j=0;j<5;j++){
cout<<"\t "< cout<<" ";

if(choice=='d'||choice=='D'){
for(int next=1;next<5;next++){
tmp=num[next];
int moveItem=next;

while((moveItem>0)&&(num[moveItem-1]>tmp))
{
num[moveItem]=num[moveItem-1];
moveItem--;
}
num[moveItem]=tmp;
}
cout<<"\nSorted[Increasing] Array : \n";
for(j=0;j<5;j++){
cout<<"\t "< cout<<" ";
}
}
}
}
}

No comments:

Post a Comment

HEY! SOUL SISTER....

Find more artists like Train at Myspace Music

MY PLAYLIST


MusicPlaylistView Profile
Create a playlist at MixPod.com