SHARE
TWEET

Untitled

a guest Feb 18th, 2020 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <fstream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     string sygnaly;
  9.     ifstream Dane("przyklad.txt");
  10.     string slowa[1000];
  11.     for (int i = 1; i < 1001; i++) {
  12.         Dane >> slowa[i];
  13.         //lub tak -> getline(Dane, slowa[i]);
  14.     }
  15.     for (int i = 1; i < 1001; i++) {
  16.         cout << slowa[i] << endl;
  17.     }
  18.     //Zadanie 4.1
  19.  
  20.     Dane.close();
  21.     return 0;
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top