Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <fstream>
- #include <string>
- #include <cmath>
- using namespace std;
- int main(){
- ifstream file("zad_1.txt");
- string data = "";
- for(int i = 0; i < 5 * 2; i++){
- string s = "";
- file >> s;
- data.append(s);
- data.append(" ");
- if( i % 2 ){
- data.append("\n");
- }
- }
- cout << data;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement