Neoform
|
Coolness: 92575
| thread |
|
Coolness: 339745
| thread |
|
Coolness: 92575
| thread |
|
Coolness: 103415
| threyeyeyed! |
|
Coolness: 85015
| string? |
|
Coolness: 339745
| while (1)
{
echo "thread";
} |
|
Coolness: 202195
| syphilis! |
|
Coolness: 46950
| Originally posted by DJNEOFORM...
while (1)
{
echo "thread";
}
if (neoform=post)
printf("geek!");
else
printf("still geek! hehehehehe"); |
|
Coolness: 339745
| since you did a left-wise assignment in your if statement, it will always return true. next time try using "==" instead of "=" |
|
Coolness: 146405
| she didn't say which language she was using there :p |
|
Coolness: 339745
| the only language that i know of that uses "=" as a test and not an assignment is VB, and vb doesn't have a printf() function..
PHP, CPP and C do however.. and they all use "==" as tests and "=" as assignments. |
|
Coolness: 153135
| like... OMFGROFLMAOBBQCOPTER! |
|
Coolness: 92345
| yeah well he didn't even make a proper while condition.. |
|
Coolness: 339745
| by he, who do you mean? |
|
Coolness: 92345
| you. First of all, that's an infinite loop. Second of all you didn't specify which var is ==1 ;p |
|
Coolness: 148895
| YOUR MOM!!!!
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOh |
|
Coolness: 339745
| Originally posted by MOONDANCER...
you. First of all, that's an infinite loop. Second of all you didn't specify which var is ==1 ;p
it's a perfectly valid statement by the way.
1 always tests to be true.
and by the way, infinite loops are not syntax errors. they will almost always compile. |
|
Coolness: 92345
| no, I didn't say it was a syntax error, it's a logic error, besides you initially corrected her for the same thing ;), cause it would always return true. so thyaaaaaaaaaa |
|
Coolness: 339745
| there's no logic error in an infinite loop. sometimes you WANT an infinite loop, like in my example........... i specifically wanted it to infinitely display "thread" over and over.. which means there was no error. |
|
Coolness: 154755
| dorkitronnn haha. |
Neoform
You must be logged in to post a reply.