Public feed #889885

Unnamed

public text v1 · immutable
Raw Edit
·published 2008-02-03 08:07 UTC
rendered paste body
// donnie.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <cmath>
#include <ctime>
#include <iostream>
using namespace std;

//void statements
void love (int lucky);
void wealth (int lucky);
void health (int lucky);

int main()
{
 //declaire 
  int lucky;
 char cat;

 cout<<"please input your lucky number";
 cin>>lucky;
 
 cout<<"please choose a catagory 'L' = love 'W' = wealth 'H' = health";
 cin>>cat;

 switch(cat)
 {
	 case 'L':
		 love(lucky);
		 break;
	 case 'W':
		 wealth(lucky);
		 break;
	 case 'H':
		 health(lucky);
		 break;
 }

 return 0;
}

void love(int lucky)
{

 //random number generator
	int num;

	srand(lucky);
	num=1+rand()%5;
 
 //switch statement

 switch(love)
 case 1:
 love (lucky)
	 cout<<"You will marry some one rich"<<endl;
     break;
 case 2:
 love (lucky)
	cout<<"you will find your true love"<<endl;
     break;
 case 3:
 love(lucky)
	 cout<<"you will live the fun single life"<<endl;
	 break;
 case 4:
love(lucky)
   cout<<"you will marry soon but not be happy"<<endl;
   break;
 case 5:
love(lucky)
 cout<<"you will live a single miserable life"<<endl; 
break; 
 

	 }










	return 0;
}