Nairaland ForumWelcome, Guest: Join Nairaland / Login / Trending / Recent / NewStats: 1061229 members, 1231624 topics. Date: Monday, 20 May 2013 at 03:01 PM |
Nairaland Forum / Selencious's Profile / Selencious's Posts
(0) (1) (2) (3) (4) (5) (6) (7) (8) (9) (of 15 pages)
Is the program asking the user to roll the dice or it automatically rolls the 3 dice and gives u random output. If its automatic, then this is the program. #include <iostream> #include <time.h> //you must add this to use time(NULL) #include <cstdlib> using namespace std; int main() { int dice1; int dice2; int dice3; {time_t now,begin; cout<< "\nRolling the First Dice" << endl; srand((unsigned)time(NULL)); // initialize the random number generator dice1 = rand() % 6 + 1; //remainder of the random number divided by 6 now = begin = time(NULL); while (now<=begin+2){now=time(NULL);} //waits 2 seconds cout<< "\nRolling the Second Dice" << endl; srand((unsigned)time(NULL)); /*you should reinitialize the random number each time or you'll end up with the same number on each dice*/ dice2 = rand() % 6 + 1; now = begin = time(NULL); while (now<=begin+2){now=time(NULL);} //waits 2 seconds cout<< "\nRolling the Third Dice" << endl; srand((unsigned)time(NULL)); dice3 = rand() % 6 + 1; now = begin = time(NULL); while (now<=begin+2){now=time(NULL);} //waits 2 seconds } int Total; cout<< "\nYou just rolled " << endl << dice1 << endl << endl << dice2 << endl << endl << dice3 << endl << endl; Total=dice1+dice2+dice3; cout<< "\nThe total of these dice is " << Total << endl << endl; //Display my name cout << "Programmer: Selencious\n" << endl; return 0; } |
Java is best for it; you can'y get a good result with C++ in cases like this. |
Python is the easiest of all the languages. Very easy to learn and less error because it is an interpreted language. Out of all the languages I know so far, java is the hardest. |
Well, lets pray to find the right man. A God fearing one. |
Yo!!! She back and back for good. Plus, she really looking good;she lost some weight. She rocks!! |
I do find it disgusting. Reminds me of da funny song-" Looking lika f**l with your pant on the ground"lls |
Abuzola !: To Imams sleeping with young girls, to Alfas getting married to girls who re young enough to be their grand daughter's. To Mu*****D sleeping around and impregnating women, taking other men's wife, etc, and calling it a religion "Muslim" BullShit!!!! GET A LIFE |
Hey!! It hasn't been confirmed yet. Its still a rumor not yet a fact. |
I prefer C++ to java. Im an expert in C++. |
Lotsa Harers!! Ugly or nat, she is achieved something great wif her beauty;she is a star and will remain a star. I bet none of you beefing her ain half as pretty as she is. Good luck 2her |
@Poster, point of correction, YOU DON'T LOVE GOD. If you love me, you will keep my commandments(John 14:15) saith the Lord. Sex b4 marriage is a sin, especially when you go on and on;sin of commission. You need to rededicate your life to Christ, accept him totally. You also need to go for deliverance to get delivered of the spirit of fornication. Fornication is a spirit that is in you;it doesn't leave until it destroys the person's life.Only through violent prayer, deliverance, fasting, studying the word of God, etc can the spirit let go of you. Good luck to you |
Nope! But in very few case. If you both have a cut in your mouth that brings out blood,it might be a sore in the mouth etc; you might contact it. |
I wouldn't sure love that. But, if it happens, I would just braze up, go oer to her, give her a smile, a hug and chat with her. No big deal!! |
Yup!! I think the country would end up being divided or in war. The Hausas especially needa go make m country and if the yoruba muslims wanna go with em, they should. I think the main problem with Nigeria is the diffrnt tribes, but theve now made it a muslim/christian case. Once war starts, the hausas would end up killing the yorubas(muslim or not) and igbos becos they believe they are Christians. The Hausas are illiterates and evil; I ain know why they love to shed blood, Ive heard too many bad news, shedding of blood, etc. Enough is enough; something need to be done. |
I am very generous and loving. Volunteering is what I love doing I am a Christian and can't do anything without seeking God first I am Phi Theta Kappa member I don't drink or smoke. ![]() |
It is advisable for every one to get a clipper. Because, it is so possible to contact HIV through clippers and I know that no matter how you warn or what you the barbers in Nigeria, most of em would still not sterilize the clipper. I mean Sterilize(the use of ointment that kills the hiv virus to clean the clippers). So y'all wanna be on the safe side;go get a personal clipper and take it wif you to the barber's shop. |
The holy spirit is the spirit of God, he lives in us(those who practice the will of God). So, I don't think itz possible to worship the holy spirit. God Almighty is God the father, God the son and God the Holy Spirit. Those 3, work together as one. Bout mary and the saints, it is sure idolatory to worship them. |
So What are we suppose to do with the pics? It would have made more sense if u had posted his pics while in harvard, studying hard, when he ran for the president, his great speeches, etc. I mean something that you can all look up to and imitate and not him while smoking. Crap!! |
lol!! I know. "Keeping up with the Joneses". Itz no big deal here though, most people use it, even some high school students. |
Sade Adu!! Yup! I heard her new release, soldier of love. She is da bomb, and im really really glad she is back. |
OMG Alex, U are sooo silly. Y'all don't pay attention to him;he's mi room mate.He used mi computer to get on here, forgt to sign out. He is no Nigerian, He is just being silly playing around, Ima get @ U Alex. |
lol, This is funny!! Emi O Mo |
NOPE!!! Def nat gud. I'd better have a simple wedding than borrow money to have a big time wedding. After d wedding, what next? Uld be screwed tryna pay back while the people u tryna please are in their various houses having a good time. They might not even care bout u, call u after the wedding or get u a wedding gift. Cut ur coat according to ur cash. U ain wanna start ur 1st wedding month in debt. |
Im digging all of Chuqudu's post . Happy Val to Y'all. |
Umm! Mine is 6 of feb. The generous part is soooo true and mi relationship is on the smooth track;cos Im d dedicated type. The rest, I ain really know. I kinda believe the astrology stuff in a way, especially the one bout Feb. |
Ester- Star/myrtle/Composed |
But, MJ ain here anymore; he can't make decision, and you can't talk for him either, cos you not him, Anyways, we not all the same. You might love what I hate;vice versa. We all just giving our opinions. |
Beauty is not everything;it fades away. That she is not pretty on the outside does not mean she is not on the inside. Depends on what you want. Its either you go for beauty or you go for true love. Don't be so deceived by beauty, go for a gurl with a good character and beauty on the inside. Moreover, if u ain really love her, then just tell it to her, so she can leave you alone and go for someone else. |
Now!Who u think you are?U is so Ignorant!!! I have read many posts on you talk bad bout Jesus. Now you tryna talk like a good religious person, ha ha ha! You sound like the cursed one. |
Why are some people so pessimistic? The Celeb version is DA bomb. |
![]() |
@Poster!!Dream on. You think gurls are in love with Men cos they gat white teeth?Hell no. Even if your teeth is as black as coal and you gat $$$, you gonna c the prettiest chicks dyeing to kiss you. 4Real |
(0) (1) (2) (3) (4) (5) (6) (7) (8) (9) (of 15 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health Links: (0) (1) (2) (3) (4) (5) (6) (7) (8) (9) Nairaland - Copyright © 2005 - 2013 Oluwaseun Osewa. All rights reserved. See Privacy Policy & Nairalist. 72.44.48.122 |