
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Kick off a C++ intermediate course on pointers, structures, and file streams with practical exercises, hands-on sessions, and real-world app concepts.
Master core C++ concepts through hands-on setup, arrays, pointers, memory management, strings, structures, enums, and file streams, including text, binary, and csv operations with practical examples.
Get started with C++ on Windows, Mac and Linux by choosing your operating system and embracing the beginner-friendly approach of this course.
Learn to ask great questions to get fast help with code errors by using Google and Stack Overflow, including how to share error codes and screenshots for quicker resolutions.
Explore essential course prerequisites, including basic computer and internet setup, access to source code shown in video lectures, and installing Visual Studio for real world exercises in C++.
you will learn how to get and install visual studio code editor step by step process
Learn to create your first C++ console project in Visual Studio, from signing in to selecting a console app template and naming the project.
you will learn how to write your first program hello world here
Generative artificial intelligence is artificial intelligence capable of generating text, images, videos, or other data using generative models, often in response to prompts. best ai tools are chatgpt, tabnine for developers, and more
You will learn how to learn online courses in a more productive way.
You will know the top AI tools every professional needs to boost productivity and achieve smarter results
Identify and work with C++ arrays by creating, indexing, modifying, and copying them; pass arrays to functions, determine size, and loop through multi-dimensional arrays in real-world examples.
Explore array indexing in C++ using a string sports array and zero-based indices to read and print each item, preparing for later array modification lessons.
Replace the first item in a sports array from cricket to golf to demonstrate modifying an element at index zero in c++.
Learn to compare arrays in C++ using memcmp by verifying array sizes and checking for equality. Explore declaring two arrays and printing the result of the comparison.
Learn how to pass an array to a function in C++, iterate with a for loop, and display each student's marks using a function parameter and array indexing.
Learn how to determine an array’s size in C++ using the built-in size of operator, with a practical example of six elements and the memory bytes involved.
Learn to implement selection sort on a C++ array, determine its size, swap elements, and print the array before and after sorting for clear, hands-on practice.
Explore multi-dimensional arrays in C++ by building a 2x4 array of letters, learn to access elements with row and column indices, and read or modify values using zero-based positioning.
Learn c++ pointers, creating pointers, and memory address allocation, with delegation passing parameters. Explore arithmetic, composition, dynamic memory allocation, and resizing smart, unique, and shared pointers, with real-world examples.
Learn what a pointer is in C++, a variable that stores a memory address to another variable, enabling pass by address and dynamic memory usage, with declarations using a star.
Illustrates creating reference variables with the ampersand operator and using them to alias an existing variable in C++.
Learn how to obtain a variable’s memory address in C++ using the ampersand operator, and understand how references and pointers enable memory management and improve app performance.
Explore constant pointers in C++ by using the const keyword to fix a pointer's address while allowing modification of the value it points to, with examples of constants and errors.
Explore pointer arithmetic in C++ by using pre- and post-increment and post-decrement to navigate an array, print addresses, and access values through a pointer.
Learn to compare a pointer with array elements using the full set of comparison operators, and understand pointer arithmetic with a while loop to access and print element values.
Resize a pointer dynamically to store a user-defined number of student GPAs or scores using new, then display data and free memory with delete[].
Explore how smart pointers manage memory by automatically releasing unused resources, avoiding manual delete, with explicit constructor, destructor, and operator overloading in modern c++.
Explore unique pointers in C++, learn how a unique_ptr manages a single object, transfers ownership via move, and use it with a rectangle class to compute area.
Explore c++ strings: create, modify, count characters, find substrings, perform string to numeric conversions, handle escape sequences, formatting, and raw strings with input and real-world examples.
Learn to work with strings in c++, creating and managing multiple strings using the string library. Build dynamic employee data output with input, concatenation, and formatted cout printing.
Learn how to locate a substring within a string using the find method in C++, returning the index position when the target word is found.
Learn how to extract a portion of a string in C++ using the substring method, using the position and length parameters to crop output such as zero-based segments.
Learn to read independent characters from a string in C++ by two methods: using str.at(i) and the array subscript operator str[i], looping from 0 to str.length() and printing with cout.
Discover how to convert strings to numeric values in C++ using string stream. Learn declaring string and int variables, building a string stream object, and extracting integers for arithmetic operations.
Master escape sequences in C++ strings, including newline, tab, backspace, backslash, and the null character, to format output precisely. See how these sequences affect string literals and program results.
Learn how to represent and print C++ strings without escape sequences by using raw strings, including the R\"(... )\" syntax, to print multi-line and special characters exactly as written.
Learn to declare and use structures in c++, grouping related variables into a struct with members of different data types, and initializing and accessing them.
Learn to access and initialize a C++ struct using the dot operator, set members like my number and my string, and display results with cout.
Create a rectangle structure with a default constructor and a method to compute its area, then instantiate objects and access the area via the dot operator.
Compare structures and classes in C++, highlighting default public vs private members, constructors and destructors, stack versus heap allocation, value versus reference types, and syntactic similarities.
Learn C++ structures with methods, implement default constructors, and compute the area of a rectangle via dot notation; practice with multiple methods.
Explore structures and functions by passing a structure as a function argument, using prototypes and main to define, declare, and implement a person structure with name and salary.
Learn to define structures, pass them to functions, and implement prototypes in C++ with a person example, including input, output, and member access.
Explore file streams in C++ by using the standard library to read from and write to files with cin, cout, ifstream, and ofstream, including text, binary, and CSV formats.
Learn how to read text from files in C++ using file streams and string streams, with getline, open checks, looping, and proper closing.
Learn how to create and write to a text file in C++ using file streams, including opening the file, writing content such as shopping cart items, and closing the stream.
Explore string streams in c++, reading from a string as a stream to parse input with operator<< and operator>>, and count words in the given string.
Convert integers to strings in a C++ program using a string stream. Insert user input into the stream and produce the converted string for display.
Learn how to write a binary file in C++ using ofstream, writing a student structure with a roll number and name to a binary file, with basic error handling.
Learn to read a binary file in C++ by using file streams and the read method, iterating over records from a student structure and handling errors.
Learn to read a CSV file in C++ using file streams, string, stringstream, and vector. The lecture covers dynamic filename input, comma parsing, and row and column printing.
The "Learn C++: Data Structures, Pointers & File Streams" course is designed for programmers who have mastered the basics of C++ and are ready to take their skills to the next level. This course delves into intermediate-level topics, focusing on pointers, structures, and file handling, which are essential for building efficient and robust C++ applications.
Begin your journey with a deep dive into pointers, one of the most powerful features of C++. Learn how to use pointers for dynamic memory allocation, passing data efficiently between functions, and manipulating arrays. Gain confidence in working with advanced pointer concepts like pointer arithmetic, function pointers, and smart pointers to write cleaner and more efficient code.
update: Learn the top AI tools every professional needs to boost productivity
Next, explore data structures to group related data together, making your programs more organized and easier to maintain. Understand how to use structures with pointers, arrays, and functions, and learn to build complex data models for real-world applications.
Finally, master external and internal file streams to perform file input and output operations. Learn how to read from and write to text and binary files, handle exceptions during file operations, and build applications that store and retrieve persistent data.
Throughout the course, you’ll work on practical examples and projects that reinforce your learning. By the end, you’ll have a solid understanding of these key concepts and be ready to tackle more advanced topics in C++.
Enroll today and elevate your C++ programming skills to intermediate-level expertise!