提交 6f032a6e 编写于 作者: 栩xx's avatar 栩xx

修复bug

上级 d154fe41
无法预览此类型文件
......@@ -156,7 +156,7 @@ string OlympicProgram::outputSchedule(string date)
if (homename.empty() & awayname.empty())
os +=(string) "name:" + title->value.GetString() + '\n';
else
os += (string)"name:" + title->value.GetString() + " " + homename + "vs" + awayname + '\n';
os += (string)"name:" + title->value.GetString() + " " + homename + "VS" + awayname + '\n';
os += (string)"venue:" + venuename->value.GetString() + '\n' + "-----";
if (i != matchList.Size() - 1)
os += '\n';
......@@ -179,6 +179,7 @@ string OlympicProgram::outputWrong(string wrong)
//作用:将指令中的空格去除
int trimSpace(string &order)
{
replace(order.begin(), order.end(), '\t', ' ');
char* p = (char*)order.c_str();
char* tokenPtr = strtok(p, " ");
string t;
......
......@@ -2,6 +2,7 @@
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include "rapidjson-master/include/rapidjson/document.h"
#include "rapidjson-master/include/rapidjson/writer.h"
#include "rapidjson-master/include/rapidjson/stringbuffer.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册