• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Counting Thread

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
On being bannned...

Originally posted by: AccruedExpenditure
Myself... 2 weeks for participating in S P I D E R chaining... it was lame cause all I said was S... it could have meant S anything =P

you?

Chaining again are we?😉
 
Originally posted by: no0b
int n=0;
bool locked=false;
while(locked=false)
{
n=n++;
cout<<n<<endl;
}

If I was your TA for CompSci 101 I would give you a C- on this project.

n=n++;

I mean, come on....
 
Originally posted by: Kyteland
Originally posted by: no0b
int n=0;
bool locked=false;
while(locked=false)
{
n=n++;
cout<<n<<endl;
}
If I was your TA for CompSci 101 I would give you a C- on this project.

n=n++;

I mean, come on....
It also results in an infinite loop due to the bolded line above. I give him an F.

 
Originally posted by: Kyteland
Originally posted by: no0b
int n=0;
bool locked=false;
while(locked=false)
{
n=n++;
cout<<n<<endl;
}

If I was your TA for CompSci 101 I would give you a C- on this project.

n=n++;

I mean, come on....


haha. Good one. But the code will still compile
 
Originally posted by: her209
Originally posted by: Kyteland
Originally posted by: no0b
int n=0;
bool locked=false;
while(locked=false)
{
n=n++;
cout<<n<<endl;
}
If I was your TA for CompSci 101 I would give you a C- on this project.

n=n++;

I mean, come on....
It also results in an infinite loop due to the bolded line above. I give him an F.


seriously - my dog can write better code than that 😀
 
I'd be very careful Accrued. Qosis got a vacation for creating 2 nef threads in the same day. This is probably one of your two strikes.
 
Originally posted by: her209
Originally posted by: Kyteland
Originally posted by: no0b
int n=0;
bool locked=false;
while(locked=false)
{
n=n++;
cout<<n<<endl;
}
If I was your TA for CompSci 101 I would give you a C- on this project.

n=n++;

I mean, come on....
It also results in an infinite loop due to the bolded line above. I give him an F.
It's supposed to. Are you telling me AccruedExpenditure expects this thread to ever end? 😉

Still, I would have used 'while (1)' instead of declaring a variable.

// Count from 1 to infinity
int n=0;
while(1)
{
cout<<++n<<endl;
}

Edit: Oh, and he didn't comment. I don't buy in to this "My code is self commenting" crap.
 
Originally posted by: Kyteland
Originally posted by: her209
Originally posted by: Kyteland
Originally posted by: no0b
int n=0;
bool locked=false;
while(locked=false)
{
n=n++;
cout<<n<<endl;
}
If I was your TA for CompSci 101 I would give you a C- on this project.

n=n++;

I mean, come on....
It also results in an infinite loop due to the bolded line above. I give him an F.
It's supposed to. Are you telling me AccruedExpenditure expects this thread to ever end? 😉

Still, I would have used 'while (1)' instead of declaring a variable.

// Count from 1 to infinity
int n=0;
while(1)
{
cout<<++n<<endl;
}

Nice use of the ++n. Points awarded for style.
 
Back
Top