Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8. {
  9.     ifstream dat("tekstualna_dat3.txt");
  10.     char sadrzaj[50][1000];
  11.    
  12.    
  13.     int i=0;
  14.     while (dat>>sadrzaj[i])
  15.         i++;
  16.    
  17.     cout<<sadrzaj[3];
  18.    
  19.     dat.close();
  20.    
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement