First of all, I am so happy to join this forum.
I am a C++ beginner learner. I have learned the basics and still unable to understand some programs certainly with complicated classes, for example, I am unable to understand this statements:
This isn't really complicated. I'm sure it's just some of the symbols giving you trouble.
APP::APP() This double colon here is a scope resolution operator. It tells the compiler where this method belongs, namely the APP class. You'll see this whenever class implementation is separate from definition.
:PAP("P C A")
Following the method header and the single colon is what's called an initialization list. PAP is likely the super class to APP, this is just a way of calling the super class constructor.
These are similar to each other. Basically, it's calling methods from the TS class and F class respectively, using the scope resolution operator. The -> you see is just a shorthand to dereference a pointer to an object and then call a method or field from that object. In this example, setIP() takes one argument, that is returned by TS::instance()->pointer()->tip().
charleette and ResidentBiscuit, thank you for your replies.
ResidentBiscuit, do you have an idea where I can learn all these symbols or rather the complicated classes, a book name or a site link may be?
Thank you all for your replies. I will try to read all the suggested sources and then come back to see if I can understand this code.
Anyway, if you have any other clarifications, I will be so grateful.