Skip to content

Instantly share code, notes, and snippets.

@BraynStorm
Created June 5, 2015 08:42
Show Gist options
  • Save BraynStorm/79cd6e3495d7a05511ed to your computer and use it in GitHub Desktop.
Save BraynStorm/79cd6e3495d7a05511ed to your computer and use it in GitHub Desktop.
Bojidar_PK2_zad1.cpp
#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();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment