#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
void printCentered(const std::string& text, int width) {
int padding = (width - text.length()) / 2;
if (padding < 0) padding = 0;
std::cout << "* " << std::string(padding, ' ') << text
<< std::string(width - text.length() - padding, ' ') << " *\n";
}
void printHeaderFooter(int width) {
std::cout << std::string(width + 4, '*') << "\n";
}
int main() {
// 活动数据
std::vector<std::string> activityInfo = {
"项目名:欣欣向荣【7.7开团活动】",
"活动日期:7.7-7.10日截止",
"",
"开团领取额外扶持奖励,不在乎提取是否,有人登录就有奖励",
"额外的扶持计划,团队收溢可三级裂变,利润可观",
"团队提取额外奖励扶持,蕞高可叠加提一米返三米",
"开团提交后24小时内,必须邀请满三人(自己小号不算)",
"开团成功自动更新分成比例,配备专属数据后台",
"异常封控自主解封,保障每日收溢达标"
};
// 计算最大宽度
int maxWidth = 0;
for (const auto& line : activityInfo) {
if (line.length() > maxWidth) maxWidth = line.length();
}
maxWidth = std::max(maxWidth, 50); // 最小宽度
// 打印顶部边框
printHeaderFooter(maxWidth);
// 打印标题
printCentered("欣欣向荣 · 开团盛典", maxWidth);
printCentered("7月7日盛大启幕", maxWidth);
std::cout << "*" << std::string(maxWidth + 2, ' ') << "*\n";
// 打印活动信息
for (const auto& line : activityInfo) {
if (line.empty()) {
std::cout << "*" << std::string(maxWidth + 2, ' ') << "*\n";
} else {
printCentered(line, maxWidth);
}
}
// 打印核心卖点
std::cout << "*" << std::string(maxWidth + 2, ' ') << "*\n";
printCentered("★ 三级裂变收益 ★ 登录即享奖励 ★", maxWidth);
printCentered("★ 一米返三米 ★ 实时数据追踪 ★", maxWidth);
// 打印底部边框
printHeaderFooter(maxWidth);
return 0;
}正文
【欣欣成语】0撸大水,三级裂变,恐怖如斯,轻松入两百,每日叠加。
声明:本站提供的内容信息和网络资源均来自网络收集整理和用户投稿,仅限用于学习和研究目的,不得将上述内容用于商业或者非法用途,否则后果自负,版权争议与本站无关。若为网络资源,用户须在下载后24小时内删除,若您喜欢该网络资源,请支持正版,付费购买后可得到更好的正版服务。我们非常重视版权问题,如有侵权请与我们联系处理。








还没有评论,来说两句吧...