//bool cont = true, gameover = false;
//unsigned userScore = 0, computerScore = 0;
cout << "Choose how many dice to roll: ";
cin << n;
for(i = 0; i < n; ++i)
i = rand()%6+1;
//dice[i] = rand()%6+1;
cout << i << endl;
The Code is suppose to ask for a number of dice to roll and then generate that may random dice. This is just the intial stages of my program so I just want to start with having read in the number of dice and then spitting out however many were asked for. My problem is that I get back an error code which I don't understand.
error C2784: 'std::basic_ostream<char,_Traits> &std::operator <<(std::basic_ostream<char,_Traits> &,unsigned char)' : could not deduce template argument for 'std::basic_ostream<char,_Traits> &' from 'std::istream'
c:\program files\microsoft visual studio 9.0\vc\include\ostream(930) : see declaration of 'std::operator <<
It does the c2784 40x and 1 error C2676 if that helps.
I believe that this results from a simple command that I am not placing in the code.