Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cstring>
  4.  
  5. using namespace std;
  6.  
  7. ifstream fin("init.txt");
  8. ofstream fout("proba.out");
  9.  
  10. int main()
  11. { int nrcuv=0;
  12. while(fin>>M[k])
  13. nrcuv++;
  14. for(i=0;i<nrcuv;i++)
  15. {
  16. fout<<M[i]<<'\n';
  17. }
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement