Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
The Essence Of Computer Science With C++
Rating: 5.0 out of 5(2 ratings)
4 students

The Essence Of Computer Science With C++

A concise introduction to the main features of the most known programming languages.
Last updated 7/2022
English
English [Auto],

What you'll learn

  • Learn the basics of programming.
  • Grasp the main ideas behind computer science.
  • Learn the fundamentals of C++.
  • Be capable of shifting from one programming language to another.

Course content

1 section31 lectures4h 12m total length
  • Prerequisites10:39

    Explore the prerequisites of computer science by decoding binary, ascii, and algorithms, and learn to translate problem solving into pseudocode before coding in C++.

  • Fundamentals15:20

    Explore the fundamentals of programming by examining variables, data types, memory layout, and the basic C++ code structure, including main, headers, and libraries.

  • Getting Started4:27

    Install code blocks, choose the Windows binary with the built-in compiler, create a console C++ project named hello, then open the main source file to begin coding.

  • Variables and Data Types Coding Practice5:56

    Explore how C++ declares and uses basic data types—int, char, float, double—and prints values with cout, building a simple calculator and understanding memory concepts and boolean representation.

  • First Program, Input and Output13:06

    Practice writing your first C++ program to print hello world, explore the header, main function, and body, and perform simple input and output with cin and cout.

  • Operators12:06

    Explore the essence of computer science with c++, focusing on operators that perform operations on variables and values, including automatic, assignment, relational, and logical types.

  • Flow Chart7:28

    Learn how to use flowcharts to map algorithms top to bottom, using standardized symbols for terminal, input/output, process, and decision, and avoid intersecting lines.

  • Operators Coding Practice10:32

    Practice arithmetic, relational, and logical operators with a and b, including ++, --, and modulus, to see booleans and conditional structures drive true or false outcomes.

  • Control Structure6:37

    Explore control structures in programming by analyzing flow charts, including sequence, selection, and repetition, and observe how input, output, declarations, and loops drive program execution.

  • Selection Control11:29

    Explore selection control in C++ by examining if, if else, and else-if ladders, plus the switch statement, to see how conditions dictate which statements execute.

  • Loops17:13

    Explore repetition and iteration in C++ through for, while, and do-while loops, with initialization, condition, and update, including break, continue, and goto for flow control.

  • Loops Coding Practice9:33

    Explore loops coding practice in C++, showcasing for loop, while loop, and nested loops; learn initialization, condition, and update, and see how repeated printing builds patterns and two-dimensional structures.

  • Conditions Coding Practice 15:11

    Explore conditions coding with if and else statements in C++, using user input to classify numbers as positive, negative, or zero and understand how the if-else structure works.

  • Conditions Coding Practice 24:35

    Learn how to implement a switch statement in C++ to map a user’s grade input to an output, using case labels and a default for invalid grades.

  • Array4:01

    Learn how an array stores multiple values of the same data type, declare and initialize it in C++, and access elements via indices from memory layout to end at n-1.

  • Array Coding Practice10:29

    Explore arrays in C++, declare and initialize a six-element int array, access elements by zero-based indices, and use a for loop to input and display values.

  • Functions Part 16:49

    Explore how to design, declare, and define functions in C++ to break programs into modules. Compare predefined and user defined functions, and learn about the main function, parameters, and calling.

  • Functions Part 210:27

    Explains how to declare, define, and call functions in C++ using prototypes with return types, names, and parameters. Shows a rectangle area example, discusses pass-by-value and function scope in main.

  • Variable Scope7:00

    Explore global and local scope in C++, showing how global variables and functions are accessible across the program while locals exist only inside their function.

  • Passing by Reference8:17

    Pass by reference lets a function modify original variables without copying, using reference variables and memory addresses. In the swap example, a and b swap to 35 and 45.

  • Recursive Functions6:44

    Explore recursive functions in C++ by examining how a function calls itself, uses a base case, and builds a result, illustrated with a factorial example and termination logic.

  • Functions Coding Practice8:32

    Explore C++ functions through prototypes, definitions, and calls, including a recursive factorial example and a by-reference swap demonstration, highlighting return types and parameter passing.

  • Pointers Part 28:49

    Understand pointers in C and C++, covering stack and heap memory, dynamic allocation, passing by pointer, and pointer arithmetic to traverse and access array elements.

  • Pointers Part 18:16

    Explore how memory stores variables as addresses, illustrate hexadecimal addresses, and introduce pointers that store and dereference those addresses to access values.

  • Pointers Coding Practice9:11

    Learn how pointers access memory by printing addresses in hexadecimal, declaring and dereferencing pointers, and linking arrays to pointers through practical practice.

  • Strings5:01

    This lecture explains strings in c++, comparing c-style strings and the string class, and shows key operations from the string library: copy, concatenate, length, compare, and finding first occurrences.

  • Strings Coding Practice2:46

    Include the string header and declare two strings using the string class, then read input with getline and print the strings to practice basic string manipulation in C++.

  • Structures5:21

    Define c++ structures as a structured data type using the struct keyword outside main, with attributes like name, citizenship number, and salary, and access them via the dot operator.

  • Structures Coding Practice3:03

    Learn how structures store a user's attributes such as name, age, and salary, declare a structure, and access fields with the dot operator to input and display data.

  • File Handling8:00

    Master file handling in C++ by using ifstream, ofstream, and fstream to read and write files, open and close streams, and process text line by line with getline.

  • File Handling Coding Practice5:58

    Learn how to read from and write to a file named example.esd using C++ fstream, including ofstream, open checks, and writing with the insertion operator, and reading with getline.

Requirements

  • No programming experience needed

Description

This course will give you a brief yet concise knowledge of programming through an introduction to C++. The course will start by giving you the fundamentals of computer science and the many related topics that come with it. Then you will pass on to the concept of memory and memory allocation, this part will give you a helping hand in visualizing declarations and flow of execution. Moving on we will see control structures of sequences, selection and repetition in a way that will aid our understanding of control structures in most programming languages. after finishing control structures, we will work on making our program more efficient and short using concepts known as functions. Finally we will end the course by having detailed lessons on pointers, structures and file handling. Every course  topic has two parts: A theory part ( This is where you will try to grasp the concept of the topic) and A coding part ( This is where you will practically do the ideas we learned in the theory part). The expected final result from this course is having a detailed introductory knowledge of programming aided by C++. The course taker will be capable of easily shifting from language to language guided by the main concepts of this course.

Who this course is for:

  • For programming enthusiasts and experts trying to refresh.