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(){
- ofstream file("zad_1.txt");
- for(int i = 0; i < 5; i++){
- string ime = "";
- string godini = "";
- cin >> ime >> godini;
- ime.append(" ");
- ime.append(godini);
- ime.append("\n");
- file << ime;
- }
- file.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement