Created
June 5, 2015 08:42
-
-
Save BraynStorm/79cd6e3495d7a05511ed to your computer and use it in GitHub Desktop.
Bojidar_PK2_zad1.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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