Created
September 14, 2016 12:52
-
-
Save LebedevRI/225aee1a6ab5666c3d7c4c717d6be7c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <memory> | |
#include <iostream> | |
int main(int argc, const char* argv[]) | |
{ | |
std::unique_ptr<float> buf(new float); | |
std::cin >> (*(buf.get())); | |
std::cout << buf.get() << std::endl; | |
std::cout << (*(buf.get())) << std::endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment