0% found this document useful (0 votes)
20 views10 pages

Basic Syllabus For C++ 1

This document outlines a basic syllabus for learning C++ programming over 22 modules. It covers fundamental topics like variables, data types, control flow, functions and recursion. It also covers object-oriented concepts like classes, inheritance and polymorphism. More advanced topics include memory management, templates, the Standard Template Library, exceptions and associative containers.

Uploaded by

femina
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views10 pages

Basic Syllabus For C++ 1

This document outlines a basic syllabus for learning C++ programming over 22 modules. It covers fundamental topics like variables, data types, control flow, functions and recursion. It also covers object-oriented concepts like classes, inheritance and polymorphism. More advanced topics include memory management, templates, the Standard Template Library, exceptions and associative containers.

Uploaded by

femina
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Basic syllabus for C++

Module 1: Introduction to C++ (2 hours)

 Overview of C++ programming language


 Setting up the development environment
 Writing and compiling a basic "Hello, World!" program

Module 2: Variables, Data Types, and Operators (4 hours)

 Variables and their types


 Fundamental data types in C++
 Type modifiers and qualifiers
 Constants
 Operators in C++ (arithmetic, assignment, comparison, logical, etc.)

Module 3: Control Flow (4 hours)

 Decision-making using if, if-else statements


 Switch statements
 Looping with for, while, and do-while loops
 Break and continue statements

Module 4: Arrays and Strings (3 hours)

 Arrays and their manipulation


 Multidimensional arrays
 Character arrays and strings

Module 5: Functions and Recursion (4 hours)

 Functions and their types


 Function overloading
 Default arguments and inline functions
 Recursive functions

Module 6: Object-Oriented Programming (OOP) Basics (5 hours)

 Introduction to OOP and its principles


 Classes and objects
 Constructors and destructors
 Inheritance and polymorphism
Module 7: File Input/Output (2 hours)

 File streams and file operations


 Reading from and writing to files

Module 8: Standard Template Library (STL) Basics (3 hours)

 Overview of STL containers (vector, list, map, etc.)


 STL algorithms (sorting, searching, etc.)

Module 9: Advanced Concepts (3 hours)

 Templates and generic programming


 Exception handling and error propagation
Module 1: The Context of Software Development
1.1 Software
1.2 Development Tools
1.3 Learning Programming with C++
1.4 Exercises

Module 2: Writing a C++ Program


2.1 General Structure of a Simple C++ Program
2.2 Editing, Compiling, and Running the
2.3 Variations of our simple program
2.4 Template for simple C++ programs
2.5 Exercises

Module 3: Values and Variables


3.1 Integer Values
3.2 Variables and Assignment
3.3 Identifiers
3.4 Additional Integer Types
3.5 Floating-point Types
3.6 Constants
3.7 Other Numeric Types
3.8 Characters
3.9 Enumerated Types
3.10 Type Inference with auto
3.11 Exercises

Module 4: Expressions and Arithmetic


4.1 Expressions
4.2 Mixed Type Expressions
4.3 Operator Precedence and Associativity
4.4 Comments
4.5 Formatting
4.6 Errors and Warnings
4.6.1 Compile-time Errors
4.6.2 Run-time Errors
4.6.3 Logic Errors
4.6.4 Compiler Warnings
4.7 Arithmetic Examples
4.8 Integers vs. Floating-point Numbers
4.8.1 Integer Implementation
4.8.2 Floating-point Implementation
4.9 More Arithmetic Operators
4.10 Bitwise Operators
4.11 Algorithms
4.12 Exercises

Module 5: Conditional Execution


5.1 Type bool
5.2 Boolean Expressions
5.3 The Simple if Statement
5.4 Compound Statements
5.5 The if/else Statement
5.6 Compound Boolean Expressions
5.7 Nested Conditionals
5.8 multi-way if/else Statements
5.9 Errors in Conditional Statements
5.10 Exercises

Module 6: Iteration
6.1 The while Statement
6.2 Nested Loops
6.3 Abnormal Loop Termination
6.3.1 The break statement
6.3.2 The goto Statement
6.3.3 The continue Statement
6.4 Infinite Loops
6.5 Iteration Examples
6.5.1 Drawing a Tree
6.5.2 Printing Prime Numbers
6.6 Exercises

Module 7: Other Conditional and Iterative Statements


7.1 The switch Statement
7.2 The Conditional Operator
7.3 The do/while Statement
7.4 The for Statement
7.5 Exercises

Module 8: Using Functions


