Go 
|
New 
|
Find 
|
Notify 
|
|
Reply 
|
|
Admin 
|
New PM! 
|

Registered: January 15, 2006
Posts: 6159
|
quote: I finished the damn thing though
Yay  quote: and cap have I ever adaquately explained how amazing you are and how much I love you?
Hehehe...<3
And I would never feel pain / and never be without pleasure, ever, again / and if the reign stops, and everything's dry, he would cry just so I could drink the tears from his eyes...
|

Registered: February 22, 2004
Posts: 13981
|
quote: so the concept is basicly the same
true but the language itself is very different in execution I finished the damn thing though and cap have I ever adaquately explained how amazing you are and how much I love you?
"The very existence of flamethrowers proves that sometime, somewhere, someone said to themselves, "You know, I want to set those people over there on fire, but I'm just not close enough to get the job done"."
|

Registered: January 15, 2006
Posts: 6159
|
quote: wrong type of code I'm doing C++
Javascript and C++ are both object oriented programming, so the concept is basicly the same. Here is a snippit of C+ code that does almost the same thing,... #include <iostream.h>
#include <stdlib.h>
#include <time.h>
int main(int argc, char* argv[])
{
int num = 0;
int range = 0;
int guess = 0;
srand( (unsigned)time( NULL )); //needs to be called before rand().
int secret_number = rand();
cout << " This program is designed to have you guess the number the computer has selected.\n\n";
cout << " Please pick a range of numbers that you wish to guess from. \n\n";
cout << "Enter your range now>>>\n\n";
cin >> range;
//scale the secret number to the given range...
double rangefactor = 0.0;
double randmax = (double)RAND_MAX;
if(range < randmax)
{
rangefactor = (double)range/(double)randmax;
}
else if(range > randmax)
{
rangefactor = (double)randmax/(double)range;
}
secret_number = secret_number * rangefactor;
cout<< " The computer has picked a number.\n";
cout<< " You will have 5 tries and the computer will tell you if you guessed the answer or if you're too high or too low.\n\n";
// need something for range
for (int counter = 1; counter <= 5; counter++)
{
cout << "Enter your guess now>>>\n\n";
cin >> guess;
if (guess < secret_number)
{
cout<< "Too low! Try again.\n\n";
}
else if (guess > secret_number)
{
cout<< "Too High! Try again.\n\n";
}
else
{
cout<< "Well done! You've guess the correct number!\n\n";
break;
}
}
return (0);
}
And I would never feel pain / and never be without pleasure, ever, again / and if the reign stops, and everything's dry, he would cry just so I could drink the tears from his eyes...
|

Registered: February 22, 2004
Posts: 13981
|
wrong type of code I'm doing C++ thanks any way though dear heart
"The very existence of flamethrowers proves that sometime, somewhere, someone said to themselves, "You know, I want to set those people over there on fire, but I'm just not close enough to get the job done"."
|

Registered: January 15, 2006
Posts: 6159
|
quote: I have no clue how to set up a loop statement that will let me guess a number the user is think of between 1-100, not to mention how to make a counter so the comp records the number of guesses it needs http://www.webdevelopersnotes.com/tutorials/javascript/...script_for_loop.php3
And I would never feel pain / and never be without pleasure, ever, again / and if the reign stops, and everything's dry, he would cry just so I could drink the tears from his eyes...
|

Registered: February 22, 2004
Posts: 13981
|
argh! *beats head against the wall* this program for class is killing me! I have no clue how to set up a loop statement that will let me guess a number the user is think of between 1-100, not to mention how to make a counter so the comp records the number of guesses it needs *returns to wall smacking*
"The very existence of flamethrowers proves that sometime, somewhere, someone said to themselves, "You know, I want to set those people over there on fire, but I'm just not close enough to get the job done"."
|

Registered: May 07, 2003
Posts: 7586
|
I've never had problems with XP Professional... *knocks on wood* I had a logic games workshop today. I was kind of dreading it, but it was actually really fun. I did really well and so that was pretty affirming. 
"Never doubt that a small group of committed people can change the world. Indeed it is the only thing that ever has." --Margaret Mead
|

