symbols (*, #, %, @, etc)
If you will, list or explain the nature, language rules, and-or syntax of symbols used in C++ code.
If you will, list or explain the nature, language rules, and-or syntax of symbols used in C++ code.
That spec you can order from ANSI here:
http://webstore.ansi.org/ansidocstore/product.asp?sku=INCITS%2FISO%2FIEC+14882%2D2003
Ronald Laeremans
Visual C++ team
(note: I have previously coded in Java and am now attempting to learn C++) Also, what text characters are reserved by the C++ language and what ones can be used for identifiers?
I did not post this thread as a code specific inquiry. I merely wanted a vague listing or description of what the symbols in C++ will tend to be used for.
Here is a very short description of what these characters mean:
* - reserved: can be used to:
declare a pointer type: T*
dereference a pointer: *pT
indicate multiplication: v1 * v2
# - reserved: used by the preprocessor
% - reserved: can be used to:
indicate the modulus operation: v1 % v2
In C++/CLI is used to declare a tracking reference: T%
@ - not part of the C++ character set: can only appear in a comments, strings and character constants
There is the rarely used charizing operator.
Jonathan Caves MSFT wrote:
@ - not part of the C++ character set: can only appear in a comments, strings and character constants
Ok I'll restate the last comment: '@' is not part of the Standard C++ character set.
What text characters can be used in identifiers ("names")?
(note: I did not intend to narrow this thread to only the four characters listed in the title... notice the "etc")
yet, I find your refusal to directly answer extremely irritating(I would prefer you answer directly, and then, if you will to do so, list any references as additional references, rather than implying whatever presumption you might; or don't reply at all, exceptions being when such refrences as you might give link directly to the answer or are described pertaining to such)
but, yes, I found an answer for the "identifier name" question, via search engine