Hey,
I was just mucking around and made a simple random number generator and made a "love percentage game" but, if you re-open the .exe and type the same names in it gives another completely different percentage, would i save the names to do a file or some kind?
#include <iostream>
#include <conio.h>
#include <time.h>
using namespace std;
int main()
{
char firstLover[20];
char secondLover[20];
unsigned int lovePercent;
cout << "Enter The First Lovers Name: ";
cin >> firstLover;
cout << endl << "Enter The Second Lovers Name: ";
cin >> secondLover;
srand ( time(NULL) );
lovePercent = rand() % 100 + 1;
cout << endl << "Your Love Percentage Is : " << lovePercent << "%!";
getch();
}
Please reply with help, A.S.A.P :)