Need help with C++

#include
using namespace std;

int main(void)
{
int a = 400;
do {
cout

lurk moar faggot

use the "approaches" operator
} while (a --> 0);

?huh

omg thank you.. i thought i might have to put +--

I honestly don't see a problem. You want to print "400" for infinity right?

...

>using namespace std;

Decent bait thread. Now go back to painting your eggs.

>"approaches" operator

this is a meme right?

Try it

Yeah, real men uses "slides to"
#include
using namespace std;

int main(void)
{
int a = 400;
do {
cout

C++ itself is a meme, yes. But the approaches operator is valid C++. And obviously, you can approach 0 from either direction:
while (0

...

I'm more than aware of how it works.

but for fucks sake, it's stupid as shit and also introduces mutation instead of using something that's actually good, like iterators.

top kek

Amazing.

"introduces mutation"? it's a local int. how is mutating it worse than mutating an iterator?

>how is mutating it worse than mutating an iterator?

it all depends how deep you are in the functional psychosis

sepples was a mistake.

mutating an iterator is even worse.

what the fuck

test
#include

int main()
{
int a = 400;

do {
std::cout

Do these two compile into same code? Asking for a friend.

Tell me this is real

>your typical Sup Forums programmer
does any of you actually know how to write software? does any of you actually have a job?

programming discussion on Sup Forums:
>how do hello world in
>show me your fizzbuzz
this fucking board..

The output will be the same in this scenario, however the second program will print a once, even if it was already less than or equal to 0, because of the "do" operator.
Use only "while" and it will be better.

...

Why does this work, wtf.
I hate c++ now.

It's the same as
while (a-- > 0);

faggot

Oh, that makes more sense.

induced a successful giggle

before i started a formal education in computer engineering i assumed Sup Forums had some skill

i now know 2 years into my degree everyone here is full of shit and couldnt code their way out of a paper bag

FUCK you got me

Gave me a chuckle

God fucking damnit Sup Forums.

> Implying iterators are better than simply decreasing an int variable at the end of the loop
And btw, --> is not an operator you retard. It's just the unary operator -- and the relational operator > put together.

> Being a pedantic faggot.

kys