[-]
Shout:
Click Refresh to load shouts.

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shoutbox has been deactivated.
09-27-2009, 03:53 PM
Post: #21
Shoutbox has been deactivated.
Dark Pallys Wrote:its way too big Confused

That what she said.

Find all posts by this user
Quote this message in a reply
09-27-2009, 05:34 PM
Post: #22
Shoutbox has been deactivated.
Change the width=640 height=480 to size that you like. I thought you guys were programmers!

AMD 64 X2 6000+ 3Ghz @ 1000mhz(2000mhz HT) Stock heat sink and fan
1GB DDR2-800 Dual channel (500mb x2)
500GB 16mb cache SATA-300 7.2k RPM Western Digital Hard drive
GA-M61SME-S2 motherboard
256mb onboard Nvidia GeForce 6100/Nforce 405
PCIe 16x and 1x
Realtek ALC883 8 channel sound
22" LCD Envision 1680x1050x32bit 5ms response 700:1 contrast VGA + DVI-D
Lite-on 20x DVD burner
600watt 6.1 Insignia amp. (2x12" 1x6" 1x2" speakers)x4 cabs. and (10" and 2")x2 cabs. 6" sub woofer.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-28-2009, 12:23 AM
Post: #23
Shoutbox has been deactivated.
Aggressive Prefector Wrote:Change the width=640 height=480 to size that you like. I thought you guys were programmers!
It was nearly 5am give me a break lol >.<
All I did was copy and paste what you sent me onto a text file and open it with firefox..... >.<

TPrograming Administration ~

[Image: image.php?img=sigs]

Linux says: Hey Windows, what's up?
Windows says: You suck and I'm superior!
Linux says: Is that why I have to drink alot of WINE to act like you?


Tibia MCV is Open Source now! check it out!
Visit this user's website Find all posts by this user
Quote this message in a reply
09-28-2009, 07:02 PM
Post: #24
Shoutbox has been deactivated.
Aggressive Prefector Wrote:Change the width=640 height=480 to size that you like. I thought you guys were programmers!

Lets see:

Is the and operator (&&) in programming a logical statement? IE. does it behave the same as it does in logic?
Find all posts by this user
Quote this message in a reply
09-28-2009, 07:31 PM
Post: #25
Shoutbox has been deactivated.
jeremic Wrote:Lets see:

Is the and operator (&&) in programming a logical statement? IE. does it behave the same as it does in logic?

You can use && or And in a logical statement. For example.

If HP.Now < (HP.Max - 200) && Mana.Now > 60 Then Cast(Exana Mort)

Meaning that if your HP is 200hp lower then your max hp and your mana is greater then 60 then it will cast exana mort.

I am not a programmer just a noob. Hope I helped ya.

AMD 64 X2 6000+ 3Ghz @ 1000mhz(2000mhz HT) Stock heat sink and fan
1GB DDR2-800 Dual channel (500mb x2)
500GB 16mb cache SATA-300 7.2k RPM Western Digital Hard drive
GA-M61SME-S2 motherboard
256mb onboard Nvidia GeForce 6100/Nforce 405
PCIe 16x and 1x
Realtek ALC883 8 channel sound
22" LCD Envision 1680x1050x32bit 5ms response 700:1 contrast VGA + DVI-D
Lite-on 20x DVD burner
600watt 6.1 Insignia amp. (2x12" 1x6" 1x2" speakers)x4 cabs. and (10" and 2")x2 cabs. 6" sub woofer.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-28-2009, 09:48 PM
Post: #26
Shoutbox has been deactivated.
I pretty sure he meant using && in words. If you say && you say And And, am I right? So would you say, "If A is less than 1 and and B is greater than 1 then..."? Nope, you would just say, "If A is less than 1 and B is greater than 1 then...".

But I could always be wrong lol.
Find all posts by this user
Quote this message in a reply
09-28-2009, 10:26 PM
Post: #27
Shoutbox has been deactivated.
Knowing jeremic, I think that was a rhetorical question. Idk but I'm sure he doesnt need to ask something like that lol.

Find all posts by this user
Quote this message in a reply
09-29-2009, 07:12 AM
Post: #28
Shoutbox has been deactivated.
DarkstaR Wrote:Knowing jeremic, I think that was a rhetorical question. Idk but I'm sure he doesnt need to ask something like that lol.

In fact its not... many programmers dont know this, but as a logician it bothers me.

Aggressive Prefector Wrote:You can use && or And in a logical statement. For example.

If HP.Now < (HP.Max - 200) && Mana.Now > 60 Then Cast(Exana Mort)

Meaning that if your HP is 200hp lower then your max hp and your mana is greater then 60 then it will cast exana mort.

I am not a programmer just a noob. Hope I helped ya.

This is wrong. In logic, AND is commutative, ie x AND y = y AND x In programming this is not the case. if x is false x && y evaluates to false without evaluating y. Use this example:

Code:
bool x = false

bool y ()
{
     x = true;
     return true;
}

bool z;
z = x && y(); //  false
z = y () && x; // true

Hope you guys learned something ;p
Find all posts by this user
Quote this message in a reply
10-03-2009, 06:26 AM (This post was last modified: 10-03-2009 10:16 AM by Jakubxx. Edit Reason: )
Post: #29
Shoutbox has been deactivated.
I think that Jeremic is talking about operators precedence. Since function call has higher precedence than logical operator &&, it's evaluated at first. In result, expression to the left is evluated to be true but it also affects expression to the right of && and in fact entire condition becomes true.

However if first expression is evaluated to be false, program don't even bother to evaluate second expression (because it assume that if one expression fails, entire condition has to be false).

nclx Wrote:Can remove from the index? annoying to have it there "Loading..."

It's not a solution, but if you use firefox, you could hide it using stylish plugin. I personally don't like shoutboxes (even working ones) so I usually get rid of them in the very begining :-)
Find all posts by this user
Quote this message in a reply
10-03-2009, 08:32 AM
Post: #30
Shoutbox has been deactivated.
Jakubxx Wrote:I think that Jeremic is talking about operators precedence. Since function call has higher precedence than logical operator &&, it's evaluated at first. In result, expression to the left is evluated to be true but it also affects expression to the right of && and in fact entire condition becomes true.

However if first expression is evaluated to be false, program don't even bother to evaluate second expression (because it assume that if one expression fails, entire condition has to be false).

Thanks for clearing that up jakubxx!

AMD 64 X2 6000+ 3Ghz @ 1000mhz(2000mhz HT) Stock heat sink and fan
1GB DDR2-800 Dual channel (500mb x2)
500GB 16mb cache SATA-300 7.2k RPM Western Digital Hard drive
GA-M61SME-S2 motherboard
256mb onboard Nvidia GeForce 6100/Nforce 405
PCIe 16x and 1x
Realtek ALC883 8 channel sound
22" LCD Envision 1680x1050x32bit 5ms response 700:1 contrast VGA + DVI-D
Lite-on 20x DVD burner
600watt 6.1 Insignia amp. (2x12" 1x6" 1x2" speakers)x4 cabs. and (10" and 2")x2 cabs. 6" sub woofer.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 



Contact UsTProgrammingReturn to TopReturn to ContentLite (Archive) ModeRSS Syndication