summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/util/openticket.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/pttbbs/util/openticket.c b/pttbbs/util/openticket.c
index 84d19e69..c315cca5 100644
--- a/pttbbs/util/openticket.c
+++ b/pttbbs/util/openticket.c
@@ -205,12 +205,19 @@ int main()
fputs(des[n], fp);
}
- printf("\n\n開獎時間: %s\n\n"
- "開獎結果: %d. %s\n\n"
+ printf("\n\n開獎時間: %s\n彩券項目:\n", Cdatelite(&now));
+ for (n = 0; n < MAX_ITEM; n++) {
+ printf(" %d.%-*s", n + 1, IDLEN, betname[n]);
+ if ((n + 1) % (MAX_ITEM / 2) == 0)
+ printf("\n");
+ }
+
+ printf("\n"
+ "開獎結果: %d. %s\n\n"
"下注總額: %d00\n"
"中獎比例: %d張/%d張 (%f)\n"
"每張中獎彩票可得 %d " MONEYNAME "\n\n",
- Cdatelite(&now), bet + 1, betname[bet], total, ticket[bet], total,
+ bet + 1, betname[bet], total, ticket[bet], total,
(float) ticket[bet] / total, money);
fprintf(fp, "%s 開出:%d.%s 總額:%d00 彩金/張:%d 機率:%1.2f\n",