05 July, 2005

Which one is your favorite?

/*****************************

Which one is your favorite?

******************************/

#include

int main(void)

{

Show();

int choice;

cin>>choice;

while(choice != 3 )

{

Switch(Choice)

{

case 1: rugged();

break;

case 2: smooth();

break;

default: cout<<"This's not a choice.\n";

}

Show();

cin>>choice;

}

cout<<"Bye~~\n";

return 0;
}


void Show(void)

{

cout<<" Please enter which one is your favorite.\n"

"1) : The life is smooth.\n"

"2) : The life is rugged.\n"

"3) : Quit!!\n";

}

void smooth(void)

{

cout<<" Happy everyday!\n"

cout<<" Don't worry about anything!\n"

cout<<" Sometime will feel boring!\n"

cout<<" Sometime you will question yourself!\n";

}


void rugged(void)

{

cout<<"Maybe you will hate God!\n"

cout<<"When you overcome, you will thank God!\n"

cout<<"Challenge will be interesting!\n"

cout<<"Nothing will be a big deal!\n"

cout<<"Colorful life!\n";

}



Compiler: 0 Error 0 Warning

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?


Click Here