[Solved] C++ dice rolling and graph [closed]


so i ended up figuring it out. i ended up placing the graph in a different part of the code and got it working.

for (int face = 2; face < arraysize; face++)
{

    sum = ((sum + counter[face]) / 36000000) * 100;
    cout << setw(7) << face << setw(13) << counter[face] << setw(15) << fixed << setprecision(1) << sum;


    for (int s = (counter[face] * 100 / 36000000); s > 0; s--) {

        cout << '*';

    }
    cout << endl;
}
system("Pause");
return 0;
}

Thanks for the suggestion!

0

solved C++ dice rolling and graph [closed]