Monday, 3 February 2020

Advanced Concept in C++

0 comments

Advanced Concept in C++


? In C++ when a function is overloaded, many copies of it have to be created, one for each
data type it act on. A template function may be defined as an unbounded functions.
? The definition of the templates begins with the template keyword followed by a comma separated
list of parameter types enclosed within the less than (<) and greater than (>)
signs.
? Templates classes may be defined as the layout and operations for an unbounded set of
related classes.
? While template functions and classes are usable for any data type, that would hold true
only, as long as the body of functions or the class is identical throughout.
? Specialization would consist of instantiating the templates definition for a specific data type
if the templates instance does not exist, and the definition is not visible, generate an error.
? Syntactic errors are relatively easy to find and correct, even if the resulting error messages
are unclear. Execution errors, on the other hand, can be much more troublesome.
? Logical errors can be very difficult to detect, since that output resulting from a logically
incorrect program may appear to be error-free. Errors isolation is useful for locating an
error resulting in a diagnostic message.


Break Point: A breakpoint is a temporary stopping point within a program.
Logical Errors: Logical error can be very difficult to detect, since the output resulting from a
logically incorrect program may appear to be error free.
Stepping: Stepping refers to the execution of one instruction at a time, typically by pressing a
function key to execute each instruction.
Syntactic Errors: Syntactic errors are relatively easy to find and correct, even if the resulting
error messages are unclear.
Template: A template function may be defined as an unbounded functions. All the possible
parameters to the function are not known in advance and a copy of the function has to be created
as and when necessary.
Template Classes: Template classes may be defined as the layout and operations for an unbounded
set of related classes.
Watch Value: Watch value is the value of a variable or an expression which is displayed
continuously as the program executes.

No comments:

Post a Comment