当我尝试double
从 Vector int 输出该计算时,我的 C++ 控制台应用程序出现问题,它显示给我0
for (int i = 0; i < max_streak_length; i++)
{
cout<< "data win streak of " << i << " acheived : " << gamesData[i];
cout<< " Propallty \t "<< gamesData[i]/(gamesData[0] + gamesData[1])<<endl;
}
输出
data win streak of 0 acheived : 6 Propallty 0
data win streak of 1 acheived : 5 Propallty 0
data win streak of 2 acheived : 2 Propallty 0
data win streak of 3 acheived : 0 Propallty 0
data win streak of 4 acheived : 0 Propallty 0
data win streak of 5 acheived : 1 Propallty 0