#include <string> // to use std::string, std::to_string() and "+" operator acting on strings int i = 4; std::string text = "Player "; text += std::to_string(i);