Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

2 returns giving another methode

Name: Anonymous 2011-05-30 7:25

i want to do that

        String^ error() {
            String ^x= "penis";
            String ^y= "wurst";
        return x,y;
        }
and then
 MessageBox::Show(error()) its work but it just shows wurst the place for penis is empty

Name: Anonymous 2011-05-30 9:54

>>2
"return x,y; returns y, the comma here is the so-called "comma operator", primarily used in for loops (to do "for (i = 0, j = len; i < j; i++, j--)" and such). It returns the second argument."

Also, I believe the correct term for the "comma operator" is the "sequence point".

http://en.wikipedia.org/wiki/Sequence_point

But don't quote me on that since you are the fag that is telling other people to "think".

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List