
-----------------------------------
Clayton
Sat Sep 09, 2006 6:08 pm

Weird Hanging
-----------------------------------
hey, this is my *first* program written in c++, i am using MinGW for my compiler, this program compiles fine, and runs, however, after you enter your bet, it just hangs, and i dont know why, here is my code:


#include 
#include 

int die_roll(int low, int high)
{
    srand ((unsigned)time(NULL));
    return (rand() % (high - low + 1)) + low;
}

int main()
{
    std::string answer, name = "";
    while(answer == "no");
    {
        int money, die1, die2, point, bet = 0;
        money = 500;
        bet = money + 1;
    
        std::cout 