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

Shared Pointers PracticeShared 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.

Everything was clear?

Section 3. Chapter 6
toggle bottom row
course content

Course Content

C++ Smart Pointers

Shared Pointers PracticeShared 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.

Everything was clear?

Section 3. Chapter 6
toggle bottom row
some-alt