اعزائي المبرمجين انا استعمل البرمجة بلغة الc++ و لدي الكود التالي
لا يؤدي المطلوب فهل هناك اي أخطاء الرجاء التصحيح
و شكرا مقدما للمساعدة
#include
#include
#include
#include void main() { clrscr(); int x[6]; double face; double roll; for( roll=1;roll<=1000;roll++) { randomize; //rolling the die and get the faces face=1+random(7)%100; if (face==1) //if the face is one .. x[0]+=1; // increment the counter else if (face==2) x[1]+=1; else if (face==3) x[2]+=1; else if (face==4) x[3]+=1; else if(face==5) x[4]+=1; else if (face==6) x[5]+=1; } for (double i =0;i<6;i++) //is to output the counter {cout<
هل هناك اي خطاء و ماهو التصحيح او ماهو الصحيح و هو تصميم لراس يدور بحركة معينة