Integer Division by Zero?1/x where x > 1 is 0 in integer division. You'll want to have them as doubles instead probably.
Coin toss simulatorIf you keep track of heads, then tails will be howManyTimes - heads, and vice-versa.
winsock error : 'stderr' was not declared in this scope#include <cstdio>
Looping srand(time(NULL));The speed at which you are calling srand() is the issue. If you really want to seed on each call th...
How do I make my number show as 1.0 instead of 1[code]
float decnum = 25.75;
cout << std::fixed << std::setprecision(2) << decnum << endl;