#include
#include
#include
using namespace std;
int main()
{
string str;
ifstream fin("data.txt");
ofstream fout("new.txt");
char data[2] = {0};
if (!fin || !fout)
return -1;
while(!fin.eof())
{
fin.read(data, 2);
str = data;
if (str == "。")
data = "\n";
if (str == "!”)
data = "\n";
if (str == "?")
data = "\n";
if (str == "”")
data = "\n";
fout< }
return 0;
}