Program in c++
•
13 Dec 2010, 18:21
•
Journals
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?
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?
if youre allowed to use it i can send it to you, np just write a pm
rookie
done
I don't know about c++, but it's super easy at c#.
Random R = new Random();
cout << rand() % 6 + 1 << endl;
return;
int main()
{
std::cout << "Hello World!" << std::endl;
std::cin.get();
return 0;
}
#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;
}
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;
}