#include <iostream>
#include <string.h>
void print_str( const std::string* str ) {
std::cout << *str << std::endl;
}
int main() {
std::string str = "Hello world!";
print_str( &str );
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nLmg+Cgp2b2lkIHByaW50X3N0ciggY29uc3Qgc3RkOjpzdHJpbmcqIHN0ciApIHsKCXN0ZDo6Y291dCA8PCAqc3RyIDw8IHN0ZDo6ZW5kbDsKfQoKaW50IG1haW4oKSB7CglzdGQ6OnN0cmluZyBzdHIgPSAiSGVsbG8gd29ybGQhIjsKCXByaW50X3N0ciggJnN0ciApOwoJcmV0dXJuIDA7Cn0=