#include<fstream>
#include<iostream>
using namespace std;
int main()
{
char c;
ifstream input ;
input.open("text2.txt",ios::in);
while(input.get(c)){
if(c == '"' | c == ',' | c == '\'' || c == '!'){
cout << " " ;
}
else
cout << c;
}
return 0;
}
#include<iostream>
using namespace std;
int main()
{
char c;
ifstream input ;
input.open("text2.txt",ios::in);
while(input.get(c)){
if(c == '"' | c == ',' | c == '\'' || c == '!'){
cout << " " ;
}
else
cout << c;
}
return 0;
}
Comments
Post a Comment