why i can't declare my character string as
(char*) care=0;
and what is the mearning of
char& *care ? because i would like to define a pointer to char type that also is a reference.
thank you
Printable View
why i can't declare my character string as
(char*) care=0;
and what is the mearning of
char& *care ? because i would like to define a pointer to char type that also is a reference.
thank you
sorry but how do you know that ? :(
It's part of the C standard (and hence works in C++, but there are other ways to cast in C++).
i think it is atype definition and the compiler doesn't allow it to define like that
because
char a;
char*a;
only differentiates by an *
so i mean to comprehend why a pair of parentheses make such a difference to the compiler, how ?
Because that's what compilers do? I don't understand what you are asking. Maybe you should back up a bit. What are you trying to do?
I'm not trying to be deliberately obtuse, but I can't figure out what it is that you are asking? I thought a little background in your overall goal might help me understand your dilemma.
Sometimes when you're knew to the language and know a few tools or tricks, you want to apply that knowledge and make it work for every problem. Back up a bit means slow down a little, explain what you're trying to do and see if you're on the right track before plowing ahead.
sorry i am bad at the language,
i can understand only the narrow meaning,
i have no idea of metaphor or word use to imply different things, that is why i ask him.
i think you and he share the same view and attitude over his own particular post toward me, which is quite odd but i won't care to ask for more.
look at this http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B
it talks about operators. it should help you.
Every1 here is to help you, dragon5
(char*) is language defined, such use to declaring object type is not allowed