Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpbb_feed_base has a deprecated constructor in /home/poorsh5/public_html/ThePub/feed.php on line 428

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpbb_feed_forum has a deprecated constructor in /home/poorsh5/public_html/ThePub/feed.php on line 844

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpbb_feed_topic has a deprecated constructor in /home/poorsh5/public_html/ThePub/feed.php on line 973
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1024: Cannot modify header information - headers already sent by (output started at /feed.php:428)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1024: Cannot modify header information - headers already sent by (output started at /feed.php:428)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1024: Cannot modify header information - headers already sent by (output started at /feed.php:428)
[phpBB Debug] PHP Notice: in file /feed.php on line 173: Cannot modify header information - headers already sent by (output started at /feed.php:428)
[phpBB Debug] PHP Notice: in file /feed.php on line 174: Cannot modify header information - headers already sent by (output started at /feed.php:428)
RuneVillage.com Where Gamers Escape! 2011-10-16T06:51:52-06:00 http://poorshark.com/ThePub/feed.php?f=16&t=436782 2011-10-16T06:51:52-06:00 http://poorshark.com/ThePub/viewtopic.php?t=436782&p=10295542#p10295542 <![CDATA[Re: Do/While loop oddity in C#.]]> Statistics: Posted by Tanksandguns — October 16th, 2011, 6:51 am


]]>
2011-10-16T02:52:44-06:00 http://poorshark.com/ThePub/viewtopic.php?t=436782&p=10295524#p10295524 <![CDATA[Re: Do/While loop oddity in C#.]]>
You can close this thread...

Statistics: Posted by The123king — October 16th, 2011, 2:52 am


]]>
2011-10-15T15:31:15-06:00 http://poorshark.com/ThePub/viewtopic.php?t=436782&p=10295452#p10295452 <![CDATA[Re: Do/While loop oddity in C#.]]>
while(variable1 !=0 || variable 2 != 0 || variable 3 !=0)


The above loops until all variables are 0.
It basically means "if even one of them isn't zero, continue".

Your loop means "If all of them are not zero, continue".

Statistics: Posted by Judge — October 15th, 2011, 3:31 pm


]]>
2011-10-11T11:38:59-06:00 http://poorshark.com/ThePub/viewtopic.php?t=436782&p=10295123#p10295123 <![CDATA[Re: Do/While loop oddity in C#.]]> Statistics: Posted by Jeroen — October 11th, 2011, 11:38 am


]]>
2011-10-11T07:36:04-06:00 http://poorshark.com/ThePub/viewtopic.php?t=436782&p=10295100#p10295100 <![CDATA[Do/While loop oddity in C#.]]>
do
{
    some code;
}
while(variable1 !=0 && variable 2 != 0 && variable 3 !=0);


Now, in my head, that means "Do some code while variables 1,2 and 3 all do not equal 0" AKA finish the do/while loop when all the values reach zero.

This doesn't work, and instead quits the do/while loop after a single iteration when values are not 0. It works as intended if i use OR (||) operators, but not with AND (&&) operators.

WTF?

Statistics: Posted by The123king — October 11th, 2011, 7:36 am


]]>