Program only works correctly with single digit numbers. When I enter numbers with more than one digit, the second input is skipped. Please help!
<code>
#include<iostream>
#include<string>
#include<sstream>
#include <Windows.h>
#include <ctime>
#include <cstdlib>
#include <unistd.h>
#include <iomanip>
using namespace std;
string number1;
string number2;
int main()
{
for (int j = 0; j<100; j++)
{
cout << "Please enter a number: ";
cin >> number1[j];
cout << "Please enter a second number: ";
cin >> number2[j];
cout << number1[j] << endl;
cout << number2[j] << endl;
if(number1[j]=='1'){
cout << "SUCCESS" << endl;
}
}
}
</code>