8.1 Introduction to Using Functions
8.2 Standard Math Functions
8.3 Maximum and Minimum
8.4 clock Function
8.5 Character Functions
8.6 Random Numbers
8.7 Exercises

Module 9: Writing Functions


9.1 Function Basics
9.2 Using Functions
9.3 Pass by Value
9.4 Function Examples
9.4.1 Better Organized Prime Generator
9.4.2 Command Interpreter
9.4.3 Restricted Input
9.4.4 Better Die Rolling Simulator
9.4.5 Tree Drawing Function
9.4.6 Floating-point Equality
9.4.7 Multiplication Table with Functions
9.5 Organizing Functions
9.6 Commenting Functions
9.7 Custom Functions vs. Standard Functions
9.8 Exercises

Module 10: Managing Functions and Data


10.1 Global Variables
10.2 Static Variables
10.3 Overloaded Functions
10.4 Default Arguments
10.5 Recursion
10.6 Making Functions Reusable
10.7 Pointers
10.8 Reference Variables
10.9 Pass by Reference
10.9.1 Pass by Reference via Pointers
10.9.2 Pass by Reference via References
10.10Higher-order Functions
10.11Exercises

Module 11: Sequences


11.1 Vectors
11.1.1 Declaring and Using Vectors
11.1.2 Traversing a Vector
11.1.3 Vector Methods
11.1.4 Vectors and Functions
11.1.5 Multidimensional Vectors
11.2 Arrays
11.2.1 Static Arrays
11.2.2 Pointers and Arrays
11.2.3 Dynamic Arrays
11.2.4 Copying an Array
11.2.5 Multidimensional Arrays
11.2.6 C Strings
11.2.7 Command-line Arguments
11.3 Vectors vs. Arrays
11.4 Prime Generation with a Vector
11.5 Exercises

Module 12: Sorting and Searching


12.1 Sorting
12.2 Flexible Sorting
12.3 Search
12.3.1 Linear Search
12.3.2 Binary Search
12.4 Vector Permutations
12.5 Randomly Permuting a Vector
12.6 Exercises

Module 13: Standard C++ Classes


13.1 String Objects
13.2 Input/Output Streams
13.3 File Streams
13.4 Complex Numbers
13.5 Better Pseudorandom Number Generation
13.6 Exercises

Module 14: Custom Objects


14.1 Object Basics
14.2 Instance Variables
14.3 Member Functions
14.4 Constructors
14.5 Defining a New Numeric Type
14.6 Encapsulation
14.7 Exercises

Module 15: Fine Tuning Objects


15.1 Passing Object Parameters
15.2 Pointers to Objects and Object Arrays
15.3 The this Pointer
15.4 const Methods
15.5 Separating Method Declarations and Definitions
15.6 Preventing Multiple Inclusion
15.7 Overloaded Operators
15.7.1 Operator Functions
15.7.2 Operator Methods
15.8 static Members
15.9 Classes vs. structs
15.10 Friends
15.11 Exercises

Module 16: Building some Useful Classes


16.1 A Better Rational Number Class
16.2 Stopwatch
16.3 Sorting with Logging
16.4 Automating Testing
16.5 Convenient High-quality Pseudorandom Numbers
16.6 Exercises

Module 17: Inheritance and Polymorphism


17.1 I/O Stream Inheritance
17.2 Inheritance Mechanics
17.3 Uses of Inheritance
17.4 Polymorphism
17.5 Alternative to Inheritance and Polymorphism
17.6 Adapter Design Pattern
17.7 Protected Members
17.8 Fine Tuning Inheritance
17.9 Exercises .

Module 18: Memory Management


18.1 Memory Available to C++ Programs
18.2 Manual Memory Management
18.3 Linked Lists
18.4 Resource Management
18.5 R-value References
18.6 Smart Pointers

Module 19: Generic Programming


19.1 Function Templates
19.2 Class Templates
19.3 Exercises

Module 20: The Standard Template Library


20.1 Containers
20.2 Iterators
20.3 Iterator Ranges
20.4 Lambda Functions
20.5 Algorithms in the Standard Library
20.6 Namespaces

Module 21: Associative Containers


21.1 Associative Containers
21.2 The std::set Data Type
21.3 Tuples
21.4 The std::map Data Type
21.5 The std::unordered map Data Type
21.6 Counting with Associative Containers
21.7 Grouping with Associative Containers
21.8 Memorization
Module 22: Handling Exceptions
22.1 Motivation
22.2 Exception Examples
22.3 Custom Exceptions
22.4 Catching Multiple Exceptions
22.5 Exception Mechanics
22.6 Using Exceptions

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy