#include <iostream>
using namespace std;
int main(){
for (int i = 0; i < 1000; i++) {
int die1, die2, roll1, roll2, point,;
die1 = 1 + rand() % 6;
die2 = 1 + rand() % 6;
point = die1 + die2;
cout << "You rolled: " << point << endl;
if( point == 7 || point == 11 )
{
cout << "You win! Would you like to play again? ";
}
else if( point == 2 || point == 3 || point == 12 )
{
cout >> "Sorry you lose. Do you want to play agin? ";
}
return 0;
}
I got till here. I am getting lots of errors. I can only use the iostream, nothing else. I also need to let the player continue playing. Any help, please?