daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main() {
  2.  
  3.     int tablica[10];
  4.     fstream plik("plik.txt");
  5.     if (plik.good()) {
  6.         cout << "Otwarto plik pomyslnie" << endl;
  7.     }
  8.  
  9.     for (int i = 0; i < 10; i++) {
  10.     plik>>tablica[i];
  11.         cout<<tablica[i];
  12.        }
  13.  
  14.     int temp = 40; // jakas domyslna wartosc z dupy
  15.     while (temp != 99) {
  16.         cin >> temp;
  17.         if (temp > -15 && temp < 20) {
  18.             cout << temp; "\n";
  19.         }
  20.     }
  21. }
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