C++Memory and numbers (C, C++, Rust)Difficulty 2/3
#include <cstdio>
#include <string>
void log_login(const std::string& username) {
printf(username.c_str()); /* the user's text is used as the format */
printf("\n");
}