Hey. Im struggling with my first real program. Its real basic but it will be funny. Can sum1 look at it and fix it?
Code:
#include <iostream.h>
int fav(int x);
int main()
{
int x;
int random(101);
x=random(101);
{
cout<<"Please hit Enter when you are ready to hear your fortune";
}
if(x>1&&<11)
{
cout<<"You will be a loner for ever!";<<fav(x)
}
else if(x>=11&&<21)
{
cout<<"You may meet a mole!";<<fav(x)
}
else if(x>=21&&<31)
{
cout<<"Dont expect much, but you may get lucky.";<<fav(x)
}
else if(x>=31&&<41)
{
cout<<"You will meet a good housewife, then get divorced, driving you broke!";<<fav(x)
}
else if(x>=41&&<51)
{
cout<<"You will meet a good slut";<<fav(x)
}
else if(x>=51&&<61)
{
cout<<"You are likely to get laid a fair bit!";<<fav(x)
}
else if(x>=61&&<71)
{
cout<<"You will meet a hot person with nice rack, but she only married you for money!";<<fav(x)
}
else if(x>=71&&<81)
{
cout<<"You will be a porn star";<<fav(x)
}
else if(x>=81&&<91)
{
cout<<"Expect a good root all the time!";<<fav(x)
}
else if(x>=91&&<101)
{
cout<<"You will be a cuban I am sillyI am sillyI am sillyI am silly master!";<<fav(x)
}
else if(x<0)
{
cout<<"You will be a virgin and a prostitute wouldnt screw you if you paid her!";<<fav(x)
}
int fav(int x)
{
return x;
}
}
thankz