Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Shared Pointers Practice | Shared Pointers
C++ Smart Pointers
course content

Course Content

C++ Smart Pointers

C++ Smart Pointers

1. Introduction to Smart Pointers
2. Unique Pointers
3. Shared Pointers
4. Weak Pointers
5. References
6. Advanced topics

Shared Pointers Practice

Task

You are given a basic program that simulates file operations. Right now, the program uses raw pointers to manage file resources. Your task is to modify this code to use shared pointers for file management.

Task

You are given a basic program that simulates file operations. Right now, the program uses raw pointers to manage file resources. Your task is to modify this code to use shared pointers for file management.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 3. Chapter 6
toggle bottom row

Shared Pointers Practice

Task

You are given a basic program that simulates file operations. Right now, the program uses raw pointers to manage file resources. Your task is to modify this code to use shared pointers for file management.

Task

You are given a basic program that simulates file operations. Right now, the program uses raw pointers to manage file resources. Your task is to modify this code to use shared pointers for file management.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 3. Chapter 6
toggle bottom row

Shared Pointers Practice

Task

You are given a basic program that simulates file operations. Right now, the program uses raw pointers to manage file resources. Your task is to modify this code to use shared pointers for file management.

Task

You are given a basic program that simulates file operations. Right now, the program uses raw pointers to manage file resources. Your task is to modify this code to use shared pointers for file management.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Task

You are given a basic program that simulates file operations. Right now, the program uses raw pointers to manage file resources. Your task is to modify this code to use shared pointers for file management.

Switch to desktop for real-world practiceContinue from where you are using one of the options below
Section 3. Chapter 6
Switch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt