#include <iostream>
#include <stdlib>
using namespace std;
int main()
{
int a = random ( 100 - 1 ) + 1,b = random ( 20 - 1 ) + 1,c = random ( 12 - 1 ) + 1,Q=0,d;
while ( Q < 20 ) {
Q++;
cout<<"What type of dice do you want to roll d%, d20, or d12?\n";
cin>> d;
cin.ignore();
if ( d == 12 ) {
cout<< c;
}
else if ( d == 20 ) {
cout<< b;
}
else ( d == 100 ) {
cout<< a;
}
}
cin.get();
}
i have been working on this for close to a week on and off, and i get a "statement missing ; in function main()" at line 20, and a warning that 'a' is assigned avalue that is never used in function main()
any help any body

New Topic/Question
Reply


MultiQuote






|