Code:#include <iostream> #include <stdio.h> int main() { double studentscores[100]; int numA=0, numB=0, numC=0, numD=0, numF=0,i=0, score=0; double high=0, low=0,average, gpa=0; printf("test\n"); while(i<100) { studentscores[i]=0; i++; } i=0; printf("please enter score here--\n"); scanf("%d",score); printf("score= %d\n", score); system("pause"); return 0; }
im just using DEV-C++ to run my C programs because jgrasp is not working on my computer but everytime i compile and run this little snippet of code it just sends me a error report, does anyone know why? the Error says "exe file has encountered a problem, we are sorry for the inconvenience would you like to send an error report?"



LinkBack URL
About LinkBacks


