can somebody please explain this c++ shirt

Jul 5, 2010 at 11:29am
Jul 5, 2010 at 11:44am
Didn´t You read both descriptions?...
Jul 5, 2010 at 1:20pm
If it was in a program, it would say while variable, object, or enumeration succeed does not equal function try, repeat the loop. However, the syntax doesnt look like C++. but it's sort of close...

by the way, that shirt is pretty funny.
Jul 5, 2010 at 2:18pm
Its a C++ version of the old saying "If at first you don't succeed try, try again."

Or, "while try() didn't equal succeed keep doing it."
Jul 5, 2010 at 6:19pm
Oh alright so it's basically saying if your "try" did not "succeed" go again??



That's what I thought just worded confusingly and got me mixed up. Yeah I wanna buy it ahah.
Jul 5, 2010 at 7:44pm
While you did not succeed
Try

Well, that would SEEM what it says in C++, but since it reads = instead of the equality CHECK (==).
Jul 5, 2010 at 8:05pm
Most people would read it as if success is not equal to try - but the actual C++ test is carried out on the success variable - in other words - if success is not true thengo round the loop again.

It is not actually an equality test between success and the try() .
Jul 5, 2010 at 8:12pm
the actual C++ test is carried out on the success variable
What C++? That's pure C.
Last edited on Jul 5, 2010 at 8:13pm
Jul 5, 2010 at 9:34pm
But still valid in C++
Jul 5, 2010 at 9:36pm
try is a reserved keyword in C++
Jul 5, 2010 at 9:37pm
ah...
Jul 5, 2010 at 9:59pm
I am so confused, this is a hard shirt this is why I was confused!!

while success = try

since it's not == that means something ridiculous?

or can you please explain what try() does if it's nothing too crazy
Jul 5, 2010 at 10:11pm
It's equivalent to
1
2
3
do
    succeed=try();
while (!succeed);
Jul 5, 2010 at 10:17pm
While success, being the result of your trying, fails; keep going.
Jul 5, 2010 at 10:20pm
ok nice that's what i was thinking thanks a lot ^
Topic archived. No new replies allowed.