Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- #include<fstream>
- #include<cstdio>
- #include<cstdlib>
- using namespace std;
- int main(){
- ifstream wejscie("telefony.txt");
- ofstream wyjscie("test.txt");
- if(!wejscie || !wyjscie){
- cout<<"blad"<<endl;
- return 1;
- }
- string a[1000];
- string pom;
- for(int i=0; i<1000; i++){
- wejscie>>pom;
- if(wejscie)a[i]=pom;
- }
- for(int i=0; i<1000; i++){
- wyjscie<<a[i]<<endl;
- wyjscie<<endl;
- }
- int nr;
- for(int i=0; i<1000; i++){
- if(n==504669045)nr++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement