24
« on: February 11, 2008, 05:54 AM »
I'm going thru confusion after reading herbt scildt book of complete reference.It causesmore
pain than cure.I have some of the questions which are not properly answered by this book,can
you take a look at that & let me know you perspective.
1. What #include<filename> can do?can we use our own C++ file to include in our program,is
it possible to access classes from that file,what about main function in that file,how it
will be treated?
2. What is preprocessor directive?Where and why it is used?(I want to know the situations
and limitations of this thing)
3. When to use which loops i.e when to use "for" or "While" loop?(Actually i think using
"while" in most of the cases will put you into infinite loop mode if you go wrong,right)
4. What are cin,cout (Operators or objects of iostream) in comparison with printf and
scanf?Simmilarly what are scanf & printf?
5.What is Strong type checking & Type casting? (Both sounds simmilar but type casting is
rarely used while type checking is abt the code we write ,am i right?)
6.What is late binding & Dynamic binding?(I understand thru books is that till run time your
code is unknown to compiler is known as dynamic binding,i think i m right here.)
7.What is reference variable? What is the major use of this variable?
8.What is Namespace? what are these?
I have searched the internet for them but unable to get quite beginner friendly tutorial for
it.
Just let me know about these concepts of C++.Just post your perspectives about them.