Registered: February 05, 2005
Posts: 929
|
Download WindowsXP Proffessional Service Pack 2, copy it to a CD, format computer, install XP -> Problem solved. No seriously, I work with computers and I looked up some tech info and according to a few trials Vista does actually run quite slower than XP, aside from the fact that it is incredibly ineffective managing the pc's resources. The bright side is that it's Pretty
If god existed he'd be right winged
|

Registered: December 27, 2006
Posts: 3981
|
It came with the computer. 
...a Wandering Star for whom the black darkness has been reserved forever...
|

Registered: February 05, 2005
Posts: 929
|
quote: Does anyone have any strategies on how to sucessfully hack Vista to pieces while keeping the rest of your computer intact?
Don't use Vista! it's evil!
If god existed he'd be right winged
|

Registered: December 27, 2006
Posts: 3981
|
quote: And no, Shade, I have not seen Misery.
Well, it was a question with an implication. In it, this woman keeps someone hostage in her house and goes through all manner of torture to keep him from escaping, including breaking his ankles. Ah, anyhow. Does anyone have any strategies on how to sucessfully hack Vista to pieces while keeping the rest of your computer intact?
...a Wandering Star for whom the black darkness has been reserved forever...
|

Registered: January 16, 2003
Posts: 12687
|
quote: Thanks YV.
No problem. Today they are bringing my brothers body, but the funeral is not until tomorrow. We will go and wait for his body at the airport today. I still can't believe. I still want to act like it didn't happen...
"In a time of universal deceit - telling the truth is a revolutionary act." - George Orwell
|

Registered: February 22, 2004
Posts: 13981
|
quote: Huggle reminds me of a snuggle and a hug...
Drat you've found out the secret power of the huggle and megs sorry about last night, my internet is behaving oddly
"The very existence of flamethrowers proves that sometime, somewhere, someone said to themselves, "You know, I want to set those people over there on fire, but I'm just not close enough to get the job done"."
|

Registered: May 07, 2003
Posts: 7586
|
Thanks YV. I'm having a better morning...kind of out of necessity, but better is better. 
"Never doubt that a small group of committed people can change the world. Indeed it is the only thing that ever has." --Margaret Mead
|

Registered: January 16, 2003
Posts: 12687
|
Thanks guys. It's okay. I think I will get over it. I don't know. As long as he doesn't do any more things. The soldier who is in charge of everything already knows and he got extremely upset. He said that if we wanted to at any moment to point him out and he would physically remove him from the funeral. I don't think that will be necessary though. I appreciate the support you guys are giving me. Thank you so much. *hug for Meg* I'm sorry you're not having a good night girl.  And no, Shade, I have not seen Misery.
"In a time of universal deceit - telling the truth is a revolutionary act." - George Orwell
|

Registered: October 28, 2005
Posts: 5354
|
Huggle reminds me of a snuggle and a hug...
draft beer not soldiers...
|

Registered: May 07, 2003
Posts: 7586
|
Thanks Amp. I really do.
"Never doubt that a small group of committed people can change the world. Indeed it is the only thing that ever has." --Margaret Mead
|

Registered: February 22, 2004
Posts: 13981
|
*gives megs a huggle* I think you need one right now
"The very existence of flamethrowers proves that sometime, somewhere, someone said to themselves, "You know, I want to set those people over there on fire, but I'm just not close enough to get the job done"."
|

Registered: May 07, 2003
Posts: 7586
|
I'm not having a very good night. Thanks to those of you who were talking to me while I was melting down. I'm feeling somewhat better at the moment despite the fact that I'm still a bit too wound up to go to sleep.
"Never doubt that a small group of committed people can change the world. Indeed it is the only thing that ever has." --Margaret Mead
|

Registered: February 22, 2004
Posts: 13981
|
quote: and a *huggle* while I'm at it.
hah! see? they're spreading!  and YV I have some connections... just tell me how badly you don't want him there... and of course name and addresses my connections are highly patriotic and dislike such dishonor being given to a veteran's family like that
"The very existence of flamethrowers proves that sometime, somewhere, someone said to themselves, "You know, I want to set those people over there on fire, but I'm just not close enough to get the job done"."
|
 | Please Wait. Your request is being processed... |
|