Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Hidden Features and Dark Corners of C++/STL
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Derek  
View profile  
 More options Oct 28 2009, 7:13 pm
Newsgroups: comp.lang.c++.moderated
From: Derek <de...@antiquark.com>
Date: Wed, 28 Oct 2009 17:13:48 CST
Local: Wed, Oct 28 2009 7:13 pm
Subject: Re: Hidden Features and Dark Corners of C++/STL
I like the little-known operator "-->", also know as "goes to."

Here's an example:

#include <stdio.h>
int main()
{
     int x = 10;
     while( x --> 0 ) // x goes to 0
     {
       printf("%d ", x);
     }

}

--
      [ See http://www.gotw.ca/resources/clcm.htm for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.