Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » What does , means?
Re: What does , means? [message #15131 is a reply to message #15130] |
Wed, 02 April 2008 09:56   |
mr_ped
Messages: 826 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
http://msdn2.microsoft.com/en-us/library/zs06xbxh.aspx
It works similar to ";", but the whole sequence up to ";" is considered as single expression to compiler.
(handy especially in for statements, where you can do increment of two variables like this for ( ... ; ... ; ++var1, ++var2 ) ... but don't overuse it, it decreases the readability of code)
That said the "angle, angle, font.IsBold() ? FW_BOLD : FW_NORMAL" part looks useless to me, as it will produce 3 values (2x "angle" value, and once FW_BOLD or FW_NORMAL), which are not assigned anywhere, what makes them useless.
So you either put that line out of context and it is in reality parsed differently, or you have some very weird piece of code.
|
|
|
 |
|
What does , means?
|
 |
|
Re: What does , means?
By: mr_ped on Wed, 02 April 2008 09:56
|
 |
|
Re: What does , means?
|
 |
|
Re: What does , means?
By: Werner on Wed, 02 April 2008 12:39
|
 |
|
Re: What does , means?
By: mrjt on Wed, 02 April 2008 14:24
|
 |
|
Re: What does , means?
By: mirek on Wed, 02 April 2008 15:11
|
 |
|
Re: What does , means?
By: mr_ped on Wed, 02 April 2008 17:30
|
 |
|
Re: What does , means?
|
 |
|
Re: What does , means?
|
 |
|
Re: What does , means?
|
 |
|
Re: What does , means?
By: mdelfede on Mon, 14 April 2008 23:42
|
 |
|
Re: What does , means?
|
 |
|
Re: What does , means?
By: mr_ped on Thu, 03 April 2008 00:27
|
 |
|
Re: What does , means?
|
 |
|
Re: What does , means?
|
Goto Forum:
Current Time: Mon Aug 18 21:26:06 CEST 2025
Total time taken to generate the page: 0.07814 seconds
|