
-----------------------------------
JR
Thu Sep 30, 2004 4:10 pm

Problem with functions
-----------------------------------
Well i gotta do some prog which has 3 options subtraction,addition,multipication. Now it has to choose random numbers from 1-100 and have 3 tries to answers. then if after the last try it is not guesses it tells the answer... now i get some erros with the functions, my program is not completed yet. well check what i did wrong.


//Alex R
//A5
//September 30th


#include 
#include 
#include 

//function for addition
int add (int a,int b)
{
int r;
srand(time(0));
a== rand() %  100;
b== rand () % 100;
r=a+b;
return(r);
}

//function for subtraction
int subtract (int a,int b)
{
int r;
r=a-b;
return (r);
}

//Function for multiplication
int multiply (int a,int b)
{
int r;
r=a*b;
return (r);
}




int main ()
{
int choise;
std::cout