Re: CAN any one tell it whats the code tell it
yogesh wrote:
i have a code as follows
TServerDB() { fDB = Server()->dbStorage->Create(); }
or
fDB=TServer->TMySQLBD->Create();
can any one tell the relationship between two
Between? You mean what the difference is? Are you saying you
cannot see the difference? One calls 'Server()' function (or
constructs a temporary 'Server' object, depending on how the
"Server" symbol is defined), the other uses [what seems to be]
a pointer named 'TServer' (or an object of a class that has
an overloaded operator ->). Also, one uses 'dbStorage' member
and the other uses TMySQLBD member. The right parts of the
assignment expression are slightly different, but the real
difference between them cannot be explained here without seeing
more code (especially how those 'Server', 'dbStorage', 'TServer'
and 'TMySQLBD' things are defined.
and whats the <between > braces called
class TSSIStorage: public TResourceStorage<m_ssi::TSSIControl>
<m_ssi::TSSIControl> ---> this reference
It's called "the template argument".
What C++ book are you reading that doesn't explain all those
relatively simple concepts?
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask