daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top