By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,655 Members | 959 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,655 IT Pros & Developers. It's quick & easy.

CAN any one tell it whats the code tell it

P: n/a
i have a code as follows

TServerDB() { fDB = Server()->dbStorage->Create(); }
or
fDB=TServer->TMySQLBD->Create();

can any one tell the relationship between two
and whats the <between braces called

class TSSIStorage: public TResourceStorage<m_ssi::TSSIControl>

<m_ssi::TSSIControl---this reference

Mar 14 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Mar 14 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.