All pastes #568004 Raw Edit

Miscellany

public cpp v1 · immutable
·published 2007-06-15 06:52 UTC
rendered paste body
#include <cstdlib>#include <iostream>#include <ctime>using namespace std;/* why are you looking at this, GO AWAY! */int main(){int number;srand((unsigned)time(0)); int dice;    std::cout<< "how many dice are you rolling?";    std::cin>> number ;    if (number == 1)       std::cout<< dice << std::endl;    if (number == 2){ // when you have more than one line under an if statement, you need brackets       dice = (rand() % 10) + 1;       std::cout<< dice << std::endl;       dice = (rand() % 10) + 1;       std::cout<< dice << std::endl;}system("pause");    return 0;}