what i'm trying to make here is the classic dice game pig
i realize that the program is unfinished, i did not add the computer's choice to take another turn or to hold, and i am not asking you to finish it for me
now, what happens when i build this program is that i get a blank screen and nothing else, could you please tell me what's wrong with my code?
additionally, if you could tell me how to make my code all spaced out and easy to read, i think that would be beneficial to all of us
than you very much =)
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
int humanTurn(int Humantotalscore);
int computerTurn(int Computertotalscore);
int roll ();
int turn = 0;
int d = 0;
int main ()
{
srand(time(NULL));
int Humantotalscore = 0;
int Computertotalscore = 0;
You should pay extra close attention to your while statement! Your error is there, in fact it is the very last character on that line. You don't end a while statement with a semi-colon. The compiler generally won't see it as an error, sometimes a warning if you set up the compiler that way, because it sees it that you are just ending the code rather then making a error. Take out the semi-colon and that should help you move forward in your program development.