Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- int tablica[10];
- fstream plik("plik.txt");
- if (plik.good()) {
- cout << "Otwarto plik pomyslnie" << endl;
- }
- for (int i = 0; i < 10; i++) {
- plik>>tablica[i];
- cout<<tablica[i];
- }
- int temp = 40; // jakas domyslna wartosc z dupy
- while (temp != 99) {
- cin >> temp;
- if (temp > -15 && temp < 20) {
- cout << temp; "\n";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement