{"id":342467,"date":"2022-12-12T15:01:39","date_gmt":"2022-12-12T15:01:39","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=342467"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=342467","title":{"rendered":"<span>\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b, \u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0439\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 SFML \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438\u0433\u0440 \u043d\u0430 C++<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><a href=\"https:\/\/habr.com\/ru\/post\/702128\/\" rel=\"noopener noreferrer nofollow\"><u>\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0442\u0435\u043c\u0430<\/u><\/a>  <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/a15\/372\/fad\/a15372fada0292b784846ef0b505fd85.jpg\" width=\"1400\" height=\"787\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a15\/372\/fad\/a15372fada0292b784846ef0b505fd85.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0421++ \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e, \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u0434\u043b\u044f 2D \u0438\u0433\u0440 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0439\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 SFML.  \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0432 \u043d\u0430\u0448\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043b\u0430\u0441\u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u043d\u044f\u0442\u044c \u0448\u0440\u0438\u0444\u0442, \u0440\u0430\u0437\u043c\u0435\u0440 \u0438 \u0446\u0432\u0435\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432. <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f <a href=\"https:\/\/visualstudio.microsoft.com\/ru\/\" rel=\"noopener noreferrer nofollow\">IDE Visual Studio<\/a>, <a href=\"https:\/\/habr.com\/ru\/post\/703500\/\" rel=\"noopener noreferrer nofollow\">\u0421++ \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 SFML<\/a>, \u0448\u0430\u0431\u043b\u043e\u043d \u043a\u043e\u0434\u0430 SFML, <a href=\"https:\/\/t.me\/C_Verhovcevo_NVK\/194\" rel=\"noopener noreferrer nofollow\">\u0438\u043a\u043e\u043d\u043a\u0438 \u0438 \u0448\u0440\u0438\u0444\u0442\u044b.<\/a> <\/p>\n<h2> \u0428\u0430\u0431\u043b\u043e\u043d \u043a\u043e\u0434\u0430 SFML C++  <\/h2>\n<pre><code class=\"cpp\">#include &lt;SFML\/Graphics.hpp>  using namespace sf;  int main() {           \/\/ \u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 900\u0445900 \u0441  \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \"\u0427\u0430\u0441\u044b\"     RenderWindow window(VideoMode(900, 900), L\"\u0427\u0430\u0441\u044b\", Style::Default);     \/\/ \u0418\u043a\u043e\u043d\u043a\u0430 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u043a\u043d\u0430     Image icon;     if (!icon.loadFromFile(\"Image\/clock.png\"))  \/\/\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u043a\u043e\u043d\u043a\u0438     {         return 3; \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 3 \u0435\u0441\u043b\u0438 \u0438\u043a\u043e\u043d\u043a\u0430 \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u0430\u0441\u044c      }     window.setIcon(128, 128, icon.getPixelsPtr()); \/\/ \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0438\u043a\u043e\u043d\u043a\u0443     \/\/ \u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0446\u0438\u043a\u043b \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u043a\u043d\u0430     while (window.isOpen())     {         \/\/ \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f          Event event;         \/\/ \u0426\u0438\u043a\u043b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439         while (window.pollEvent(event))         {             \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u0440\u0435\u0441\u0442\u0438\u043a \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u043a\u043d\u0430             if (event.type == Event::Closed) window.close();                       }         \/\/ \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u043a\u043d\u0430, \u0441 \u043e\u043a\u0440\u0430\u0441\u043a\u043e\u0439 \u0444\u043e\u043d\u0430 \u0432 \u0441\u0438\u043d\u0438\u0439 \u0446\u0432\u0435\u0442         window.clear(Color::Blue);         \/\/ \u0412\u044b\u0432\u043e\u0434 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e               window.display();     }     return 0; }<\/code><\/pre>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/934\/d9c\/f9a\/934d9cf9a8dfc8457fa98011b5dcad1b.jpg\" alt=\"\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 SFML C++\" title=\"\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 SFML C++\" width=\"425\" height=\"280\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/934\/d9c\/f9a\/934d9cf9a8dfc8457fa98011b5dcad1b.jpg\" data-blurred=\"true\"\/><figcaption>\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 SFML C++<\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0412\u044b \u0441 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u0442\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u043d\u0430\u0437\u043e\u0432\u0451\u043c \u0435\u0433\u043e SFMLWorldTime.   <\/p>\n<h2> \u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime,  \u0444\u0430\u0439\u043b SFMLWorldTime.h  <\/h2>\n<pre><code class=\"cpp\">#include &lt;SFML\/Graphics.hpp>  using namespace sf;  using namespace std;  class SFMLWorldTime { struct tm newtime; __time64_t long_time; errno_t err;  int position_x, position_y;  int font_size, font_step;  Font time_font;  Color time_color;  Text clock_text;  int  pos[11][7]{ {0,0,0,0,0,0,0},{19,25,45,52,60,35,10}, {35,45,82,95,110,62,15}, {49,60,109,120,142,82,22}, {65,80,145,160,190,110,32}, {78,95,175,195,230,133,37}, {90,105,200,215,260,153,43} ,{105,125,230,250,305,175,50}, {120,140,260,280,340,195,60},{138,160,295,320,390,225,70},{148,175,325,350,430,250,75} };   };<\/code><\/pre>\n<p><strong>newtime<\/strong> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u043e\u043b\u044f \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438: \u0447\u0430\u0441\u044b, \u043c\u0438\u043d\u0443\u0442\u044b \u0438 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. <strong>long_time<\/strong>  &#8212; \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.  <strong>err &#8212;<\/strong> \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u043a\u043e\u0434 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u0438 \u043d\u0435\u0432\u0435\u0440\u043d\u043e\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438. <\/p>\n<p><strong>position_x, position_y<\/strong> &#8212; \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432.<\/p>\n<p><strong>font_size &#8212; <\/strong>\u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432.<\/p>\n<p><strong>font_step<\/strong> &#8212; \u0448\u0430\u0433 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0443 <strong>pos  <\/strong>\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f  \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432  \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432. <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/0d0\/831\/185\/0d083118567efdf8af9a83969b8e960b.jpg\" alt=\"\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b\" title=\"\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b\" width=\"243\" height=\"66\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0d0\/831\/185\/0d083118567efdf8af9a83969b8e960b.jpg\" data-blurred=\"true\"\/><figcaption>\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b<\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/224\/07b\/b0c\/22407bb0cb2ddceaf5f84d5561fc44d8.jpg\" alt=\"\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438\" title=\"\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438\" width=\"264\" height=\"93\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/224\/07b\/b0c\/22407bb0cb2ddceaf5f84d5561fc44d8.jpg\" data-blurred=\"true\"\/><figcaption>\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/27a\/351\/2ac\/27a3512acc8db07752dbe8475f9e0971.jpg\" alt=\"\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0433\u0440\u0430\u043d\u0438\u0446\" title=\"\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0433\u0440\u0430\u043d\u0438\u0446\" width=\"259\" height=\"84\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/27a\/351\/2ac\/27a3512acc8db07752dbe8475f9e0971.jpg\" data-blurred=\"true\"\/><figcaption>\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0433\u0440\u0430\u043d\u0438\u0446<\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/aed\/ec8\/44a\/aedec844a3f299f082c28045f7ed346e.jpg\" alt=\"\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0443\u043b\u0435\u0439\" title=\"\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0443\u043b\u0435\u0439\" width=\"243\" height=\"300\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aed\/ec8\/44a\/aedec844a3f299f082c28045f7ed346e.jpg\" data-blurred=\"true\"\/><figcaption>\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0443\u043b\u0435\u0439<\/figcaption><\/figure>\n<p>\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u0441\u043e\u0441\u0442\u043e\u044f\u0442 \u0438\u0437 8 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043f\u0440\u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438. \u0412 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 <strong>pos<\/strong> \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u044b \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0434\u043b\u044f \u0441\u0435\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0442\u0430\u043a \u043a\u0430\u043a \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u0435\u043b\u044c \u0431\u0435\u0440\u0451\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b <strong>position_x, position_y.<\/strong><\/p>\n<p><strong>time_font<\/strong> &#8212; \u0445\u0440\u0430\u043d\u0438\u0442 \u0448\u0440\u0438\u0444\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <strong>time_color <\/strong>\u0445\u0440\u0430\u043d\u0438\u0442 \u0446\u0432\u0435\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432. <strong>clock_text<\/strong> &#8212;  \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0438\u0441\u0443\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435.<\/p>\n<h2> \u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime, \u0444\u0430\u0439\u043b SFMLWorldTime.h  <\/h2>\n<pre><code class=\"cpp\">void InitText();  void what_time();<\/code><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434 <strong>InitText<\/strong> \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 <strong>clock_text.<\/strong><\/p>\n<p>\u041c\u0435\u0442\u043e\u0434 <strong> what_time<\/strong> \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <strong>newtime.<\/strong><\/p>\n<h2>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime, \u0444\u0430\u0439\u043b SFMLWorldTime.cpp  <\/h2>\n<pre><code class=\"cpp\">void SFMLWorldTime::InitText() {     clock_text.setFont(time_font);          \/\/ \u0442\u0438\u043f \u0448\u0440\u0438\u0444\u0442\u0430     clock_text.setCharacterSize(font_size); \/\/ \u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430     clock_text.setFillColor(time_color);    \/\/ \u0446\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430 }  void SFMLWorldTime::what_time() {     _time64(&amp;long_time); \/\/ \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f     \/\/ \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 newtime     err = _localtime64_s(&amp;newtime, &amp;long_time);     if (err) exit(23); \/\/ \u043f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043a\u043e\u0434 \u043e\u0448\u0438\u0431\u043a\u0438 23 }<\/code><\/pre>\n<h2>\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043e\u0432  \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime,  \u0444\u0430\u0439\u043b SFMLWorldTime.h  <\/h2>\n<pre><code class=\"cpp\">public:     \/\/ \u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u0431\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 SFMLWorldTime();  SFMLWorldTime(string font); \/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0448\u0440\u0438\u0444\u0442 SFMLWorldTime(string font, int x, int y);\/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0448\u0440\u0438\u0444\u0442 \u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b SFMLWorldTime(string font, int x, int y, int size); \/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0448\u0440\u0438\u0444\u0442, \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0438 \u0440\u0430\u0437\u043c\u0435\u0440 \/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0448\u0440\u0438\u0444\u0442, \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b, \u0440\u0430\u0437\u043c\u0435\u0440 \u0438 \u0446\u0432\u0435\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 SFMLWorldTime(string font, int x, int y, int size, Color mycolor);  SFMLWorldTime(int x, int y); \/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b SFMLWorldTime(int x, int y, int size); \/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0438 \u0440\u0430\u0437\u043c\u0435\u0440 SFMLWorldTime(int x, int y, int size, Color mycolor);\/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b, \u0440\u0430\u0437\u043c\u0435\u0440 \u0438 \u0446\u0432\u0435\u0442<\/code><\/pre>\n<h2>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435  \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043e\u0432  \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime,  \u0444\u0430\u0439\u043b SFMLWorldTime.cpp  <\/h2>\n<pre><code class=\"cpp\">SFMLWorldTime::SFMLWorldTime() {     position_x = 0;     position_y = 0;     if (!time_font.loadFromFile(\"lib\/\u042d\u043b\u0435\u043a\u0442\u0440\u043e.ttf\")) exit(13);     time_color = Color::White;     font_size = 30;     font_step = 3;     InitText(); }  SFMLWorldTime::SFMLWorldTime(int x, int y) {     position_x = x;     position_y = y;     if (!time_font.loadFromFile(\"lib\/\u042d\u043b\u0435\u043a\u0442\u0440\u043e.ttf\")) exit(13);     time_color = Color::White;     font_size = 30;     font_step = 3;     InitText();  }  SFMLWorldTime::SFMLWorldTime(int x, int y, int size) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;      position_x = x;     position_y = y;     if (!time_font.loadFromFile(\"lib\/\u042d\u043b\u0435\u043a\u0442\u0440\u043e.ttf\")) exit(13);     time_color = Color::White;     font_size = size * 10;     font_step = size;     InitText(); }  SFMLWorldTime::SFMLWorldTime(int x, int y, int size, Color mycolor) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;     position_x = x;     position_y = y;     if (!time_font.loadFromFile(\"lib\/\u042d\u043b\u0435\u043a\u0442\u0440\u043e.ttf\")) exit(13);     time_color = mycolor;     font_size = size * 10;     font_step = size;     InitText(); }  SFMLWorldTime::SFMLWorldTime(string font) {     position_x = 0;     position_y = 0;     if (!time_font.loadFromFile(font)) exit(13);     time_color = Color::White;     font_size = 30;     font_step = 3;     InitText(); }  SFMLWorldTime::SFMLWorldTime(string font, int x, int y) {     position_x = x;     position_y = y;     if (!time_font.loadFromFile(font)) exit(13);     time_color = Color::White;     font_size = 30;     font_step = 3;     InitText(); }  SFMLWorldTime::SFMLWorldTime(string font, int x, int y, int size) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;     position_x = x;     position_y = y;     if (!time_font.loadFromFile(font)) exit(13);     time_color = Color::White;     font_size = size * 10;     font_step = size;     InitText(); }  SFMLWorldTime::SFMLWorldTime(string font, int x, int y, int size, Color mycolor) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;     position_x = x;     position_y = y;     if (!time_font.loadFromFile(font)) exit(13);     time_color = mycolor;     font_size = size * 10;     font_step = size;     InitText(); }<\/code><\/pre>\n<h2>\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432  \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime,  \u0444\u0430\u0439\u043b SFMLWorldTime.h  <\/h2>\n<pre><code class=\"cpp\">void setposition(int x, int y);  void setcolor(Color color);  void setTime_size(int size);  int getsec();  int getmin();  int gethour();  void drawTime(RenderWindow&amp; window);<\/code><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434\u044b: <strong>setposition,<\/strong> <strong>setcolor<\/strong>, <strong>setTime_size <\/strong>\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432, \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b, \u0446\u0432\u0435\u0442 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440.<\/p>\n<p>\u041c\u0435\u0442\u043e\u0434\u044b: <strong>getsec<\/strong>, <strong>getmin<\/strong>, <strong>gethour<\/strong>, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043c\u0438\u043d\u0443\u0442\u044b, \u0447\u0430\u0441\u044b. <\/p>\n<p>\u041c\u0435\u0442\u043e\u0434 <strong>drawTime<\/strong> \u0440\u0438\u0441\u0443\u0435\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435.  \u0412 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e. <\/p>\n<h2>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432  \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime,  \u0444\u0430\u0439\u043b SFMLWorldTime.cpp  <\/h2>\n<pre><code class=\"cpp\">void SFMLWorldTime::setposition(int x, int y) {     position_x = x;     position_y = y; }  void SFMLWorldTime::setcolor(Color color) {     time_color = color;     InitText(); }  void SFMLWorldTime::setTime_size(int size) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;     font_size = size * 10;     font_step = size;     InitText(); }  int SFMLWorldTime::getsec() {     what_time();  \/\/ \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b newtime     return newtime.tm_sec; }  int SFMLWorldTime::getmin() {     what_time();     return newtime.tm_min; }  int SFMLWorldTime::gethour() {     what_time();     return newtime.tm_hour; }<\/code><\/pre>\n<p> \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 <strong>drawTime<\/strong>  <\/p>\n<pre><code class=\"cpp\">void SFMLWorldTime::drawTime(RenderWindow&amp; window) {      what_time \/\/ \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b newtime();      if (newtime.tm_hour &lt; 10) {         clock_text.setPosition(position_x, position_y);         clock_text.setString(\"0\");         window.draw(clock_text);         clock_text.setPosition(pos[font_step][6] + position_x, position_y);         clock_text.setString(IntToString(newtime.tm_hour));         window.draw(clock_text);     }     else {         clock_text.setPosition(position_x, position_y);         clock_text.setString(IntToString(newtime.tm_hour));         window.draw(clock_text);     }      clock_text.setPosition(pos[font_step][0] + position_x, position_y);     clock_text.setString(\":\");     window.draw(clock_text);      if (newtime.tm_min &lt; 10) {         clock_text.setPosition(pos[font_step][1] + position_x, position_y);         clock_text.setString(\"0\");         window.draw(clock_text);          clock_text.setPosition(pos[font_step][5] + position_x, position_y);         clock_text.setString(IntToString(newtime.tm_min));         window.draw(clock_text);     }     else     {         clock_text.setPosition(pos[font_step][1] + position_x, position_y);         clock_text.setString(IntToString(newtime.tm_min));         window.draw(clock_text);     }      clock_text.setPosition(pos[font_step][2] + position_x, position_y);     clock_text.setString(\":\");     window.draw(clock_text);       if (newtime.tm_sec &lt; 10) {         clock_text.setPosition(pos[font_step][3] + position_x, position_y);         clock_text.setString(\"0\");         window.draw(clock_text);          clock_text.setPosition(pos[font_step][4] + position_x, position_y);         clock_text.setString(IntToString(newtime.tm_sec));         window.draw(clock_text);      }     else     {         clock_text.setPosition(pos[font_step][3] + position_x, position_y);         clock_text.setString(IntToString(newtime.tm_sec));         window.draw(clock_text);     } }<\/code><\/pre>\n<p>\u0412 \u043c\u0435\u0442\u043e\u0434\u0435 <strong>drawTime <\/strong>\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0447\u0430\u0441\u043e\u0432, \u0435\u0441\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0447\u0430\u0441\u043e\u0432 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043c\u0435\u043d\u044c\u0448\u0435 10, \u0442\u043e\u0433\u0434\u0430 \u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u043c\u0438.  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0438 \u0435\u0433\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u043e\u043d \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438 \u043c\u0435\u0442\u043e\u0434\u0430 <strong>window.draw()<\/strong>.<\/p>\n<p>\u0414\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0446\u0435\u043b\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e  <strong>IntToString<\/strong>() (\u043d\u0435 \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime). \u042d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u0438\u043c \u0432 \u0444\u0430\u0439\u043b\u0435 SFMLWorldTime.h<\/p>\n<pre><code class=\"cpp\">string IntToString(int number);<\/code><\/pre>\n<p>\u0410 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <strong>#include &lt;sstream>  <\/strong>\u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong>IntToString.<\/strong><\/p>\n<p>\u0412 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong>IntToString<\/strong> \u0432\u0432\u043e\u0434\u0438\u043c \u0446\u0435\u043b\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0435.<\/p>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u0434\u0430\u043d\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 \u0444\u0430\u0439\u043b\u0435 SFMLWorldTime.cpp<\/p>\n<pre><code class=\"cpp\">string IntToString(int number) {     ostringstream TextString;     TextString &lt;&lt; number;     return TextString.str(); }<\/code><\/pre>\n<p> \u041e\u0431\u044a\u0435\u043a\u0442 <strong>TextString <\/strong>\u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430<strong> #include &lt;sstream><\/strong> \u0432 \u0444\u0430\u0439\u043b\u0435<strong> SFMLWorldTime.h<\/strong>  <\/p>\n<h2> \u041e\u0431\u044a\u0435\u043a\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b SFMLWorldTime.  <\/h2>\n<p> \u0412 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong>main  <\/strong>\u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u0442\u0438\u043f <strong>SFMLWorldTime (<\/strong>\u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b) \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0438\u043a\u043b\u0430 <strong>for <\/strong>\u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e 10 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432.   <\/p>\n<pre><code class=\"cpp\">#include \"SFMLWorldTime.h\"  using namespace sf;  int main() {              RenderWindow window(VideoMode(900, 900), L\"\u0427\u0430\u0441\u044b\", Style::Default);          Image icon;     if (!icon.loadFromFile(\"Image\/clock.png\"))     {         return 3;     }      window.setIcon(128, 128, icon.getPixelsPtr());     SFMLWorldTime mytime(50,50,4);    mytime.setcolor(Color::Yellow);                 while (window.isOpen())     {         Event event;         while (window.pollEvent(event))         {             if (event.type == Event::Closed) window.close();                         }                  window.clear(Color::Blue);          for (int i = 10, kof = 0, kof2 = 20, posy = 50, posx = 200; i > 0; i--,             kof += 10, posy += 130 - kof, kof -= 2, posx += kof2)         {             mytime.setTime_size(i);             mytime.setposition(posx, posy);             mytime.drawTime(window);         }                  window.display();     }     return 0; }<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/082\/a57\/dbb\/082a57dbbf036a3afcf71669020a190a.jpg\" width=\"530\" height=\"837\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/082\/a57\/dbb\/082a57dbbf036a3afcf71669020a190a.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<h2> \u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0444\u0430\u0439\u043b\u0430 SFMLWorldTime.h  <\/h2>\n<pre><code class=\"cpp\">#pragma once #include &lt;SFML\/Graphics.hpp> #include &lt;sstream>  using namespace sf;  using namespace std;  class SFMLWorldTime { struct tm newtime; __time64_t long_time; errno_t err;  int position_x, position_y;  int font_size, font_step;  Font time_font;  Color time_color;  Text clock_text;  int  pos[11][7]{ {0,0,0,0,0,0,0},{19,25,45,52,60,35,10}, {35,45,82,95,110,62,15}, {49,60,109,120,142,82,22}, {65,80,145,160,190,110,32}, {78,95,175,195,230,133,37}, {90,105,200,215,260,153,43} ,{105,125,230,250,305,175,50}, {120,140,260,280,340,195,60},{138,160,295,320,390,225,70},{148,175,325,350,430,250,75} };  void InitText();  void what_time();  public:  SFMLWorldTime();  SFMLWorldTime(string font); SFMLWorldTime(string font, int x, int y); SFMLWorldTime(string font, int x, int y, int size); SFMLWorldTime(string font, int x, int y, int size, Color mycolor);  SFMLWorldTime(int x, int y); SFMLWorldTime(int x, int y, int size); SFMLWorldTime(int x, int y, int size, Color mycolor);  void setposition(int x, int y);  void setcolor(Color color);  void setTime_size(int size);  int getsec();  int getmin();  int gethour();  void drawTime(RenderWindow&amp; window);  };  string IntToString(int number);<\/code><\/pre>\n<h2> \u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0444\u0430\u0439\u043b\u0430 SFMLWorldTime.cpp  <\/h2>\n<pre><code class=\"cpp\">#include \"SFMLWorldTime.h\"  SFMLWorldTime::SFMLWorldTime() {     position_x = 0;     position_y = 0;     if (!time_font.loadFromFile(\"lib\/\u042d\u043b\u0435\u043a\u0442\u0440\u043e.ttf\")) exit(13);     time_color = Color::White;     font_size = 30;     font_step = 3;     InitText(); }  SFMLWorldTime::SFMLWorldTime(int x, int y) {     position_x = x;     position_y = y;     if (!time_font.loadFromFile(\"lib\/\u042d\u043b\u0435\u043a\u0442\u0440\u043e.ttf\")) exit(13);     time_color = Color::White;     font_size = 30;     font_step = 3;     InitText();  }  SFMLWorldTime::SFMLWorldTime(int x, int y, int size) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;      position_x = x;     position_y = y;     if (!time_font.loadFromFile(\"lib\/\u042d\u043b\u0435\u043a\u0442\u0440\u043e.ttf\")) exit(13);     time_color = Color::White;     font_size = size * 10;     font_step = size;     InitText(); }  SFMLWorldTime::SFMLWorldTime(int x, int y, int size, Color mycolor) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;     position_x = x;     position_y = y;     if (!time_font.loadFromFile(\"lib\/\u042d\u043b\u0435\u043a\u0442\u0440\u043e.ttf\")) exit(13);     time_color = mycolor;     font_size = size * 10;     font_step = size;     InitText(); }  SFMLWorldTime::SFMLWorldTime(string font) {     position_x = 0;     position_y = 0;     if (!time_font.loadFromFile(font)) exit(13);     time_color = Color::White;     font_size = 30;     font_step = 3;     InitText(); }  SFMLWorldTime::SFMLWorldTime(string font, int x, int y) {     position_x = x;     position_y = y;     if (!time_font.loadFromFile(font)) exit(13);     time_color = Color::White;     font_size = 30;     font_step = 3;     InitText(); }  SFMLWorldTime::SFMLWorldTime(string font, int x, int y, int size) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;     position_x = x;     position_y = y;     if (!time_font.loadFromFile(font)) exit(13);     time_color = Color::White;     font_size = size * 10;     font_step = size;     InitText(); }  SFMLWorldTime::SFMLWorldTime(string font, int x, int y, int size, Color mycolor) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;     position_x = x;     position_y = y;     if (!time_font.loadFromFile(font)) exit(13);     time_color = mycolor;     font_size = size * 10;     font_step = size;     InitText(); } void SFMLWorldTime::drawTime(RenderWindow&amp; window) {      what_time();      if (newtime.tm_hour &lt; 10) {         clock_text.setPosition(position_x, position_y);         clock_text.setString(\"0\");         window.draw(clock_text);         clock_text.setPosition(pos[font_step][6] + position_x, position_y);         clock_text.setString(IntToString(newtime.tm_hour));         window.draw(clock_text);     }     else {         clock_text.setPosition(position_x, position_y);         clock_text.setString(IntToString(newtime.tm_hour));         window.draw(clock_text);     }      clock_text.setPosition(pos[font_step][0] + position_x, position_y);     clock_text.setString(\":\");     window.draw(clock_text);      if (newtime.tm_min &lt; 10) {         clock_text.setPosition(pos[font_step][1] + position_x, position_y);         clock_text.setString(\"0\");         window.draw(clock_text);          clock_text.setPosition(pos[font_step][5] + position_x, position_y);         clock_text.setString(IntToString(newtime.tm_min));         window.draw(clock_text);     }     else     {         clock_text.setPosition(pos[font_step][1] + position_x, position_y);         clock_text.setString(IntToString(newtime.tm_min));         window.draw(clock_text);     }      clock_text.setPosition(pos[font_step][2] + position_x, position_y);     clock_text.setString(\":\");     window.draw(clock_text);       if (newtime.tm_sec &lt; 10) {         clock_text.setPosition(pos[font_step][3] + position_x, position_y);         clock_text.setString(\"0\");         window.draw(clock_text);          clock_text.setPosition(pos[font_step][4] + position_x, position_y);         clock_text.setString(IntToString(newtime.tm_sec));         window.draw(clock_text);      }     else     {         clock_text.setPosition(pos[font_step][3] + position_x, position_y);         clock_text.setString(IntToString(newtime.tm_sec));         window.draw(clock_text);     } }  void SFMLWorldTime::InitText() {     clock_text.setFont(time_font);     clock_text.setCharacterSize(font_size);     clock_text.setFillColor(time_color); }  void SFMLWorldTime::what_time() {     _time64(&amp;long_time);     err = _localtime64_s(&amp;newtime, &amp;long_time);     if (err) exit(23); }  void SFMLWorldTime::setposition(int x, int y) {     position_x = x;     position_y = y; }  void SFMLWorldTime::setcolor(Color color) {     time_color = color;     InitText(); }  void SFMLWorldTime::setTime_size(int size) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;     font_size = size * 10;     font_step = size;     InitText(); }  int SFMLWorldTime::getsec() {     what_time();     return newtime.tm_sec; }  int SFMLWorldTime::getmin() {     what_time();     return newtime.tm_min; }  int SFMLWorldTime::gethour() {     what_time();     return newtime.tm_hour; } string IntToString(int number) {     ostringstream TextString;     TextString &lt;&lt; number;     return TextString.str(); }<\/code><\/pre>\n<p> \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e  \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0432\u0438\u0434\u0435\u043e &#171;\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b SFML C++&#187;.  <\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/63971b0114d7249a4672dfef\" data-style=\"\" id=\"63971b0114d7249a4672dfef\" width=\"\"><\/div>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/702128\/\" rel=\"noopener noreferrer nofollow\"><u>\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0442\u0435\u043c\u0430<\/u><\/a> <\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/704956\/\"> https:\/\/habr.com\/ru\/post\/704956\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><a href=\"https:\/\/habr.com\/ru\/post\/702128\/\" rel=\"noopener noreferrer nofollow\"><u>\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0442\u0435\u043c\u0430<\/u><\/a>  <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0421++ \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e, \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u0434\u043b\u044f 2D \u0438\u0433\u0440 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0439\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 SFML.  \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0432 \u043d\u0430\u0448\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043b\u0430\u0441\u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u043d\u044f\u0442\u044c \u0448\u0440\u0438\u0444\u0442, \u0440\u0430\u0437\u043c\u0435\u0440 \u0438 \u0446\u0432\u0435\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432. <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f <a href=\"https:\/\/visualstudio.microsoft.com\/ru\/\" rel=\"noopener noreferrer nofollow\">IDE Visual Studio<\/a>, <a href=\"https:\/\/habr.com\/ru\/post\/703500\/\" rel=\"noopener noreferrer nofollow\">\u0421++ \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 SFML<\/a>, \u0448\u0430\u0431\u043b\u043e\u043d \u043a\u043e\u0434\u0430 SFML, <a href=\"https:\/\/t.me\/C_Verhovcevo_NVK\/194\" rel=\"noopener noreferrer nofollow\">\u0438\u043a\u043e\u043d\u043a\u0438 \u0438 \u0448\u0440\u0438\u0444\u0442\u044b.<\/a> <\/p>\n<h2> \u0428\u0430\u0431\u043b\u043e\u043d \u043a\u043e\u0434\u0430 SFML C++  <\/h2>\n<pre><code class=\"cpp\">#include &lt;SFML\/Graphics.hpp>  using namespace sf;  int main() {           \/\/ \u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 900\u0445900 \u0441  \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \"\u0427\u0430\u0441\u044b\"     RenderWindow window(VideoMode(900, 900), L\"\u0427\u0430\u0441\u044b\", Style::Default);     \/\/ \u0418\u043a\u043e\u043d\u043a\u0430 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u043a\u043d\u0430     Image icon;     if (!icon.loadFromFile(\"Image\/clock.png\"))  \/\/\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u043a\u043e\u043d\u043a\u0438     {         return 3; \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 3 \u0435\u0441\u043b\u0438 \u0438\u043a\u043e\u043d\u043a\u0430 \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u0430\u0441\u044c      }     window.setIcon(128, 128, icon.getPixelsPtr()); \/\/ \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0438\u043a\u043e\u043d\u043a\u0443     \/\/ \u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0446\u0438\u043a\u043b \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u043a\u043d\u0430     while (window.isOpen())     {         \/\/ \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f          Event event;         \/\/ \u0426\u0438\u043a\u043b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439         while (window.pollEvent(event))         {             \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u0440\u0435\u0441\u0442\u0438\u043a \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u043a\u043d\u0430             if (event.type == Event::Closed) window.close();                       }         \/\/ \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u043a\u043d\u0430, \u0441 \u043e\u043a\u0440\u0430\u0441\u043a\u043e\u0439 \u0444\u043e\u043d\u0430 \u0432 \u0441\u0438\u043d\u0438\u0439 \u0446\u0432\u0435\u0442         window.clear(Color::Blue);         \/\/ \u0412\u044b\u0432\u043e\u0434 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e               window.display();     }     return 0; }<\/code><\/pre>\n<figure class=\"\"><figcaption>\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 SFML C++<\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0412\u044b \u0441 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u0442\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u043d\u0430\u0437\u043e\u0432\u0451\u043c \u0435\u0433\u043e SFMLWorldTime.   <\/p>\n<h2> \u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime,  \u0444\u0430\u0439\u043b SFMLWorldTime.h  <\/h2>\n<pre><code class=\"cpp\">#include &lt;SFML\/Graphics.hpp>  using namespace sf;  using namespace std;  class SFMLWorldTime { struct tm newtime; __time64_t long_time; errno_t err;  int position_x, position_y;  int font_size, font_step;  Font time_font;  Color time_color;  Text clock_text;  int  pos[11][7]{ {0,0,0,0,0,0,0},{19,25,45,52,60,35,10}, {35,45,82,95,110,62,15}, {49,60,109,120,142,82,22}, {65,80,145,160,190,110,32}, {78,95,175,195,230,133,37}, {90,105,200,215,260,153,43} ,{105,125,230,250,305,175,50}, {120,140,260,280,340,195,60},{138,160,295,320,390,225,70},{148,175,325,350,430,250,75} };   };<\/code><\/pre>\n<p><strong>newtime<\/strong> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u043e\u043b\u044f \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438: \u0447\u0430\u0441\u044b, \u043c\u0438\u043d\u0443\u0442\u044b \u0438 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. <strong>long_time<\/strong>  &#8212; \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.  <strong>err &#8212;<\/strong> \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u043a\u043e\u0434 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u0438 \u043d\u0435\u0432\u0435\u0440\u043d\u043e\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438. <\/p>\n<p><strong>position_x, position_y<\/strong> &#8212; \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432.<\/p>\n<p><strong>font_size &#8212; <\/strong>\u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432.<\/p>\n<p><strong>font_step<\/strong> &#8212; \u0448\u0430\u0433 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0443 <strong>pos  <\/strong>\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f  \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432  \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432. <\/p>\n<figure class=\"\"><figcaption>\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b<\/figcaption><\/figure>\n<figure class=\"\"><figcaption>\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/figcaption><\/figure>\n<figure class=\"\"><figcaption>\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0433\u0440\u0430\u043d\u0438\u0446<\/figcaption><\/figure>\n<figure class=\"\"><figcaption>\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0443\u043b\u0435\u0439<\/figcaption><\/figure>\n<p>\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u0441\u043e\u0441\u0442\u043e\u044f\u0442 \u0438\u0437 8 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043f\u0440\u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438. \u0412 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 <strong>pos<\/strong> \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u044b \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0434\u043b\u044f \u0441\u0435\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0442\u0430\u043a \u043a\u0430\u043a \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u0435\u043b\u044c \u0431\u0435\u0440\u0451\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b <strong>position_x, position_y.<\/strong><\/p>\n<p><strong>time_font<\/strong> &#8212; \u0445\u0440\u0430\u043d\u0438\u0442 \u0448\u0440\u0438\u0444\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <strong>time_color <\/strong>\u0445\u0440\u0430\u043d\u0438\u0442 \u0446\u0432\u0435\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432. <strong>clock_text<\/strong> &#8212;  \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0438\u0441\u0443\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435.<\/p>\n<h2> \u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime, \u0444\u0430\u0439\u043b SFMLWorldTime.h  <\/h2>\n<pre><code class=\"cpp\">void InitText();  void what_time();<\/code><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434 <strong>InitText<\/strong> \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 <strong>clock_text.<\/strong><\/p>\n<p>\u041c\u0435\u0442\u043e\u0434 <strong> what_time<\/strong> \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <strong>newtime.<\/strong><\/p>\n<h2>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime, \u0444\u0430\u0439\u043b SFMLWorldTime.cpp  <\/h2>\n<pre><code class=\"cpp\">void SFMLWorldTime::InitText() {     clock_text.setFont(time_font);          \/\/ \u0442\u0438\u043f \u0448\u0440\u0438\u0444\u0442\u0430     clock_text.setCharacterSize(font_size); \/\/ \u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430     clock_text.setFillColor(time_color);    \/\/ \u0446\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430 }  void SFMLWorldTime::what_time() {     _time64(&amp;long_time); \/\/ \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f     \/\/ \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 newtime     err = _localtime64_s(&amp;newtime, &amp;long_time);     if (err) exit(23); \/\/ \u043f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043a\u043e\u0434 \u043e\u0448\u0438\u0431\u043a\u0438 23 }<\/code><\/pre>\n<h2>\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043e\u0432  \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime,  \u0444\u0430\u0439\u043b SFMLWorldTime.h  <\/h2>\n<pre><code class=\"cpp\">public:     \/\/ \u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u0431\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 SFMLWorldTime();  SFMLWorldTime(string font); \/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0448\u0440\u0438\u0444\u0442 SFMLWorldTime(string font, int x, int y);\/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0448\u0440\u0438\u0444\u0442 \u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b SFMLWorldTime(string font, int x, int y, int size); \/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0448\u0440\u0438\u0444\u0442, \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0438 \u0440\u0430\u0437\u043c\u0435\u0440 \/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0448\u0440\u0438\u0444\u0442, \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b, \u0440\u0430\u0437\u043c\u0435\u0440 \u0438 \u0446\u0432\u0435\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 SFMLWorldTime(string font, int x, int y, int size, Color mycolor);  SFMLWorldTime(int x, int y); \/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b SFMLWorldTime(int x, int y, int size); \/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0438 \u0440\u0430\u0437\u043c\u0435\u0440 SFMLWorldTime(int x, int y, int size, Color mycolor);\/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b, \u0440\u0430\u0437\u043c\u0435\u0440 \u0438 \u0446\u0432\u0435\u0442<\/code><\/pre>\n<h2>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435  \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043e\u0432  \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime,  \u0444\u0430\u0439\u043b SFMLWorldTime.cpp  <\/h2>\n<pre><code class=\"cpp\">SFMLWorldTime::SFMLWorldTime() {     position_x = 0;     position_y = 0;     if (!time_font.loadFromFile(\"lib\/\u042d\u043b\u0435\u043a\u0442\u0440\u043e.ttf\")) exit(13);     time_color = Color::White;     font_size = 30;     font_step = 3;     InitText(); }  SFMLWorldTime::SFMLWorldTime(int x, int y) {     position_x = x;     position_y = y;     if (!time_font.loadFromFile(\"lib\/\u042d\u043b\u0435\u043a\u0442\u0440\u043e.ttf\")) exit(13);     time_color = Color::White;     font_size = 30;     font_step = 3;     InitText();  }  SFMLWorldTime::SFMLWorldTime(int x, int y, int size) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;      position_x = x;     position_y = y;     if (!time_font.loadFromFile(\"lib\/\u042d\u043b\u0435\u043a\u0442\u0440\u043e.ttf\")) exit(13);     time_color = Color::White;     font_size = size * 10;     font_step = size;     InitText(); }  SFMLWorldTime::SFMLWorldTime(int x, int y, int size, Color mycolor) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;     position_x = x;     position_y = y;     if (!time_font.loadFromFile(\"lib\/\u042d\u043b\u0435\u043a\u0442\u0440\u043e.ttf\")) exit(13);     time_color = mycolor;     font_size = size * 10;     font_step = size;     InitText(); }  SFMLWorldTime::SFMLWorldTime(string font) {     position_x = 0;     position_y = 0;     if (!time_font.loadFromFile(font)) exit(13);     time_color = Color::White;     font_size = 30;     font_step = 3;     InitText(); }  SFMLWorldTime::SFMLWorldTime(string font, int x, int y) {     position_x = x;     position_y = y;     if (!time_font.loadFromFile(font)) exit(13);     time_color = Color::White;     font_size = 30;     font_step = 3;     InitText(); }  SFMLWorldTime::SFMLWorldTime(string font, int x, int y, int size) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;     position_x = x;     position_y = y;     if (!time_font.loadFromFile(font)) exit(13);     time_color = Color::White;     font_size = size * 10;     font_step = size;     InitText(); }  SFMLWorldTime::SFMLWorldTime(string font, int x, int y, int size, Color mycolor) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;     position_x = x;     position_y = y;     if (!time_font.loadFromFile(font)) exit(13);     time_color = mycolor;     font_size = size * 10;     font_step = size;     InitText(); }<\/code><\/pre>\n<h2>\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432  \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime,  \u0444\u0430\u0439\u043b SFMLWorldTime.h  <\/h2>\n<pre><code class=\"cpp\">void setposition(int x, int y);  void setcolor(Color color);  void setTime_size(int size);  int getsec();  int getmin();  int gethour();  void drawTime(RenderWindow&amp; window);<\/code><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434\u044b: <strong>setposition,<\/strong> <strong>setcolor<\/strong>, <strong>setTime_size <\/strong>\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432, \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b, \u0446\u0432\u0435\u0442 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440.<\/p>\n<p>\u041c\u0435\u0442\u043e\u0434\u044b: <strong>getsec<\/strong>, <strong>getmin<\/strong>, <strong>gethour<\/strong>, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043c\u0438\u043d\u0443\u0442\u044b, \u0447\u0430\u0441\u044b. <\/p>\n<p>\u041c\u0435\u0442\u043e\u0434 <strong>drawTime<\/strong> \u0440\u0438\u0441\u0443\u0435\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435.  \u0412 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e. <\/p>\n<h2>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432  \u043a\u043b\u0430\u0441\u0441\u0430 SFMLWorldTime,  \u0444\u0430\u0439\u043b SFMLWorldTime.cpp  <\/h2>\n<pre><code class=\"cpp\">void SFMLWorldTime::setposition(int x, int y) {     position_x = x;     position_y = y; }  void SFMLWorldTime::setcolor(Color color) {     time_color = color;     InitText(); }  void SFMLWorldTime::setTime_size(int size) {     (size > 10) ? size = 10 : (size &lt; 1) ? size = 1 : size = size;     font_size = size * 10;     font_step = size;     InitText(); }  int SFMLWorldTime::getsec() {     what_time();  \/\/ \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b newtime     return newtime.tm_sec; }  int SFMLWorldTime::getmin() {     what_time();     return newtime.tm_min; }  int SFMLWorldTime::gethour() {     what_time();     return newtime.tm_hour; }<\/code><\/pre>\n<p> \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 <strong>drawTime<\/strong>  <\/p>\n<pre><code class=\"cpp\">void SFMLWorldTime::drawTime(RenderWindow&amp; window) {      what_time \/\/ \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b newtime();      if (newtime.tm_hour &lt; 10) {         clock_text.setPosition(position_x, position_y);         clock_text.setString(\"0\");         window.draw(clock_text);         clock_text.setPosition(pos[font_step][6] + position_x, position_y);         clock_text.setString(IntToString(newtime.tm_hour));         window.draw(clock_text);     }     else {         clock_text.setPosition(position_x, position_y);         clock_text.setString(IntToString(newtime.tm_hour));         window.draw(clock_text);     }      clock_text.setPosition(pos[font_step][0] + position_x, position_y);     clock_text.setString(\":\");     window.draw(clock_text);      if (newtime.tm_min &lt; 10) {         clock_text.setPosition(pos[font_step][1] + position_x, position_y);         clock_text.setString(\"0\");         window.draw(clock_text);          clock_text.setPosition(pos[font_step][5] + position_x, position_y);         clock_text.setString(IntToString(newtime.tm_min));         window.draw(clock_text);     }     else     {         clock_text.setPosition(pos[font_step][1] + position_x, position_y);         clock_text.setString(IntToString(newtime.tm_min));         window.draw(clock_text);     }      clock_text.setPosition(pos[font_step][2] + position_x, position_y);     clock_text.setString(\":\");     window.draw(clock_text);       if (newtime.tm_sec &lt; 10) {         clock_text.setPosition(pos[font_step][3] + position_x, position_y);<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-342467","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=342467"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342467\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=342467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=342467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=342467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}