Hi guys. I am currently making a Question and Answer multiple choice Program. So far it is good. I used Array to shuffle 50 questions. the problem of the program is it cannot count the right answers and display it. This is the part of the program that has an error.
cout<<x[list]<<endl; cin>>a; if (a==y[list]) i++; cout<<"Total= "<<i<<"\n"<<endl;
Can you please tell me what is wrong with it? If you want to see my whole program just ask me and i hope you can help me.