Ok, I am making a fake virus detector, but whenever it loads the virus it says 23 and 6, no matter how much times i try it. Also even though i added system pause it dosent pause
code:
#include <iostream>
#include <iostream>
using namespace std;
int main()
{
string a;.
string b;
string c;
int FV;
int RV;
FV = rand() % 30 + 10;
RV = rand() % 10;
cout << "My name is the Virus Detector!" << endl;
system("pause");
cout << "What is you name?" << endl;
cin >> a;
cout << "Hello, " << a << ". It is a pleasure to meet you!!" << endl;
cin >> b;
cout << "You are welcome!" << endl;
system("pause");
cout << "Wait a second, i'm scanning your system data!" << endl;
system("pause");
cout << "I have found " << FV << " viruses in your computer! " << RV << " of them are slowing your computer down right now!" << endl;
cout << "Would you like me to remove them?" << endl;
cin >> c;
cout << "Wait, I am being attacked by one of the-" << endl;
cout << "Terminator Virus Loaded" << endl;
return 0;
}
#include <iostream>
#include <string>
#include <time>
usingnamespace std;
int main()
{
string name;
string response1;
string response2;
int FV;
int RV;
srand(time(0));
FV = rand() % 30 + 10;
RV = rand() % 10;
cout << "My name is the Virus Detector!" << endl;
system("pause");
cout << "What is you name?" << endl;
cin >> name;
cout << "Hello, " << a << ". It is a pleasure to meet you!!" << endl;
cin >> response1;
cout << "You are welcome!" << endl;
system("pause");
cout << "Wait a second, i'm scanning your system data!" << endl;
system("pause");
cout << "I have found " << FV << " viruses in your computer! " << RV << " of them are slowing your computer down right now!" << endl;
cout << "Would you like me to remove them?" << endl;
cin >> response2;
cout << "Wait, I am being attacked by one of the-" << endl;
cout << "Terminator Virus Loaded" << endl;
return 0;
}