![]() |
|
const char *? -- more n00bisms |
Matthew Leverton
Supreme Loser
January 1999
![]() |
Quote: what else are commas used for in C++ besides parameter lists?
for (x=0,y=0; x<10; ++x);
Quote: is rendered as: ... no? It's undefined, although for any given compiler it's probably well defined. |
Michael Jensen
Member #2,870
October 2002
![]() |
holy shit, I knew you could do stuff like: int x=f(), y=g(); but I didn't know you could do stuff like: int x, y, z; x= first(), y=second(), z=third(); and they do get called in the right order.
|
ImLeftFooted
Member #3,935
October 2003
![]() |
while(i = in.get(), in.good()) Theres a fun way to use commas. |
Rampage
Member #3,035
December 2002
![]() |
compiler said: /tmp/http.19203.c:5: warning: left-hand operand of comma expression has no effect
I thought it would give an error, but it's just a warning. -R |
|
|