Advertisement
TheDuliX_

Untitled

Sep 13th, 2021
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4.  
  5. int main () {
  6. string rec;
  7. ofstream fajl;
  8. fajl.open("fajl.txt");
  9.  
  10. for (int i = 0; i < 10; i++) {
  11. cout << "Unesite rec: ";
  12. cin >> rec;
  13. for (int j = 0; j < 10; j++) {
  14.  
  15. fajl << rec << endl;
  16. }
  17. }
  18.  
  19. fajl.close();
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement