Advertisement
a53

AfisareN

a53
Apr 10th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <fstream>
  2. using namespace std;
  3. ifstream f("afisaren.in");
  4. ofstream g("afisaren.out");
  5.  
  6. int main()
  7. {
  8. int n;
  9. char c;
  10. f>>n;
  11. if(n)
  12. for(int i=1;i<=n;++i)
  13. {
  14. ifstream f("afisaren.in");
  15. f>>n;
  16. while(f>>c)
  17. g<<c;
  18. g<<'\n';
  19. }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement