Program in c++

Hi everyone.
I have to write program in c++ for tomorrow's lesson, but i'm not good in it :(
What I have to do?
Cubic dice

Can someone help me?
Comments
20
I only have ansi c, sorry :<
dont show up
i still have the game i did with my mates for a school project in borland c++ builder 6,
if youre allowed to use it i can send it to you, np just write a pm
uuuuuuuuuuuuuuuuuuuuuu zle :XD
lol

rookie
You've not really given much to go on there.. :D?
make a method that returns a random number between 1-6

done
google for some Random method for c++ lol

I don't know about c++, but it's super easy at c#.

Random R = new Random();
gargle my cum
srand(time(NULL));
cout << rand() % 6 + 1 << endl;
return;
code a et mod :D
#include <iostream>

int main()
{
std::cout << "Hello World!" << std::endl;
std::cin.get();
return 0;
}
guaranteed A with that code
Parent
#include <iostream>
#include <string>

using namespace std;

int main() {
string name;
cout<< "WHATS YOUR NAME?" << endl;
getline(cin, name);
cout<< name << " IS GAY :D" << endl;
return 69;
}
Calculator Calc;
int Calculator::Subtract(int NumberOne,int NumberTwo)
{

int Num1 = NumberOne, Num2 = NumberTwo;
cout << "________Add:________\n\n";
cout << "NumberOne = " << Num1 << "\n"; //Our Txt
cout << "NumberTwo = " << Num2 << "\n\n"; //Our Txt
cout << "NumberOne - NumberTwo = " << Num1 - Num2; //Do our Subtraction
cout << "\n\n\n";
return 0;
}

int Calculator::Add(int NumberOne,int NumberTwo)
{
int Num1 = NumberOne, Num2 = NumberTwo;
cout << "________Subtract:________\n\n";
cout << "NumberOne = " << Num1 << "\n"; //Our Txt
cout << "NumberTwo = " << Num2 << "\n\n"; //Our Txt
cout << "NumberOne + NumberTwo = " << Num1 + Num2; //Do our Sum
return 0;
}


int main()
{
Calc.Minus(238,69); //Call
Calc.Add(40,40); //Call
return 0;
}
Back to top