This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| class House; | |
| class Bank; | |
| class Factory; | |
| class InsuranceAgent { | |
| public: | |
| virtual void visit(House* house) = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| class RouteStrategy { | |
| public: | |
| virtual void buildRoute(const string& from, const string& to) = 0; | |
| virtual ~RouteStrategy() {} | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <windows.h> | |
| #include <winhttp.h> | |
| #include <iostream> | |
| #include <string> | |
| #pragma comment(lib, "winhttp.lib") | |
| using namespace std; | |
| string getHoroscope(string sign) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| class PowerSupply | |
| { | |
| public: | |
| void PowerOn() { cout << "Power Supply: power on\n"; } | |
| void PowerOff() { cout << "Power Supply: shutdown\n"; } | |
| void SupplyVideo() { cout << "Power Supply: supply power to video card\n"; } | |
| void SupplyRAM() { cout << "Power Supply: supply power to RAM\n"; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <windows.h> | |
| #include <urlmon.h> | |
| #include <string> | |
| #include <ctime> | |
| #pragma comment(lib, "urlmon.lib") | |
| using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <winsock2.h> | |
| #include <ws2tcpip.h> | |
| #include <iostream> | |
| #include <string> | |
| #pragma comment(lib, "Ws2_32.lib") | |
| #define PORT 54000 | |
| #define SERVER_IP "127.0.0.1" | |
| #define BUF_SIZE 1024 | |
| using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| class Car | |
| { | |
| public: | |
| string name; | |
| string body; | |
| int engine; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| class IOutput abstract | |
| { | |
| public: | |
| virtual void Print(string txt) abstract; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <ws2tcpip.h> | |
| #include <windows.h> | |
| #include <iostream> | |
| #include <string> | |
| #include <thread> | |
| #include <chrono> | |
| #include <vector> | |
| #include <algorithm> | |
| #include <random> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| #include <map> | |
| using namespace std; | |
| class AbstractDevice | |
| { | |
| protected: | |
| string producer; |
NewerOlder