sf::Image background; if (!background.loadFromFile("image/bg.jpg")) return -1; t1.loadFromImage(background);
图片改为绝对路径试试