Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstring>
  3. #include<fstream>
  4. #include<cstdio>
  5. #include<cstdlib>
  6. using namespace std;
  7. int main(){
  8. ifstream wejscie("telefony.txt");
  9. ofstream wyjscie("test.txt");
  10. if(!wejscie || !wyjscie){
  11. cout<<"blad"<<endl;
  12. return 1;
  13. }
  14. string a[1000];
  15. string pom;
  16. for(int i=0; i<1000; i++){
  17. wejscie>>pom;
  18. if(wejscie)a[i]=pom;
  19. }
  20. for(int i=0; i<1000; i++){
  21. wyjscie<<a[i]<<endl;
  22. wyjscie<<endl;
  23. }
  24. int nr;
  25. for(int i=0; i<1000; i++){
  26. if(n==504669045)nr++;
  27. }
  28.  
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement