mirea-projects/Second term/Industrial programming technologies/5/1.cpp

15 lines
213 B
C++
Raw Normal View History

2024-09-23 23:22:33 +00:00
#include <memory>
#include <iostream>
using namespace std;
int main() {
double num;
cin >> num;
unique_ptr<double> ptr = make_unique<double>(num);
cout << *ptr << endl;
return 0;
}