ADVANCED DATA STRUCTURES AND ALGORITHMS -Eshwar Santhosh
Programming Languages • What is programming language? – Loose definition.
• Program Consists of Algorithm – What is an algorithm? • Simple (well) Outline method to complete a task.
• Example Algorithm: To add two numbers – Take first number into memory (Variable) – Take second number into memory – Add both and save result into another location.
Why to program in C++
Brief History of C++
Class • What is Class? – Def: User defined data type (similar to structure in C language) – Eg:
• What is an Object? – An instance of a Class is an Object. • Eg: Student stu;
Class members