hi guys, i have some questions here Q1- i want to write programme to count the even and oss numbers example: the user input is 12345 so: even= 2 , odd = 3 this is my code [CODE]int even[5]={0,2,4,6,8}; int odd[5]={1,3,5,7,9}; int n[10]; int count_even = 0 ,count_odd = 0; for(int j=0; j < 10; j++) { cin>>n[j]; for(int i=0; i < 5; i++) { if(n[j] == even[i]) count_even++; if(n[j] == odd[i]) count_odd++; } } cout << count_even << " " << count_odd; [/CODE] can you show me what was my mistake? **** Q2- i want to write a programme … +0 hello, i have a code of the game called 'TRON' in c++ an example of the same game in c++ here [url]http://www.mediafire.com/?vnkslb3x0qbd3q0[/url] ((i tried to upload it here but it says invalid every time)) i can't understand some partss of the code so please geys help me understanding the code [CODE]#include # include [/CODE] for two lines, is it for this code? [CODE]double speed = 200; //this decreasing a bit only every loop[/CODE] now, the most dificult part for me [CODE]COORD posP1, posP2, bonus;//COORD is a variable with X and Y attribute bool show_bonus = false, exit = false;//show … -1

The End.