|
Post by Derek on May 17, 2005 23:31:33 GMT -5
hey guys check it outz (or girlz) It's a program i made in C++ that estimates how many times you have masturbated. i still have to add a few more lines of codes like Days you havnt jerked in the past X years. heres a screen shot of my results. the link to download it is at. www.llamalords.com/gallery/timesyouhavemasturbated.zipP.S. where it says "What Today is?" it wants to know the exact day, (ie, Janurary 1st. is 1, May 17th is 137)
|
|
|
Post by me on May 18, 2005 0:09:55 GMT -5
You got too much time on your hands dude. lol
|
|
|
Post by Derek on May 18, 2005 0:35:14 GMT -5
lol, yea. Well i was just trying to see how what i learnd could be applied to a "real-world" situation using the
int feature. infact my code is free to anyone if they want it.
/* How many times you have masturbated by Derek Blakeman derekblakeman@gmail.com http://www.llamalords.com Copyright All Rights Reserved 2005 */
#include <iostream.h> #include <stdlib.h>
int main() { int Age; // How old is the user int Smaster; // Started Masturbating int MperWeekDayA; // Masturbate per day average int WeekEnd; // Masturbated over a weekend int DayToday; // What day of the year is it? int AllYears; // Days til today AllYears = 365; // days til today int NthisY; // not this year cout << "How old are you?: "; cin >> Age;
cout << "When did you start masturbating?: "; cin >> Smaster;
cout << "What day is today? (ie. 12, 248, 356...): "; cin >> DayToday;
cout << "How often do you masturbate on a week day?: "; cin >> MperWeekDayA;
cout << "How much do you masturbate over the weekend?: "; cin >> WeekEnd;
cout << "How many days this year have you NOT masturbated?: "; cin >> NthisY;
cout << "You have masturbated " ; cout << Age * Smaster * AllYears + 252 * MperWeekDayA * 5 * WeekEnd + 2 - DayToday - NthisY;
cout << " "; cout << "times all your life."; cout << "Created by Derek Blakeman of Llamalords.com";
system("PAUSE"); return 0; }
|
|
|
Post by Bradley on May 18, 2005 9:52:36 GMT -5
Wow. You have a bit to much time if you make a program like that.
FYI: \n starts a new line.
|
|
ProtoChrome
Veteran Member
I have an idea SO smart, that my head would explode if I even begin to know what I was talking about
Posts: 164
|
Post by ProtoChrome on May 18, 2005 10:35:36 GMT -5
How much spare time do ou have?
|
|
|
Post by Tommy Huynh on May 18, 2005 12:53:49 GMT -5
I can make the equvilent of that programme in Java. But I'm not as perverted as you. Remember Derek, we have to keep this board PG-13.
|
|
|
Post by Derek on May 18, 2005 17:21:10 GMT -5
Wow. You have a bit to much time if you make a program like that. FYI: \n starts a new line. \n depends on what your header is. sometimes it could be std::endl
|
|