Novice in C++

Hi all,

I am a novice in C++ and I have read the complet tutorial in your site (in addition to other tutorials on the basics of Qt).
I am trying to understand some project and I often find some statements that I cannot understand. Could you please help me in understanding these statements or at least tell me what I have to read in order to understand them.

For example, I have encountered this statement:

kjh::app::TplApp<MainC,MainW>::slotStart();


Thank you in advance for your possible help.
the first two could be namespaces and inside that the class TplApp. Tplapp is a template class. This class contains a function slotStart.

But this is not the only meaning. It is also possible that app is a class and inside that another class tplapp (strong association ?).
Thank you for your reply.

and for <MainC, MainW>, does it mean that the class TplApp will have member data of types MainC and MainW (which are also classes)?

> does it mean that the class TplApp will have member data of types MainC and MainW (which are also classes)?

It means that TplApp is a template.
http://www.cplusplus.com/doc/tutorial/templates/

Thanks for all your replies.
What's about this syntax:
FI::FI() : LI()
{
}

here, the first FI is the class and the second is the constructor but what's is the LI()? and what does it mean when we have : after ::
This means you are initializing the base class.

I suggest you read a beginners book in C++. That will help you.
Last edited on
I have read the tutorials on this site and some other tutorials but I didn't see this syntax.

Thank your for your response.

Thank you JLBorges.
I will read that.
This site's C++ Tutorial doesn't mention initialization lists, and should be updated.
http://www.parashift.com/c++-faq/init-lists.html
Topic archived. No new replies allowed.