Amorssang1
BSOD
- Messages
- 358
Alright, so I'm not to familar with c++ and I was wondering how I could get a random "Month" date for this....
#include <iostream>
using namespace std;
int main ()
{
int num1, num2, total;
cout << "Enter Your Birth Year: ";
cin >> num1;
cout << "Now Enter The Current Year: ";
cin >> num2;
total = num1 + num2;
cout << "Your Doom Date is September 5th Year " << total;
return 0;
}
What I want to do is make the "September" change randomly everytime you enter a new set of numbers. So it would change around....how would I do this? I'm sure it's possible...
#include <iostream>
using namespace std;
int main ()
{
int num1, num2, total;
cout << "Enter Your Birth Year: ";
cin >> num1;
cout << "Now Enter The Current Year: ";
cin >> num2;
total = num1 + num2;
cout << "Your Doom Date is September 5th Year " << total;
return 0;
}
What I want to do is make the "September" change randomly everytime you enter a new set of numbers. So it would change around....how would I do this? I'm sure it's possible...