To love or not to love, that is the question

2007 ||  Readers: 9

More articles from:

http://reginaAlex.spaces.live.com/ Alex
27     0

void love(char Say_yes)
{
   if (Say_yes != 'y' && Say_yes != 'Y')
   {
      cout<<"i still love you,";
      cout<<"Could you give me one more chance, please!!? (y or n): ";
      cin>>Say_yes;
      love(Say_yes);      //function calls itself
   }
}

Like this article? Click “Recommend” to let others know your interest. Click "Tool Box"-> "Save" to add this article as your favourite.

Articles: