Schreiben Sie eine Funktion die anhand der folgenden 2 Klassen die Anzahl der Tage zaehlt, an denen die gegebene Station mehr als 80% ausgelastet ist.
Station:
stationId: Int
anzahlBetten: Int
Belegung:
stationId: Int| #include <iostream> | |
| #include <fstream> | |
| #include <vector> | |
| #include <cstdint> | |
| #include <phonon.h> | |
| std::vector<float> load_input_audio(const char *filename) { | |
| std::ifstream file(filename, std::ios::binary); |
| Python 3.9.2 (default, Feb 28 2021, 17:03:44) | |
| [GCC 10.2.1 20210110] on linux | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> print("Hello world!") | |
| Hello world! | |
| >>>import huge_dictionary as dic | |
| >>> res = dic.find("treehouse") | |
| >>> res.description | |
| 'A treehouse is a structure built around, in, or on the trunk of a mature tree that can be used for recreation, leisure, work, or residence.' | |
| >>> |
| #include "httpclient.hpp" | |
| #include <cerrno> | |
| coro::task<bool> HttpClient::send(std::string_view path, std::function<coro::task<bool> (std::span<const char>)> cb, const Headers& headers) { | |
| co_await scheduler->schedule(); | |
| // Connect |
| class HttpClient { | |
| std::shared_ptr<coro::io_scheduler> scheduler; | |
| coro::net::ip_address addr; | |
| std::string host; | |
| uint16_t port = 80; | |
| std::chrono::milliseconds timeout = std::chrono::milliseconds(5000); | |
| public: | |
| HttpClient(std::weak_ptr<coro::io_scheduler> sched) : scheduler(sched) {} |
| nils@lyllia:~/Programme/OSS/libcoro> mkdir Release && cd Release | |
| nils@lyllia:~/Programme/OSS/libcoro/Release> cmake -DCMAKE_BUILD_TYPE=Release .. | |
| -- The CXX compiler identification is GNU 11.1.1 | |
| -- Detecting CXX compiler ABI info | |
| -- Detecting CXX compiler ABI info - done | |
| -- Check for working CXX compiler: /usr/bin/c++ - skipped | |
| -- Detecting CXX compile features | |
| -- Detecting CXX compile features - done | |
| libcoro /home/nils/Programme/OSS/libcoro -> git config --local core.hooksPath .githooks | |
| libcoro LIBCORO_BUILD_TESTS = ON |
| [11:16:14 pm] --> nisa ([email protected]) has joined ##apocalypse | |
| [11:16:15 pm] * Topic for ##apocalypse is "<rasengan> foss is forking. foss is building. foss is collaboration. <letty> foss is taking a lot of cocaine :: <girst> fuck you rasengan for destroying freenode <3" | |
| [11:16:15 pm] * Topic set by [email protected] on 2021-06-15 21:11:55 UTC | |
| [11:16:15 pm] *** Mode ##apocalypse +ns by capone.freenode.net | |
| [11:16:15 pm] * Channel ##apocalypse created on 2021-06-15 20:52:40 UTC | |
| [11:16:23 pm] <aeth> 17:16:05 [capone] -!- 51 57630 Current global users 51, max 57630 | |
| [11:16:25 pm] --> HeTo ([email protected]) has joined ##apocalypse | |
| [11:16:31 pm] <-> ChanServ is now known as Global | |
| [11:16:31 pm] --> ar ([email protected]) has joined ##apocalypse |
| Bans: | |
| Error from server: Closing link: ([email protected]) [Killed (tau (can you not?))] | |
| #freenode (from the good old Freenode net) (no context): | |
| <@rasengan> THE SWAMP IS DRAINING | |
| <-* rasengan has kicked Xavierdarkness from #freenode (stop talking about me) | |
| <@rasengan> If you don't like it. become strong. get power. seriously stop whining. so weak. | |
| #freenode (from the good old Freenode net) (with context): | |
| <x_> rasengan: opinion? https://corrupt.tech/1708590130-ocr-compressed.pdf |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| #include <string.h> | |
| #include <limits.h> | |
| #include <MiniFB.h> | |
| #define WIDTH 800 | |
| #define HEIGHT 600 | |
| #define BOTTOM_LINE HEIGHT / 2 |
| import os, io | |
| from base64 import b64encode, b64decode | |
| class itypes: | |
| FILE = 1 | |
| DIRECTORY = 0 | |
| # READABLE WRITABLE APPENDS CREATES | |
| FREAD_ONLY = "r" # YES NO NO NO | |
| FREAD_WRITE = "r+" # YES YES NO NO |