Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn 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

book
Shared Pointers Practice

Task
test

Swipe to begin your solution

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.

Solution

cpp

solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 6
toggle bottom row

book
Shared Pointers Practice

Task
test

Swipe to begin your solution

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.

Solution

cpp

solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 6
Switch to desktopSwitch 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