Fix bug of cfgfile test

This commit is contained in:
daleclack 2021-08-10 12:53:13 +08:00
parent 0225385746
commit f306bdfefc
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ static void readcfg(){
std::string cfgkey,cfgvalue;
std::cout<<"Input Config File Name"<<std::endl;//Config File Name
std::cin.clear();//Clear the cin to read line
std::cin.get();//Clear the cin to read line
std::cin.getline(filename,1000);
std::cout<<"Input Config Key"<<std::endl;//Config Key
@ -68,7 +68,7 @@ static void appendcfg(){
std::string cfgkey,cfgvalue;
std::cout<<"Input Config File Name"<<std::endl;
std::cin.clear();//Clear the cin to read line
std::cin.get();//Clear the cin to read line
std::cin.getline(filename,1000);
//Append Config