{"id":40870,"date":"2025-05-30T12:26:17","date_gmt":"2025-05-30T04:26:17","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/40870.html"},"modified":"2025-05-30T12:26:17","modified_gmt":"2025-05-30T04:26:17","slug":"%e5%9f%ba%e4%ba%8e%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%e8%ae%be%e8%ae%a1%e7%9a%84c%e6%97%a5%e6%9c%9f%e6%8e%a8%e7%ae%97%e5%bc%95%e6%93%8e%ef%bc%9a%e7%b2%be%e5%87%86%e9%ab%98%e6%95%88%e7%9a%84","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/40870.html","title":{"rendered":"\u57fa\u4e8e\u9762\u5411\u5bf9\u8c61\u8bbe\u8ba1\u7684C++\u65e5\u671f\u63a8\u7b97\u5f15\u64ce\uff1a\u7cbe\u51c6\u9ad8\u6548\u7684\u65f6\u95f4\u8fd0\u7b97\u5b9e\u73b0\u4e0e\u8fd0\u7b97\u91cd\u8f7d\u5de5\u7a0b\u5316\u5b9e\u8df5"},"content":{"rendered":"<p style=\"text-align:center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"219\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042608-683933609f8c1.gif\" width=\"165\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042608-68393360c158f.gif\" \/><\/p>\n<p><span style=\"color:#fe2c24\">\u524d\u5f15&#xff1a;<\/span><span style=\"color:#a2e043\"> \u5728\u8f6f\u4ef6\u5f00\u53d1\u4e2d&#xff0c;\u65f6\u95f4\u4e0e\u65e5\u671f\u7684\u5904\u7406\u662f\u57fa\u7840\u4f46\u6781\u5177\u6311\u6218\u6027\u7684\u4efb\u52a1\u3002\u4f20\u7edf\u7684\u624b\u5de5\u65e5\u671f\u8fd0\u7b97\u903b\u8f91\u5f80\u5f80\u9762\u4e34\u95f0\u5e74\u89c4\u5219\u3001\u6708\u4efd\u5929\u6570\u52a8\u6001\u53d8\u5316\u3001\u65f6\u533a\u8f6c\u6362\u7b49\u590d\u6742\u573a\u666f\u7684\u5bb9\u9519\u96be\u9898&#xff0c;\u4e14\u4ee3\u7801\u5197\u4f59\u5ea6\u9ad8\u3001\u53ef\u7ef4\u62a4\u6027\u5dee\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8\u5982\u4f55\u5229\u7528C&#043;&#043;\u7684\u9762\u5411\u5bf9\u8c61\u7279\u6027\u4e0e\u6210\u5458\u51fd\u6570\u5c01\u88c5\u80fd\u529b&#xff0c;\u6784\u5efa\u4e00\u4e2a\u9ad8\u5185\u805a\u3001\u4f4e\u8026\u5408\u7684\u65e5\u671f\u63a8\u7b97\u7cfb\u7edf\u3002<\/span><\/p>\n<p><span style=\"color:#fe2c24\">\u00a0\u672c\u6587\u76ee\u7684&#xff1a;<\/span><span style=\"color:#38d8f0\">\u6df1\u5ea6 \u5de9\u56fa&#043;\u8fd0\u7528 C&#043;&#043;\u8fd0\u7b97\u7b26\u91cd\u8f7d\u6210\u5458\u51fd\u6570&#xff0c;\u7ec6\u8282\u592f\u5b9e&#xff01;<\/span><\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E5%AE%9E%E8%B7%B5%E5%BC%95%E5%85%A5-toc\" style=\"margin-left:40px\">\u5b9e\u8df5\u5f15\u5165<\/p>\n<p id=\"%E8%BF%90%E7%AE%97%E7%AC%A6%E9%87%8D%E8%BD%BD%E5%AE%9E%E8%B7%B5%E2%80%94%E6%97%A5%E6%9C%9F%E6%AF%94%E5%A4%A7%E5%B0%8F-toc\" style=\"margin-left:40px\">\u8fd0\u7b97\u7b26\u91cd\u8f7d\u5b9e\u8df5\u2014\u65e5\u671f\u6bd4\u5927\u5c0f<\/p>\n<p id=\"%E7%B1%BB%E7%9A%84%E5%88%9B%E5%BB%BA-toc\" style=\"margin-left:120px\">\u7c7b\u7684\u521b\u5efa<\/p>\n<p id=\"%E6%97%A5%E6%9C%9F%E6%AF%94%E8%BE%83-toc\" style=\"margin-left:120px\">\u65e5\u671f\u6bd4\u8f83<\/p>\n<p id=\"%E6%97%A5%E6%9C%9F%E7%9B%B8%E7%AD%89%E5%88%A4%E6%96%AD-toc\" style=\"margin-left:200px\">\u65e5\u671f\u76f8\u7b49\u5224\u65ad<\/p>\n<p id=\"%C2%A0%E6%97%A5%E6%9C%9F%E5%B0%8F%E4%BA%8E%E5%88%A4%E6%96%AD-toc\" style=\"margin-left:200px\">\u00a0\u65e5\u671f\u5c0f\u4e8e\u5224\u65ad<\/p>\n<p id=\"%E6%97%A5%E6%9C%9F%E5%B0%8F%E4%BA%8E%E7%AD%89%E4%BA%8E%E5%88%A4%E6%96%AD-toc\" style=\"margin-left:200px\">\u65e5\u671f\u5c0f\u4e8e\u7b49\u4e8e\u5224\u65ad<\/p>\n<p id=\"%E6%97%A5%E6%9C%9F%E5%A4%A7%E4%BA%8E%E5%88%A4%E6%96%AD-toc\" style=\"margin-left:200px\">\u65e5\u671f\u5927\u4e8e\u5224\u65ad<\/p>\n<p id=\"%E6%97%A5%E6%9C%9F%E5%A4%A7%E4%BA%8E%E7%AD%89%E4%BA%8E%E5%88%A4%E6%96%AD-toc\" style=\"margin-left:200px\">\u65e5\u671f\u5927\u4e8e\u7b49\u4e8e\u5224\u65ad<\/p>\n<p id=\"%E6%80%BB%E7%BB%93-toc\" style=\"margin-left:120px\">\u603b\u7ed3<\/p>\n<p id=\"%E8%BF%90%E7%AE%97%E7%AC%A6%E9%87%8D%E8%BD%BD%E5%AE%9E%E8%B7%B5%E2%80%94%E6%97%A5%E6%9C%9F%E6%8E%A8%E7%AE%97-toc\" style=\"margin-left:40px\">\u8fd0\u7b97\u7b26\u91cd\u8f7d\u5b9e\u8df5\u2014\u65e5\u671f\u63a8\u7b97<\/p>\n<p id=\"%E7%B1%BB%E7%9A%84%E5%88%9B%E5%BB%BA-toc\" style=\"margin-left:120px\">\u7c7b\u7684\u521b\u5efa<\/p>\n<p id=\"%E6%97%A5%E6%9C%9F%E6%8E%A8%E7%AE%97%EF%BC%88%E5%90%8E%EF%BC%89-toc\" style=\"margin-left:120px\">\u65e5\u671f\u63a8\u7b97&#xff08;\u540e&#xff09;<\/p>\n<p id=\"%E8%AE%A1%E7%AE%97%E5%BD%93%E6%9C%88%E5%A4%A9%E6%95%B0-toc\" style=\"margin-left:200px\">\u8ba1\u7b97\u5f53\u6708\u5929\u6570<\/p>\n<p id=\"%E6%97%A5%E6%9C%9F%E8%BF%9B%E4%BD%8D%E8%AE%A1%E7%AE%97-toc\" style=\"margin-left:200px\">\u65e5\u671f\u8fdb\u4f4d\u8ba1\u7b97<\/p>\n<p id=\"%E6%B5%8B%E8%AF%95-toc\" style=\"margin-left:200px\">\u6d4b\u8bd5<\/p>\n<p id=\"%E5%8F%98%E5%BC%8F-toc\" style=\"margin-left:200px\">\u53d8\u5f0f<\/p>\n<p id=\"%C2%A0%E6%97%A5%E6%9C%9F%E6%8E%A8%E7%AE%97%EF%BC%88%E5%89%8D%EF%BC%89-toc\" style=\"margin-left:120px\">\u00a0\u65e5\u671f\u63a8\u7b97&#xff08;\u524d&#xff09;<\/p>\n<p id=\"%E6%97%A5%E6%9C%9F%E9%80%80%E4%BD%8D%E8%AE%A1%E7%AE%97-toc\" style=\"margin-left:200px\">\u65e5\u671f\u9000\u4f4d\u8ba1\u7b97<\/p>\n<p id=\"%E6%B5%8B%E8%AF%95%C2%A0-toc\" style=\"margin-left:200px\">\u6d4b\u8bd5\u00a0<\/p>\n<p id=\"%E6%97%A5%E6%9C%9F%E6%8E%A8%E7%AE%97%EF%BC%88%E5%89%8D%E7%BD%AE%2B%2B%EF%BC%89-toc\" style=\"margin-left:120px\">\u65e5\u671f\u63a8\u7b97&#xff08;\u524d\u7f6e&#043;&#043;&#xff09;<\/p>\n<p id=\"%E6%B5%8B%E8%AF%95-toc\" style=\"margin-left:200px\">\u6d4b\u8bd5<\/p>\n<p id=\"%E6%97%A5%E6%9C%9F%E6%8E%A8%E7%AE%97%EF%BC%88%E5%89%8D%E7%BD%AE--%EF%BC%89-toc\" style=\"margin-left:120px\">\u65e5\u671f\u63a8\u7b97&#xff08;\u524d\u7f6e&#8211;&#xff09;<\/p>\n<p id=\"%E6%B5%8B%E8%AF%95-toc\" style=\"margin-left:200px\">\u6d4b\u8bd5<\/p>\n<p id=\"%C2%A0%E6%97%A5%E6%9C%9F%E6%8E%A8%E7%AE%97%EF%BC%88%E5%90%8E%E7%BD%AE--%EF%BC%89-toc\" style=\"margin-left:120px\">\u00a0\u65e5\u671f\u63a8\u7b97&#xff08;\u540e\u7f6e&#8211;&#xff09;<\/p>\n<p id=\"%E6%B5%8B%E8%AF%95-toc\" style=\"margin-left:200px\">\u6d4b\u8bd5<\/p>\n<p id=\"%C2%A0%E8%BF%90%E7%AE%97%E7%AC%A6%E9%87%8D%E8%BD%BD%E5%AE%9E%E8%B7%B5%E2%80%94%E6%97%A5%E6%9C%9F%E9%97%B4%E9%9A%94-toc\" style=\"margin-left:40px\">\u00a0\u8fd0\u7b97\u7b26\u91cd\u8f7d\u5b9e\u8df5\u2014\u65e5\u671f\u95f4\u9694<\/p>\n<hr id=\"hr-toc\" \/>\n<h3 id=\"%E5%AE%9E%E8%B7%B5%E5%BC%95%E5%85%A5\" style=\"background-color:transparent\">\u5b9e\u8df5\u5f15\u5165<\/h3>\n<p>\u6211\u4eec\u65e5\u5e38\u751f\u6d3b\u4e2d\u5bf9\u4e8e\u65e5\u671f\u7684\u4f7f\u7528\u5f88\u5e7f\u6cdb&#xff0c;\u4f8b\u5982&#xff1a;\u8ddd\u79bb\u9ad8\u8003***\u5929\u3001\u4eca\u5929\u662f*\u5e74*\u6708*\u65e5&#8230;&#8230;.<\/p>\n<p>\u5927\u5bb6\u53ef\u4ee5\u70b9\u51fb\u4e0b\u9762\u8fd9\u4e2a\u94fe\u63a5\u4f53\u9a8c\u4e00\u4e0b\u5bf9\u4e8e\u65f6\u95f4\u7684\u8ba1\u7b97&#xff1a;<\/p>\n<p><span class=\"link-card-box\"><span class=\"link-title\">https:\/\/onlinealarmkur.com\/date\/zh-cn\/<\/span><span class=\"link-link\"><img decoding=\"async\" class=\"link-link-icon\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042608-68393360d21b0.png\" \/>https:\/\/onlinealarmkur.com\/date\/zh-cn\/<\/span><\/span><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042608-68393360df706.png\" \/><\/p>\n<p>\u6700\u8fd1\u54b1\u4eec\u5b66\u4e60\u7684\u7c7b\u548c\u5bf9\u8c61\u4e2d \u8fd0\u7b97\u7b26\u91cd\u8f7d\u6210\u5458\u51fd\u6570 \u5c31\u53ef\u4ee5\u6765\u7b80\u5355\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd&#xff01;<\/p>\n<h3 id=\"%E8%BF%90%E7%AE%97%E7%AC%A6%E9%87%8D%E8%BD%BD%E5%AE%9E%E8%B7%B5%E2%80%94%E6%97%A5%E6%9C%9F%E6%AF%94%E5%A4%A7%E5%B0%8F\">\u8fd0\u7b97\u7b26\u91cd\u8f7d\u5b9e\u8df5\u2014\u65e5\u671f\u6bd4\u5927\u5c0f<\/h3>\n<h5 id=\"%E7%B1%BB%E7%9A%84%E5%88%9B%E5%BB%BA\">\u7c7b\u7684\u521b\u5efa<\/h5>\n<p>\u65e2\u7136\u662f\u65e5\u671f\u8ba1\u7b97&#xff0c;\u90a3\u4e48\u8fd8\u548c\u4e0a\u9762\u7684\u7c7b\u4e00\u6837&#xff0c;\u9700\u8981\u6709\u5e74\u3001\u6708\u3001\u65e5<\/p>\n<p>class Timedate<br \/>\n{<br \/>\npublic:<br \/>\n\/\/\u6784\u9020\u51fd\u6570<br \/>\nTimedate(int year &#061; 2025, int month &#061; 5, int day &#061; 9)<br \/>\n{<br \/>\n_year &#061; year;<br \/>\n_month &#061; month;<br \/>\n_day &#061; day;<br \/>\n}<\/p>\n<p>private:<br \/>\nint _year;<br \/>\nint _month;<br \/>\nint _day;<br \/>\n}; <\/p>\n<h5 id=\"%E6%97%A5%E6%9C%9F%E6%AF%94%E8%BE%83\">\u65e5\u671f\u6bd4\u8f83<\/h5>\n<h6 id=\"%E6%97%A5%E6%9C%9F%E7%9B%B8%E7%AD%89%E5%88%A4%E6%96%AD\">\u65e5\u671f\u76f8\u7b49\u5224\u65ad<\/h6>\n<p>\u54b1\u4eec\u5f97\u6210\u5458\u51fd\u6570\u53ef\u4ee5\u53ea\u5728\u7c7b\u91cc\u9762\u8fdb\u884c\u58f0\u660e&#xff0c;\u5728\u53e6\u4e00\u4e2a\u6587\u4ef6\u6765\u5b8c\u6210\u51fd\u6570\u7684\u5b9e\u73b0&#xff0c;\u9700\u8981\u6ce8\u660e\u51fd\u6570\u6765\u5386&#xff01;<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042609-68393361caa41.png\" \/><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042610-683933623ff3b.png\" \/><\/p>\n<p>\/\/\u6210\u5458\u51fd\u6570\u5b9a\u4e49<br \/>\nbool Timedate::operator&#061;&#061;(const Timedate St2)<br \/>\n{<br \/>\nif (_year &#061;&#061; St2._year &amp;&amp; _month &#061;&#061;St2._month &amp;&amp; _day &#061;&#061; St2. _day)<br \/>\n{<br \/>\nreturn true;<br \/>\n}<br \/>\nreturn false;<br \/>\n} <\/p>\n<p>\u6ce8\u610f\u54b1\u4eec\u7684\u51fd\u6570\u8c03\u7528&#xff0c;\u4ee5\u4e0b\u4e24\u79cd\u8c03\u7528\u65b9\u5f0f\u662f\u76f8\u7b49\u7684&#xff08;\u4e3a\u4e86\u4f53\u9a8c\u8fd0\u7b97\u7b26\u91cd\u8f7d\u7684\u7b80\u6d01\u6027&#xff0c;\u9009\u7b2c\u4e8c\u79cd&#xff09;<\/p>\n<p>St1 &#061;&#061; St2;<\/p>\n<p>St1.operator&#061;&#061;(St2); <\/p>\n<h6 id=\"%C2%A0%E6%97%A5%E6%9C%9F%E5%B0%8F%E4%BA%8E%E5%88%A4%E6%96%AD\">\u00a0\u65e5\u671f\u5c0f\u4e8e\u5224\u65ad<\/h6>\n<p>\u6309\u7167\u4e0a\u9762\u7684\u6d41\u7a0b&#xff0c;\u6211\u4eec\u5148\u5728\u6210\u5458\u51fd\u6570\u91cc\u9762\u58f0\u660e<\/p>\n<p>bool operator&lt;(const Timedate St2); <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042610-6839336298cf1.png\" \/><\/p>\n<p>\u7136\u540e\u8de8\u6587\u4ef6\u5b9e\u73b0\u8be5\u51fd\u6570\u7684\u5b9a\u4e49<\/p>\n<p>bool Timedate::operator&lt;(const Timedate St2)<br \/>\n{<br \/>\nif (_year &lt; St2._year)<br \/>\n{<br \/>\nreturn true;<br \/>\n}<br \/>\nif (_year &#061;&#061; St2._year &amp;&amp; _month &lt; St2._month)<br \/>\n{<br \/>\nreturn true;<br \/>\n}<br \/>\nif (_year &#061;&#061; St2._year &amp;&amp; _month &#061;&#061; St2._month &amp;&amp; _day &lt; St2._day)<br \/>\n{<br \/>\nreturn true;<br \/>\n}<br \/>\nreturn false;<br \/>\n} <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042611-6839336358103.png\" \/><\/p>\n<h6 id=\"%E6%97%A5%E6%9C%9F%E5%B0%8F%E4%BA%8E%E7%AD%89%E4%BA%8E%E5%88%A4%E6%96%AD\">\u65e5\u671f\u5c0f\u4e8e\u7b49\u4e8e\u5224\u65ad<\/h6>\n<p>\u8fd8\u662f\u5148\u5199\u6210\u5458\u51fd\u6570\u58f0\u660e<\/p>\n<p>bool operator&lt;&#061;(const Timedate St2); <\/p>\n<p><span style=\"color:#fe2c24\">\u968f\u540e\u91cd\u70b9\u6765\u4e86&#xff01;<\/span><\/p>\n<p>\u7b2c\u4e00\u79cd&#xff1a;\u6211\u4eec\u53ef\u4ee5\u548c\u4e0a\u9762\u4e00\u6837&#xff0c;\u901a\u8fc7\u00a0if\u00a0\u8bed\u53e5\u53bb\u5224\u65ad\u6765\u8fd4\u56de\u4e0d\u540c\u7684\u503c<\/p>\n<p>\u7b2c\u4e8c\u79cd&#xff1a;\u54b1\u4eec\u5c0f\u4e8e\u7b49\u4e8e\u7684\u5224\u65ad\u4e0d\u5c31\u662f\u524d\u9762\u4e24\u4e2a\u7ed3\u5408\u8d77\u6765\u5417&#xff1f;\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u8c03\u7528\u4e0a\u9762\u4e24\u4e2a\u51fd\u6570&#xff0c;\u5982\u4e0b<\/p>\n<p>bool Timedate::operator&lt;&#061;(const Timedate St2)<br \/>\n{<br \/>\nreturn ((*this) &lt; St2 || (*this) &#061;&#061; St2);<br \/>\n} <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042611-68393363f1579.png\" \/><\/p>\n<p>\u00a0\u8fd9\u91cc\u9690\u85cf\u7684 this \u6307\u9488\u662f\u6307\u5411 St1 \u7684&#xff0c;\u8fd9\u91cc\u5176\u5b9e\u8ddf\u51fd\u6570\u8c03\u7528\u4e00\u6837&#xff0c;\u53ea\u662f\u9700\u8981\u7406\u89e3\u9690\u85cf\u7684 this \u6307\u9488<\/p>\n<p>St1 &lt; St2;<br \/>\n(*this) &lt; St2;<br \/>\n\/\/\u4e8c\u8005\u7b49\u4ef7 <\/p>\n<h6 id=\"%E6%97%A5%E6%9C%9F%E5%A4%A7%E4%BA%8E%E5%88%A4%E6%96%AD\">\u65e5\u671f\u5927\u4e8e\u5224\u65ad<\/h6>\n<p>\u6709\u4e86\u524d\u9762\u7684\u57fa\u7840&#xff0c;\u6211\u4eec\u540c\u6837\u6709\u4e24\u79cd\u5199\u6cd5&#xff1a;<\/p>\n<p>\u7b2c\u4e00\u79cd&#xff1a;\u8d70 if \u5224\u65ad<\/p>\n<p>\u7b2c\u4e8c\u79cd&#xff1a;\u201c\u5927\u4e8e\u201d\u6761\u4ef6\u4e0d\u662f\u521a\u597d\u548c\u201c\u5c0f\u4e8e\u7b49\u4e8e\u201d\u76f8\u53cd\u5417&#xff01;\u6240\u4ee5\u6211\u4eec\u8fd8\u662f\u91c7\u7528\u8c03\u7528\u51fd\u6570\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0<\/p>\n<p>bool operator&gt;(const Timedate St2);<br \/>\nbool Timedate::operator&gt;(const Timedate St2)<br \/>\n{<br \/>\nreturn !((*this) &lt; St2 || (*this) &#061;&#061; St2);<br \/>\n} <\/p>\n<h6 id=\"%E6%97%A5%E6%9C%9F%E5%A4%A7%E4%BA%8E%E7%AD%89%E4%BA%8E%E5%88%A4%E6%96%AD\">\u65e5\u671f\u5927\u4e8e\u7b49\u4e8e\u5224\u65ad<\/h6>\n<p>\u7b2c\u4e00\u79cd&#xff1a;\u76f4\u63a5\u8d70 if \u5224\u65ad<\/p>\n<p>\u7b2c\u4e8c\u79cd&#xff1a;\u8c03\u7528\u8fd0\u7b97\u7b26\u91cd\u8f7d\u51fd\u6570&#xff08;\u5927\u4e8e\u7b49\u4e8e\u4e0e\u5c0f\u4e8e\u521a\u597d\u4e92\u8865&#xff09;\u5982\u4e0b&#xff1a;<\/p>\n<p>bool operator&gt;&#061;(const Timedate St2);<br \/>\nbool Timedate::operator&gt;&#061;(const Timedate St2)<br \/>\n{<br \/>\nreturn !((*this) &lt; St2);<br \/>\n} <\/p>\n<h5 id=\"%E6%80%BB%E7%BB%93\">\u603b\u7ed3<\/h5>\n<p>&#xff08;1&#xff09;\u8fd0\u7b97\u7b26\u91cd\u8f7d\u6210\u5458\u51fd\u6570\u5927\u5927\u51cf\u5c11\u4e86\u4ee3\u7801\u91cf<\/p>\n<p>&#xff08;2&#xff09;\u5176\u6b21\u589e\u52a0\u4e86\u4ee3\u7801\u8868\u8fbe\u7684\u6548\u679c&#xff0c;\u5bf9\u6bd4\u4e4b\u524d\u7684\u51fd\u6570&#xff1a;\u9700\u8981\u6709\u51fd\u6570\u540d\u3001\u53c2\u6570&#xff0c;\u800c\u73b0\u5728\u6211\u4eec\u6839\u636e\u8fd0\u7b97\u7b26\u5c31\u53ef\u4ee5\u660e\u4e86\u7684\u5224\u65ad\u51fa\u8fd9\u4e2a\u51fd\u6570\u7684\u529f\u80fd&#xff0c;\u8fd9\u662f\u5f88\u76f4\u89c2\u7684&#xff0c;\u8f83C\u8bed\u8a00\u4e00\u4e2a\u5927\u7684\u8fdb\u9636&#xff01;<\/p>\n<p>St1 &#061;&#061; St2<br \/>\nSt1 &lt; St2<br \/>\nSt1 &lt;&#061; St2<br \/>\nSt1 &gt; St2<br \/>\nSt1 &gt;&#061; St2 <\/p>\n<h3 id=\"%E8%BF%90%E7%AE%97%E7%AC%A6%E9%87%8D%E8%BD%BD%E5%AE%9E%E8%B7%B5%E2%80%94%E6%97%A5%E6%9C%9F%E6%8E%A8%E7%AE%97\">\u8fd0\u7b97\u7b26\u91cd\u8f7d\u5b9e\u8df5\u2014\u65e5\u671f\u63a8\u7b97<\/h3>\n<h5 id=\"%E7%B1%BB%E7%9A%84%E5%88%9B%E5%BB%BA\">\u7c7b\u7684\u521b\u5efa<\/h5>\n<p>\u00a0\u65e2\u7136\u662f\u65e5\u671f\u8ba1\u7b97&#xff0c;\u90a3\u4e48\u8fd8\u548c\u4e0a\u9762\u7684\u7c7b\u4e00\u6837&#xff0c;\u9700\u8981\u6709\u5e74\u3001\u6708\u3001\u65e5<\/p>\n<p>class Timedate<br \/>\n{<br \/>\npublic:<br \/>\n\/\/\u6784\u9020\u51fd\u6570<br \/>\nTimedate(int year &#061; 2025, int month &#061; 5, int day &#061; 9)<br \/>\n{<br \/>\n_year &#061; year;<br \/>\n_month &#061; month;<br \/>\n_day &#061; day;<br \/>\n}<\/p>\n<p>private:<br \/>\nint _year;<br \/>\nint _month;<br \/>\nint _day;<br \/>\n}; <\/p>\n<h5 id=\"%E6%97%A5%E6%9C%9F%E6%8E%A8%E7%AE%97%EF%BC%88%E5%90%8E%EF%BC%89\">\u65e5\u671f\u63a8\u7b97&#xff08;\u540e&#xff09;<\/h5>\n<p><span style=\"color:#fe2c24\">\u529f\u80fd&#xff1a;<\/span>\u7ed9\u4e00\u4e2a\u5929\u6570&#xff0c;\u81ea\u5f53\u524d\u65e5\u671f\u5f00\u59cb&#xff0c;\u63a8\u7b97\u4e00\u5b9a\u5929\u6570\u4e4b\u540e\u7684\u65e5\u671f<\/p>\n<h6 id=\"%E8%AE%A1%E7%AE%97%E5%BD%93%E6%9C%88%E5%A4%A9%E6%95%B0\">\u8ba1\u7b97\u5f53\u6708\u5929\u6570<\/h6>\n<p><span style=\"color:#fe2c24\">\u529f\u80fd&#xff1a;<\/span>\u8ba1\u7b97\u7ed9\u5b9a\u7684\u8fd9\u4e2a\u6708\u6709\u591a\u5c11\u5929<\/p>\n<p>\u56e0\u4e3a\u4f1a\u9762\u4e34\u52a0\u6cd5\u8ba1\u7b97&#xff0c;\u5bf9\u6708\u6216\u8005\u5e74\u9700\u8981\u8fdb\u4f4d&#xff0c;\u6240\u4ee5\u6211\u4eec\u9700\u8981\u77e5\u9053\u5f53\u6708\u7684\u51c6\u786e\u5929\u6570\u662f\u591a\u5c11<\/p>\n<p><span style=\"color:#fe2c24\">\u8bbe\u8ba1\u529f\u80fd&#xff1a;<\/span><\/p>\n<p>&#xff08;1&#xff09;\u53ef\u4ee5\u901a\u8fc7 case \u8bed\u53e5\u5224\u65ad\u5f53\u6708\u5929\u6570&#xff0c;\u6700\u540e\u5224\u65ad\u662f\u4e0d\u662f\u95f0\u5e74&#xff0c;\u56e0\u4e3a\u95f0\u5e74\u76842\u6708\u670929\u5929<\/p>\n<p>&#xff08;2&#xff09;\u901a\u8fc7 if \u8bed\u53e5\u5224\u65ad&#xff0c;\u6839\u636e\u7ed9\u5b9a\u7684\u6708\u76f4\u63a5\u786e\u5b9a\u5929\u6570&#xff0c;\u518d\u8d70\u95f0\u5e74\u7684\u5224\u65ad<\/p>\n<p>\/\/\u8ba1\u7b97\u5f53\u6708\u5929\u6570<br \/>\nint Timedate::Compute(int _year, int _month)<br \/>\n{<br \/>\n\/\/\u6211\u4eec\u8fd9\u91cc\u5c31\u62ffcase\u8bed\u53e5\u5224\u65ad<br \/>\nswitch (_month)<br \/>\n{<br \/>\ncase 1:<br \/>\ncase 3:<br \/>\ncase 5:<br \/>\ncase 7:<br \/>\ncase 8:<br \/>\ncase 10:<br \/>\ncase 12:<br \/>\nreturn 31;<br \/>\ncase 4:<br \/>\ncase 6:<br \/>\ncase 9:<br \/>\ncase 11:<br \/>\nreturn 30;<br \/>\ncase 2:<br \/>\nif (_year % 4 &#061;&#061; 0 &amp;&amp; _year % 100 !&#061; 0 || _year % 400 &#061;&#061; 0)<br \/>\n{<br \/>\nreturn 29;<br \/>\n}<br \/>\nelse<br \/>\nreturn 28;<br \/>\n}<br \/>\n} <\/p>\n<p>\u4e0b\u9762\u6211\u4eec\u6765\u6d4b\u8bd5\u4e00\u4e0b\u8fd9\u4e2a\u529f\u80fd&#xff1a;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042612-68393364392a7.png\" \/><\/p>\n<h6 id=\"%E6%97%A5%E6%9C%9F%E8%BF%9B%E4%BD%8D%E8%AE%A1%E7%AE%97\">\u65e5\u671f\u8fdb\u4f4d\u8ba1\u7b97<\/h6>\n<p><span style=\"color:#fe2c24\">\u6211\u4eec\u53ea\u9700\u8981\u5728\u4e00\u4e2a\u5faa\u73af\u5bf9\u5e74\u3001\u6708\u8fdb\u884c\u8fdb\u4f4d\u8ba1\u7b97<\/span>&#xff0c;\u7b49\u5faa\u73af\u7ed3\u675f\u518d\u5c06\u5269\u4f59\u5929\u6570\u76f8\u52a0\u5373\u53ef<\/p>\n<p>\u4e0d\u7ba1\u548b\u6837&#xff0c;\u6211\u4eec\u76f4\u63a5\u52a0\u4e0a\u5929\u6570&#xff0c;\u7136\u540e\u6839\u636e\u5bf9\u5e94\u6708\u7684\u6ee1\u5929\u6570\u53bb\u51cf\u5373\u53ef<\/p>\n<p><span style=\"color:#fe2c24\">\u6ce8\u610f&#xff1a;<\/span>\u6211\u4eec\u662f\u63a8\u7b97\u5bf9\u5e94\u5929\u6570\u4e4b\u540e&#xff0c;\u6240\u4ee5\u4e0d\u6539\u53d8\u539f\u6765\u7684\u65e5\u671f&#xff0c;\u9700\u8981\u5efa\u7acb\u65b0\u5bf9\u8c61<\/p>\n<p>\/\/\u63a8\u7b97\u8fdb\u4f4d<br \/>\nTimedate Timedate::operator&#043;(int day)<br \/>\n{<br \/>\n\/\/\u65e2\u7136\u662f\u52a0&#xff0c;\u90a3\u4e48\u6211\u4eec\u4e0d\u80fd\u6539\u53d8\u539f\u6765\u7684\u65e5\u671f&#xff0c;\u8c03\u7528\u62f7\u8d1d\u6784\u9020<br \/>\nTimedate St3(*this);<br \/>\n\/\/\u5bf9\u6708\u8fdb\u4f4d<br \/>\nSt3._day &#043;&#061; day;<br \/>\nwhile (St3._day &gt; Compute(St3._year,St3._month))<br \/>\n{<br \/>\n\/\/\u65e5\u51cf\u5c11<br \/>\nSt3._day -&#061; Compute(St3._year, St3._month);<br \/>\n\/\/\u6708\u589e\u52a0<br \/>\nSt3._month&#043;&#043;;<br \/>\n\/\/\u5982\u679c\u8d85\u8fc712\u6708&#xff0c;\u5e74\u8fdb\u4f4d&#xff0c;\u91cd\u7f6e\u6708\u4efd<br \/>\nif (St3._month &gt; 12)<br \/>\n{<br \/>\nSt3._year&#043;&#043;;<br \/>\nSt3._month &#061; 1;<br \/>\n}<br \/>\n}<br \/>\nreturn St3;<br \/>\n} <\/p>\n<h6 id=\"%E6%B5%8B%E8%AF%95\">\u6d4b\u8bd5<\/h6>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042612-6839336469449.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042613-683933653b9b3.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042613-6839336571b05.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042614-68393366003f1.png\" \/><\/p>\n<h6 id=\"%E5%8F%98%E5%BC%8F\">\u53d8\u5f0f<\/h6>\n<p><span style=\"color:#a2e043\">\u4e0a\u9762\u662f\u4e0d\u6539\u53d8\u539f\u6765\u7684\u65e5\u671f&#xff0c;\u5982\u679c\u6211\u4eec\u73b0\u5728\u9700\u8981\u6539\u53d8\u5462&#xff1f;<\/span><\/p>\n<p>\u5f88\u7b80\u5355&#xff0c;\u6211\u4eec\u53ea\u9700\u8981\u8c03\u7528\u521a\u624d\u7684\u51fd\u6570&#xff0c;\u518d\u5229\u7528\u7f16\u8bd1\u5668\u9ed8\u8ba4\u7684\u8fd0\u7b97\u7b26\u91cd\u8f7d\u51fd\u6570\u8d4b\u503c\u5373\u53ef<\/p>\n<p>\u51fd\u6570\u58f0\u660e&#xff1a;<\/p>\n<p>Timedate&amp; operator&#043;&#061;(int day); <\/p>\n<p>\u51fd\u6570\u5b9e\u73b0&#xff1a;<\/p>\n<p>Timedate&amp; Timedate::operator&#043;&#061;(int day)<br \/>\n{<br \/>\nreturn *this &#061; ((*this) &#043; 100);<br \/>\n} <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042614-6839336639ab7.png\" \/><\/p>\n<p>\u7136\u540e\u5229\u7528\u7f16\u8bd1\u5668\u9ed8\u8ba4\u7684\u8fd0\u7b97\u7b26\u91cd\u8f7d\u51fd\u6570\u8fdb\u884c\u6d45\u62f7\u8d1d\u5185\u7f6e\u7c7b\u578b<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042614-683933667dc88.png\" \/><\/p>\n<p><span style=\"color:#fe2c24\">\u8fd9\u91cc\u8865\u5145\u4e00\u4e0b&#xff1a;<\/span><\/p>\n<p>\u56e0\u4e3a\u6211\u4eec\u6ca1\u6709\u5199\u201c\u7b49\u4e8e\u201d\u7684\u8fd0\u7b97\u7b26\u91cd\u8f7d\u51fd\u6570&#xff0c;\u7f16\u8bd1\u5668\u5c31\u4f1a\u8c03\u7528\u81ea\u5df1\u9ed8\u8ba4\u7684\u8fd0\u7b97\u7b26\u91cd\u8f7d\u51fd\u6570\u5b8c\u6210<\/p>\n<p>&#xff08;1&#xff09;\u5bf9\u5185\u7f6e\u7c7b\u578b\u53d1\u751f\u6d45\u62f7\u8d1d<\/p>\n<p>&#xff08;2&#xff09;\u81ea\u5b9a\u4e49\u7c7b\u578b\u8c03\u7528\u81ea\u5df1\u7684\u91cd\u8f7d\u51fd\u6570&#xff08;\u4f1a\u76f4\u63a5\u66f4\u6539\u5730\u5740&#xff09;\u00a0<\/p>\n<h5 id=\"%C2%A0%E6%97%A5%E6%9C%9F%E6%8E%A8%E7%AE%97%EF%BC%88%E5%89%8D%EF%BC%89\">\u00a0\u65e5\u671f\u63a8\u7b97&#xff08;\u524d&#xff09;<\/h5>\n<p>\u6709\u4e86\u4e0a\u9762\u7684\u7ecf\u9a8c&#xff0c;\u65e5\u671f\u63a8\u7b97\u524d\u5c31\u662f\u5f80\u524d\u63a8\u4e00\u5b9a\u5929\u6570\u4e4b\u524d\u7684\u65e5\u671f\u662f\u591a\u5c11<\/p>\n<p>\u7c7b\u7684\u7ed3\u6784\u8fd8\u662f\u4e0e\u4e0a\u9762\u7684\u4e00\u6837&#xff0c;\u4e0b\u9762\u6211\u4eec\u6765\u5b8c\u6210\u51fd\u6570<\/p>\n<h6 id=\"%E6%97%A5%E6%9C%9F%E9%80%80%E4%BD%8D%E8%AE%A1%E7%AE%97\">\u65e5\u671f\u9000\u4f4d\u8ba1\u7b97<\/h6>\n<p>Timedate operator-(int day); <\/p>\n<p>\u6267\u884c\u51fd\u6570&#xff1a;<\/p>\n<p>\u5148\u66f4\u65b0\u6708\u3001\u518d\u6839\u636e\u6708\u5224\u65ad\u5e74&#xff0c;\u6700\u540e\u66f4\u65b0\u5929\u6570<\/p>\n<p>Timedate Timedate::operator-(int day)<br \/>\n{<br \/>\n\/\/\u5148\u62f7\u8d1d\u6784\u9020\u4e00\u4e2a\u4e00\u6a21\u4e00\u6837\u7684\u5bf9\u8c61&#xff0c;\u9632\u6b62\u66f4\u6539\u539f\u6765\u7684\u65e5\u671f<br \/>\nTimedate St3(*this);<br \/>\n\/\/\u76f4\u63a5\u51cf\u53bb\u5929\u6570<br \/>\nSt3._day -&#061; day;<br \/>\nwhile (St3._day &lt; 1)<br \/>\n{<br \/>\n\/\/\u5c0f\u4e8e1\u8bf4\u660e\u4e0d\u7b26\u5408\u89c4\u5b9a<br \/>\n\/\/\u5e94\u8be5\u5148\u51cf\u6708<br \/>\nSt3._month&#8211;;<br \/>\n\/\/\u5982\u679c\u6708\u5c0f\u4e8e1&#xff0c;\u8bf4\u660e\u8981\u66f4\u65b0\u5e74\u4e86<br \/>\nif (St3._month &lt; 1)<br \/>\n{<br \/>\nSt3._year&#8211;;<br \/>\nSt3._month &#061; 12;<br \/>\n}<br \/>\n\/\/\u518d\u52a0\u5929\u6570<br \/>\nSt3._day &#043;&#061; Compute(St3._year, St3._month);<br \/>\n}<br \/>\nreturn St3;<br \/>\n} <\/p>\n<h6 id=\"%E6%B5%8B%E8%AF%95%C2%A0\">\u6d4b\u8bd5\u00a0<\/h6>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042614-68393366cb1eb.png\" \/><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042614-68393366ee6c6.png\" \/><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042615-683933677f8d4.png\" \/><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042616-683933680e57d.png\" \/><img decoding=\"async\" alt=\"\" src=\"2025-05-30t0zhjoze5y1.png\" \/><\/p>\n<h5 id=\"%E6%97%A5%E6%9C%9F%E6%8E%A8%E7%AE%97%EF%BC%88%E5%89%8D%E7%BD%AE%2B%2B%EF%BC%89\">\u65e5\u671f\u63a8\u7b97&#xff08;\u524d\u7f6e&#043;&#043;&#xff09;<\/h5>\n<p>\u524d\u7f6e\u52a0\u52a0\u662f\u8fd4\u56de\u52a0\u5b8c\u4e4b\u540e\u7684\u7ed3\u679c&#xff0c;\u8fd9\u70b9\u9700\u8981\u548c\u540e\u7f6e\u52a0\u52a0\u533a\u522b\u3002\u7c7b\u7684\u7c7b\u578b\u4e0d\u53d8&#xff0c;\u6211\u4eec\u76f4\u63a5\u8fdb\u5165\u51fd\u6570<\/p>\n<p>\u51fd\u6570\u58f0\u660e&#xff1a;<\/p>\n<p>Timedate&amp; operator&#043;&#043;(); <\/p>\n<p>\u00a0\u51fd\u6570\u5b9e\u73b0&#xff1a;<\/p>\n<p>Timedate&amp; Timedate::operator&#043;&#043;()<br \/>\n{<br \/>\n\/\/\u6b64\u65f6this\u6307\u9488\u4f20\u8fc7\u6765\u7684\u5c31\u662f\u8c03\u7528\u51fd\u6570\u7684\u5bf9\u8c61<br \/>\n_day&#043;&#043;;<br \/>\nwhile (_day &gt; Compute(_year, _month))<br \/>\n{<br \/>\n\/\/\u5982\u679c\u8d85\u8fc7\u5f53\u6708\u5929\u6570<br \/>\n_day -&#061; Compute(_year, _month);<br \/>\n\/\/\u6708\u52a01<br \/>\n_month&#043;&#043;;<br \/>\n\/\/\u5224\u65ad12\u6708\u4ee5\u4e0a\u7684\u60c5\u51b5<br \/>\nif (_month &gt; 12)<br \/>\n{<br \/>\n_year&#043;&#043;;<br \/>\n_month &#061; 1;<br \/>\n}<br \/>\n}<br \/>\nreturn *this;<br \/>\n} <\/p>\n<p>\u6ce8\u610f*this\u6307\u5411\u7684\u5bf9\u8c61\u662f\u8c03\u7528\u51fd\u6570\u7684\u5bf9\u8c61&#xff0c;\u662f\u5168\u5c40\u751f\u547d\u57df&#xff0c;\u6240\u4ee5\u53ef\u4ee5\u4f7f\u7528\u5f15\u7528<\/p>\n<h6 id=\"%E6%B5%8B%E8%AF%95\">\u6d4b\u8bd5<\/h6>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-05-300bfjzjq1bnf.png\" \/><\/p>\n<h5 id=\"%E6%97%A5%E6%9C%9F%E6%8E%A8%E7%AE%97%EF%BC%88%E5%89%8D%E7%BD%AE--%EF%BC%89\">\u65e5\u671f\u63a8\u7b97&#xff08;\u524d\u7f6e&#8211;&#xff09;<\/h5>\n<p>\u51fd\u6570\u58f0\u660e&#xff1a;<\/p>\n<p>Timedate&amp; operator&#8211;(); <\/p>\n<p>\u51fd\u6570\u5b9e\u73b0&#xff1a;<\/p>\n<p>Timedate&amp; Timedate::operator&#8211;()<br \/>\n{<br \/>\n_day &#8211;;<br \/>\n   \/\/\u5982\u679c\u4e0d\u6ee1\u8db3\u6708\u7684\u8981\u6c42&#xff0c;\u5c31\u9000\u6cbb<br \/>\nwhile (_day &lt; 1)<br \/>\n{<br \/>\n_month&#8211;;<br \/>\nif (_month &lt; 1)<br \/>\n{<br \/>\n_month &#061; 12;<br \/>\n_year&#8211;;<br \/>\n}<br \/>\n_day &#043;&#061; Compute(_year, _month);<br \/>\n}<br \/>\nreturn *this;<br \/>\n} <\/p>\n<h6 id=\"%E6%B5%8B%E8%AF%95\">\u6d4b\u8bd5<\/h6>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-05-30e13ufxg0kpa.png\" \/><\/p>\n<h5 id=\"%C2%A0%E6%97%A5%E6%9C%9F%E6%8E%A8%E7%AE%97%EF%BC%88%E5%90%8E%E7%BD%AE--%EF%BC%89\">\u00a0\u65e5\u671f\u63a8\u7b97&#xff08;\u540e\u7f6e&#8211;&#xff09;<\/h5>\n<p>\u540e\u7f6e\u552f\u4e00\u9700\u8981\u6ce8\u610f\u7684\u662f\u5b83\u7684\u51fd\u6570\u8c03\u7528\u4e0e\u524d\u7f6e\u51cf\u51cf\u8fbe\u6210\u91cd\u590d&#xff0c;\u6240\u4ee5\u6211\u4eec\u9700\u8981\u7528\u4e00\u4e2a\u53c2\u6570\u8fdb\u884c\u533a\u5206<\/p>\n<p>\u51fd\u6570\u58f0\u660e&#xff1a;<\/p>\n<p>Timedate operator&#8211;(int); <\/p>\n<p>\u51fd\u6570\u5b9e\u73b0&#xff1a;<\/p>\n<p>Timedate Timedate::operator&#8211;(int)<br \/>\n{<br \/>\n\/\/\u62f7\u8d1d\u6784\u9020<br \/>\nTimedate St3(*this);<br \/>\n_day&#8211;;<br \/>\nwhile (_day &lt; 1)<br \/>\n{<br \/>\n_month&#8211;;<br \/>\nif (_month &lt; 1)<br \/>\n{<br \/>\n_month &#061; 12;<br \/>\n_year&#8211;;<br \/>\n}<br \/>\n_day &#043;&#061; Compute(_year, _month);<br \/>\n}<br \/>\nreturn St3;<br \/>\n} <\/p>\n<h6 id=\"%E6%B5%8B%E8%AF%95\">\u6d4b\u8bd5<\/h6>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-05-30zta4p1fmufk.png\" \/><\/p>\n<h3 id=\"%C2%A0%E8%BF%90%E7%AE%97%E7%AC%A6%E9%87%8D%E8%BD%BD%E5%AE%9E%E8%B7%B5%E2%80%94%E6%97%A5%E6%9C%9F%E9%97%B4%E9%9A%94\" style=\"background-color:transparent\">\u00a0\u8fd0\u7b97\u7b26\u91cd\u8f7d\u5b9e\u8df5\u2014\u65e5\u671f\u95f4\u9694<\/h3>\n<p>\u6709\u4e86\u4e0a\u9762\u7684\u57fa\u7840\u6211\u4eec\u5b8c\u6210\u8fd9\u4e2a\u529f\u80fd\u5c31\u5f88\u7b80\u5355\u4e86&#xff01;<\/p>\n<p>\u7b2c\u4e00\u79cd&#xff1a;\u6700\u7b80\u5355\u7684\u591a\u6b21\u8c03\u7528\u201c\u52a0\u52a0\u201d\u51fd\u6570&#xff0c;\u6bcf\u8c03\u7528\u4e00\u6b21&#xff0c;\u8ba1\u6570\u4e00\u6b21<\/p>\n<p>\u7b2c\u4e8c\u79cd&#xff1a;\u5206\u533a\u6bb5&#xff08;\u7b2c\u4e00\u6b21\u4fdd\u8bc1\u5e74\u76f8\u540c&#xff0c;\u7b2c\u4e8c\u6b21\u518d\u4fdd\u8bc1\u6708\u3001\u65e5\u76f8\u540c&#xff09;\u5b9e\u73b0<\/p>\n<p><span style=\"color:#a2e043\">\u7b2c\u4e00\u79cd\u66f4\u52a0\u7684\u76f4\u89c2&#xff0c;\u6240\u4ee5\u6211\u4eec\u9009\u62e9\u7b2c\u4e00\u79cd&#xff01;<\/span> \u51fd\u6570\u58f0\u660e&#xff1a;<\/p>\n<p>int operator-(const Timedate St2); <\/p>\n<p>\u51fd\u6570\u5b9e\u73b0&#xff1a;<\/p>\n<p>&#xff08;1&#xff09;\u4e3a\u4e86\u907f\u514d\u6539\u53d8\u539f\u5bf9\u8c61&#xff0c;\u6211\u4eec\u65b0\u5efa\u4e24\u4e2a\u4e34\u65f6\u5bf9\u8c61<\/p>\n<p>&#xff08;2&#xff09;\u5148\u5047\u8bbe\u5176\u4e2d\u4e00\u4e2a\u5bf9\u8c61\u8f83\u5927&#xff0c;\u5982\u679c\u5047\u8bbe\u4e0d\u6210\u7acb&#xff0c;\u518d\u5c06\u4e8c\u8005\u8c03\u6362<\/p>\n<p>&#xff08;3&#xff09;\u901a\u8fc7\u5faa\u73af\u6765\u591a\u6b21\u8c03\u7528\u201c\u76f8\u7b49\u201d\u8fd0\u7b97\u91cd\u8f7d\u51fd\u6570&#xff0c;\u5e76\u4e14\u4e0d\u65ad\u8ba1\u6570<\/p>\n<p>&#xff08;4&#xff09;\u6839\u636e\u5047\u8bbe\u7ed3\u679c\u8fd4\u56de\u6b63\u8d1f\u503c&#xff0c;\u6765\u76f4\u89c2\u7684\u5224\u65ad\u65e5\u671f\u5148\u540e<\/p>\n<p>int Timedate::operator-(const Timedate St2)<br \/>\n{<br \/>\n\/\/\u5047\u8bbe\u7b2c\u4e00\u4e2a\u53c2\u6570\u66f4\u5927<br \/>\nTimedate St3 &#061; (*this);<br \/>\nTimedate St4 &#061; St2;<br \/>\n\/\/\u7528\u4e8e\u8fd4\u56de\u6b63\u8d1f\u503c<br \/>\nint flag &#061; 1;<br \/>\n\/\/\u8ba1\u6570<br \/>\nint date &#061; 0;<br \/>\n\/\/\u8c03\u7528\u8fd0\u7b97\u91cd\u8f7d\u51fd\u6570\u786e\u5b9a\u5927\u5c0f<br \/>\nif (St3 &lt; St4)<br \/>\n{<br \/>\nSt3 &#061; St4;<br \/>\nSt4 &#061; *this;<br \/>\nflag &#061; -1;<br \/>\n}<br \/>\n\/\/\u8ba1\u7b97\u5dee\u503c<br \/>\nwhile (!( St3 &#061;&#061; St4))<br \/>\n{<br \/>\n&#043;&#043;St4;<br \/>\n&#043;&#043;date;<br \/>\n}<\/p>\n<p>return flag * date;<br \/>\n} <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-05-30ryqpo4fj3c4.gif\" \/><\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <span style=\"color:#a2e043\">\u00a0 \u00a0 \u00a0 \u00a0 \u3010\u96fe\u975e\u96fe\u3011\u671f\u5f85\u4e0e\u4f60\u7684\u4e0b\u6b21\u76f8\u9047&#xff01;\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.8w\u6b21\uff0c\u70b9\u8d5e107\u6b21\uff0c\u6536\u85cf104\u6b21\u3002\u5728\u8f6f\u4ef6\u5f00\u53d1\u4e2d\uff0c\u65f6\u95f4\u4e0e\u65e5\u671f\u7684\u5904\u7406\u662f\u57fa\u7840\u4f46\u6781\u5177\u6311\u6218\u6027\u7684\u4efb\u52a1\u3002\u4f20\u7edf\u7684\u624b\u5de5\u65e5\u671f\u8fd0\u7b97\u903b\u8f91\u5f80\u5f80\u9762\u4e34\u95f0\u5e74\u89c4\u5219\u3001\u6708\u4efd\u5929\u6570\u52a8\u6001\u53d8\u5316\u3001\u65f6\u533a\u8f6c\u6362\u7b49\u590d\u6742\u573a\u666f\u7684\u5bb9\u9519\u96be\u9898\uff0c\u4e14\u4ee3\u7801\u5197\u4f59\u5ea6\u9ad8\u3001\u53ef\u7ef4\u62a4\u6027\u5dee\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8\u5982\u4f55\u5229\u7528C++\u7684\u9762\u5411\u5bf9\u8c61\u7279\u6027\u4e0e\u6210\u5458\u51fd\u6570\u5c01\u88c5\u80fd\u529b\uff0c\u6784\u5efa\u4e00\u4e2a\u9ad8\u5185\u805a\u3001\u4f4e\u8026\u5408\u7684\u65e5\u671f\u63a8\u7b97\u7cfb\u7edf<\/p>\n","protected":false},"author":2,"featured_media":40850,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,3745,190,305,124],"topic":[],"class_list":{"0":"post-40870","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-c","10":"tag-190","11":"tag-305","12":"tag-124"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8e\u9762\u5411\u5bf9\u8c61\u8bbe\u8ba1\u7684C++\u65e5\u671f\u63a8\u7b97\u5f15\u64ce\uff1a\u7cbe\u51c6\u9ad8\u6548\u7684\u65f6\u95f4\u8fd0\u7b97\u5b9e\u73b0\u4e0e\u8fd0\u7b97\u91cd\u8f7d\u5de5\u7a0b\u5316\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/40870.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8e\u9762\u5411\u5bf9\u8c61\u8bbe\u8ba1\u7684C++\u65e5\u671f\u63a8\u7b97\u5f15\u64ce\uff1a\u7cbe\u51c6\u9ad8\u6548\u7684\u65f6\u95f4\u8fd0\u7b97\u5b9e\u73b0\u4e0e\u8fd0\u7b97\u91cd\u8f7d\u5de5\u7a0b\u5316\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.8w\u6b21\uff0c\u70b9\u8d5e107\u6b21\uff0c\u6536\u85cf104\u6b21\u3002\u5728\u8f6f\u4ef6\u5f00\u53d1\u4e2d\uff0c\u65f6\u95f4\u4e0e\u65e5\u671f\u7684\u5904\u7406\u662f\u57fa\u7840\u4f46\u6781\u5177\u6311\u6218\u6027\u7684\u4efb\u52a1\u3002\u4f20\u7edf\u7684\u624b\u5de5\u65e5\u671f\u8fd0\u7b97\u903b\u8f91\u5f80\u5f80\u9762\u4e34\u95f0\u5e74\u89c4\u5219\u3001\u6708\u4efd\u5929\u6570\u52a8\u6001\u53d8\u5316\u3001\u65f6\u533a\u8f6c\u6362\u7b49\u590d\u6742\u573a\u666f\u7684\u5bb9\u9519\u96be\u9898\uff0c\u4e14\u4ee3\u7801\u5197\u4f59\u5ea6\u9ad8\u3001\u53ef\u7ef4\u62a4\u6027\u5dee\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8\u5982\u4f55\u5229\u7528C++\u7684\u9762\u5411\u5bf9\u8c61\u7279\u6027\u4e0e\u6210\u5458\u51fd\u6570\u5c01\u88c5\u80fd\u529b\uff0c\u6784\u5efa\u4e00\u4e2a\u9ad8\u5185\u805a\u3001\u4f4e\u8026\u5408\u7684\u65e5\u671f\u63a8\u7b97\u7cfb\u7edf\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/40870.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-30T04:26:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042608-683933609f8c1.gif\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/40870.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/40870.html\",\"name\":\"\u57fa\u4e8e\u9762\u5411\u5bf9\u8c61\u8bbe\u8ba1\u7684C++\u65e5\u671f\u63a8\u7b97\u5f15\u64ce\uff1a\u7cbe\u51c6\u9ad8\u6548\u7684\u65f6\u95f4\u8fd0\u7b97\u5b9e\u73b0\u4e0e\u8fd0\u7b97\u91cd\u8f7d\u5de5\u7a0b\u5316\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-30T04:26:17+00:00\",\"dateModified\":\"2025-05-30T04:26:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/40870.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/40870.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/40870.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8e\u9762\u5411\u5bf9\u8c61\u8bbe\u8ba1\u7684C++\u65e5\u671f\u63a8\u7b97\u5f15\u64ce\uff1a\u7cbe\u51c6\u9ad8\u6548\u7684\u65f6\u95f4\u8fd0\u7b97\u5b9e\u73b0\u4e0e\u8fd0\u7b97\u91cd\u8f7d\u5de5\u7a0b\u5316\u5b9e\u8df5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u57fa\u4e8e\u9762\u5411\u5bf9\u8c61\u8bbe\u8ba1\u7684C++\u65e5\u671f\u63a8\u7b97\u5f15\u64ce\uff1a\u7cbe\u51c6\u9ad8\u6548\u7684\u65f6\u95f4\u8fd0\u7b97\u5b9e\u73b0\u4e0e\u8fd0\u7b97\u91cd\u8f7d\u5de5\u7a0b\u5316\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/40870.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8e\u9762\u5411\u5bf9\u8c61\u8bbe\u8ba1\u7684C++\u65e5\u671f\u63a8\u7b97\u5f15\u64ce\uff1a\u7cbe\u51c6\u9ad8\u6548\u7684\u65f6\u95f4\u8fd0\u7b97\u5b9e\u73b0\u4e0e\u8fd0\u7b97\u91cd\u8f7d\u5de5\u7a0b\u5316\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.8w\u6b21\uff0c\u70b9\u8d5e107\u6b21\uff0c\u6536\u85cf104\u6b21\u3002\u5728\u8f6f\u4ef6\u5f00\u53d1\u4e2d\uff0c\u65f6\u95f4\u4e0e\u65e5\u671f\u7684\u5904\u7406\u662f\u57fa\u7840\u4f46\u6781\u5177\u6311\u6218\u6027\u7684\u4efb\u52a1\u3002\u4f20\u7edf\u7684\u624b\u5de5\u65e5\u671f\u8fd0\u7b97\u903b\u8f91\u5f80\u5f80\u9762\u4e34\u95f0\u5e74\u89c4\u5219\u3001\u6708\u4efd\u5929\u6570\u52a8\u6001\u53d8\u5316\u3001\u65f6\u533a\u8f6c\u6362\u7b49\u590d\u6742\u573a\u666f\u7684\u5bb9\u9519\u96be\u9898\uff0c\u4e14\u4ee3\u7801\u5197\u4f59\u5ea6\u9ad8\u3001\u53ef\u7ef4\u62a4\u6027\u5dee\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8\u5982\u4f55\u5229\u7528C++\u7684\u9762\u5411\u5bf9\u8c61\u7279\u6027\u4e0e\u6210\u5458\u51fd\u6570\u5c01\u88c5\u80fd\u529b\uff0c\u6784\u5efa\u4e00\u4e2a\u9ad8\u5185\u805a\u3001\u4f4e\u8026\u5408\u7684\u65e5\u671f\u63a8\u7b97\u7cfb\u7edf","og_url":"https:\/\/www.wsisp.com\/helps\/40870.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-30T04:26:17+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250530042608-683933609f8c1.gif"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/40870.html","url":"https:\/\/www.wsisp.com\/helps\/40870.html","name":"\u57fa\u4e8e\u9762\u5411\u5bf9\u8c61\u8bbe\u8ba1\u7684C++\u65e5\u671f\u63a8\u7b97\u5f15\u64ce\uff1a\u7cbe\u51c6\u9ad8\u6548\u7684\u65f6\u95f4\u8fd0\u7b97\u5b9e\u73b0\u4e0e\u8fd0\u7b97\u91cd\u8f7d\u5de5\u7a0b\u5316\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-30T04:26:17+00:00","dateModified":"2025-05-30T04:26:17+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/40870.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/40870.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/40870.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8e\u9762\u5411\u5bf9\u8c61\u8bbe\u8ba1\u7684C++\u65e5\u671f\u63a8\u7b97\u5f15\u64ce\uff1a\u7cbe\u51c6\u9ad8\u6548\u7684\u65f6\u95f4\u8fd0\u7b97\u5b9e\u73b0\u4e0e\u8fd0\u7b97\u91cd\u8f7d\u5de5\u7a0b\u5316\u5b9e\u8df5"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/40870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=40870"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/40870\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/40850"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=40870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=40870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=40870"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=40870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}