Advertisement
Guest User

gbgbhrf

a guest
Feb 9th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include <iostream>
  2. #include <set>
  3. #include <fstream>
  4. #include <string>
  5. using namespace std;
  6. int main(){
  7.     int n,f;
  8.     char k;
  9.     string s;
  10.     ifstream in;
  11.     ofstream out;
  12.     in.open("input.txt");
  13.     out.open("output.txt");
  14.  
  15.     for( int  i = 0; i < 1100; i++){
  16.  
  17.         getline(in, s);
  18.  
  19. //      cout<<s<<endl;
  20.         for(int j = 0; j < 12; j++){
  21.             if(s[j]=='.'){
  22.                 // cout<<s<<endl;
  23.                 s.erase(j,1);
  24.             }
  25.         }
  26.         cout<<s<<endl;
  27.         out<<s<<endl;
  28.     }
  29.  
  30.     in.close();
  31.     out.close();
  32.  
  33.     return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement