<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>MC大顽家的经验分享站 - golang学习经验分享与测试</title><link>https://www.mcdawanjia.top/</link><description>MC大顽家的经验分享站</description><item><title>C++系列实例篇1——简易一元二次方程求解器</title><link>https://www.mcdawanjia.top/?id=7</link><description>&lt;h2 style=&quot;box-sizing: inherit; color: rgb(6, 6, 7); margin-bottom: 0px; font-size: 16px; line-height: 24px; margin-top: 0.75em; font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; letter-spacing: 0.5px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;引言&lt;/h2&gt;&lt;p style=&quot;box-sizing: inherit; line-height: 24px; margin-top: 0.859em; margin-bottom: 0.859em; letter-spacing: 0.25px; max-width: 100%; overflow: auto hidden; text-wrap: wrap; color: rgb(6, 6, 7); font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255); white-space-collapse: preserve !important; word-break: break-word !important;&quot;&gt;在编程的世界里，数学算法的实现总是一个经典的话题。一元二次方程作为基础的数学问题，是学习编程时经常接触到的算法之一。今天，我们将通过C++来实现一个简易的一元二次方程求解器，并探讨如何优化代码以提高其效率和可读性。&lt;/p&gt;&lt;h2 style=&quot;box-sizing: inherit; color: rgb(6, 6, 7); margin-bottom: 0px; font-size: 16px; line-height: 24px; margin-top: 1em; font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; letter-spacing: 0.5px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;一元二次方程简介&lt;/h2&gt;&lt;p style=&quot;box-sizing: inherit; line-height: 24px; margin-top: 0.859em; margin-bottom: 0.859em; letter-spacing: 0.25px; max-width: 100%; overflow: auto hidden; text-wrap: wrap; color: rgb(6, 6, 7); font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255); white-space-collapse: preserve !important; word-break: break-word !important;&quot;&gt;一元二次方程是形如ax² + bx + c = 0 的方程，其中 &lt;span class=&quot;math math-inline&quot; style=&quot;box-sizing: inherit; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-size-adjust: none; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 1.21em; line-height: 1.2; font-family: KaTeX_Main, &amp;quot;Times New Roman&amp;quot;, serif; text-rendering: auto;&quot;&gt;&lt;span class=&quot;katex-mathml&quot; style=&quot;box-sizing: inherit; border: 0px; forced-color-adjust: none !important; clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; padding: 0px; position: absolute; width: 1px;&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;/mrow&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot; style=&quot;border-color: currentcolor; box-sizing: inherit; position: relative; width: min-content; display: inline-block; forced-color-adjust: none !important;&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;box-sizing: inherit; display: inline-block; height: 0.4306em; forced-color-adjust: none !important;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;box-sizing: inherit; font-family: KaTeX_Math; font-style: italic; forced-color-adjust: none !important;&quot;&gt;a&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;，&lt;span class=&quot;math math-inline&quot; style=&quot;box-sizing: inherit; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-size-adjust: none; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 1.21em; line-height: 1.2; font-family: KaTeX_Main, &amp;quot;Times New Roman&amp;quot;, serif; text-rendering: auto;&quot;&gt;&lt;span class=&quot;katex-mathml&quot; style=&quot;box-sizing: inherit; border: 0px; forced-color-adjust: none !important; clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; padding: 0px; position: absolute; width: 1px;&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;/mrow&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot; style=&quot;border-color: currentcolor; box-sizing: inherit; position: relative; width: min-content; display: inline-block; forced-color-adjust: none !important;&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;box-sizing: inherit; display: inline-block; height: 0.6944em; forced-color-adjust: none !important;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;box-sizing: inherit; font-family: KaTeX_Math; font-style: italic; forced-color-adjust: none !important;&quot;&gt;b&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;，和 &lt;span class=&quot;math math-inline&quot; style=&quot;box-sizing: inherit; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-size-adjust: none; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 1.21em; line-height: 1.2; font-family: KaTeX_Main, &amp;quot;Times New Roman&amp;quot;, serif; text-rendering: auto;&quot;&gt;&lt;span class=&quot;katex-mathml&quot; style=&quot;box-sizing: inherit; border: 0px; forced-color-adjust: none !important; clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; padding: 0px; position: absolute; width: 1px;&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;/mrow&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot; style=&quot;border-color: currentcolor; box-sizing: inherit; position: relative; width: min-content; display: inline-block; forced-color-adjust: none !important;&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;box-sizing: inherit; display: inline-block; height: 0.4306em; forced-color-adjust: none !important;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;box-sizing: inherit; font-family: KaTeX_Math; font-style: italic; forced-color-adjust: none !important;&quot;&gt;c&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; 是常数，且a&lt;span style=&quot;text-wrap: wrap; font-size: 14px; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; background-color: #FFFFFF;&quot;&gt;≠0&lt;/span&gt;。解这个方程通常涉及到计算判别式 &lt;span class=&quot;math math-inline&quot; style=&quot;box-sizing: inherit; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-size-adjust: none; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 1.21em; line-height: 1.2; font-family: KaTeX_Main, &amp;quot;Times New Roman&amp;quot;, serif; text-rendering: auto;&quot;&gt;&lt;span class=&quot;katex-mathml&quot; style=&quot;box-sizing: inherit; border: 0px; forced-color-adjust: none !important; clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; padding: 0px; position: absolute; width: 1px;&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mn&gt;4&lt;/mn&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;/mrow&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;Δ = b&lt;span style=&quot;color: #060607; font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; letter-spacing: 0.25px; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;² + 4ac&lt;/span&gt;，根据 &lt;span class=&quot;math math-inline&quot; style=&quot;box-sizing: inherit; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-size-adjust: none; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 1.21em; line-height: 1.2; font-family: KaTeX_Main, &amp;quot;Times New Roman&amp;quot;, serif; text-rendering: auto;&quot;&gt;&lt;span class=&quot;katex-mathml&quot; style=&quot;box-sizing: inherit; border: 0px; forced-color-adjust: none !important; clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; padding: 0px; position: absolute; width: 1px;&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;/mrow&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot; style=&quot;border-color: currentcolor; box-sizing: inherit; position: relative; width: min-content; display: inline-block; forced-color-adjust: none !important;&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;box-sizing: inherit; display: inline-block; height: 0.6833em; forced-color-adjust: none !important;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot; style=&quot;box-sizing: inherit; forced-color-adjust: none !important;&quot;&gt;Δ&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; 的值，我们可以确定方程的解的情况：&lt;/p&gt;&lt;ul style=&quot;box-sizing: inherit; padding-inline-start: 2em; margin-top: 0.859em; color: rgb(6, 6, 7); font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; letter-spacing: 0.5px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;如果&amp;nbsp;&lt;span class=&quot;math math-inline&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span class=&quot;katex&quot; style=&quot;box-sizing: inherit; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-size-adjust: none; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 1.21em; line-height: 1.2; font-family: KaTeX_Main, &amp;quot;Times New Roman&amp;quot;, serif; text-rendering: auto;&quot;&gt;&lt;span class=&quot;katex-mathml&quot; style=&quot;box-sizing: inherit; border: 0px; forced-color-adjust: none !important; clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; padding: 0px; position: absolute; width: 1px;&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mo&gt;&amp;gt;&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important;&quot;&gt;&lt;span class=&quot;base&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; position: relative; text-wrap: nowrap; width: min-content; display: inline-block; forced-color-adjust: none !important;&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important; display: inline-block; height: 0.7224em; vertical-align: -0.0391em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important;&quot;&gt;Δ&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important; display: inline-block; margin-right: 0.2778em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important; display: inline-block; margin-right: 0.2778em;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; position: relative; text-wrap: nowrap; width: min-content; display: inline-block; forced-color-adjust: none !important;&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important; display: inline-block; height: 0.6444em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important;&quot;&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;，方程有两个不相等的实数解。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果&amp;nbsp;&lt;span class=&quot;math math-inline&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span class=&quot;katex&quot; style=&quot;box-sizing: inherit; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-size-adjust: none; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 1.21em; line-height: 1.2; font-family: KaTeX_Main, &amp;quot;Times New Roman&amp;quot;, serif; text-rendering: auto;&quot;&gt;&lt;span class=&quot;katex-mathml&quot; style=&quot;box-sizing: inherit; border: 0px; forced-color-adjust: none !important; clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; padding: 0px; position: absolute; width: 1px;&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important;&quot;&gt;&lt;span class=&quot;base&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; position: relative; text-wrap: nowrap; width: min-content; display: inline-block; forced-color-adjust: none !important;&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important; display: inline-block; height: 0.6833em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important;&quot;&gt;Δ&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important; display: inline-block; margin-right: 0.2778em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important; display: inline-block; margin-right: 0.2778em;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; position: relative; text-wrap: nowrap; width: min-content; display: inline-block; forced-color-adjust: none !important;&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important; display: inline-block; height: 0.6444em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important;&quot;&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;，方程有两个相等的实数解。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果&amp;nbsp;&lt;span class=&quot;math math-inline&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span class=&quot;katex&quot; style=&quot;box-sizing: inherit; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-size-adjust: none; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 1.21em; line-height: 1.2; font-family: KaTeX_Main, &amp;quot;Times New Roman&amp;quot;, serif; text-rendering: auto;&quot;&gt;&lt;span class=&quot;katex-mathml&quot; style=&quot;box-sizing: inherit; border: 0px; forced-color-adjust: none !important; clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; padding: 0px; position: absolute; width: 1px;&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mo&gt;&amp;lt;&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important;&quot;&gt;&lt;span class=&quot;base&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; position: relative; text-wrap: nowrap; width: min-content; display: inline-block; forced-color-adjust: none !important;&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important; display: inline-block; height: 0.7224em; vertical-align: -0.0391em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important;&quot;&gt;Δ&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important; display: inline-block; margin-right: 0.2778em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important; display: inline-block; margin-right: 0.2778em;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; position: relative; text-wrap: nowrap; width: min-content; display: inline-block; forced-color-adjust: none !important;&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important; display: inline-block; height: 0.6444em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot; style=&quot;box-sizing: inherit; border-color: currentcolor; forced-color-adjust: none !important;&quot;&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;，方程没有实数解。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 style=&quot;box-sizing: inherit; color: rgb(6, 6, 7); margin-bottom: 0px; font-size: 16px; line-height: 24px; margin-top: 1em; font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; letter-spacing: 0.5px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;代码实现&lt;/h2&gt;&lt;p style=&quot;box-sizing: inherit; line-height: 24px; margin-top: 0.859em; margin-bottom: 0.859em; letter-spacing: 0.25px; max-width: 100%; overflow: auto hidden; text-wrap: wrap; color: rgb(6, 6, 7); font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255); white-space-collapse: preserve !important; word-break: break-word !important;&quot;&gt;首先，我们来看一个基础的一元二次方程求解器的实现：&lt;/p&gt;&lt;pre style=&quot;box-sizing: inherit; margin-top: 12px; margin-bottom: 0px; color: rgb(6, 6, 7); letter-spacing: 0.5px; background-color: rgb(255, 255, 255);&quot;&gt;#include&amp;nbsp;&amp;lt;iostream&amp;gt;//引入输入输出流库
#include&amp;nbsp;&amp;lt;cmath&amp;gt;//常用数学函数库
#include&amp;nbsp;&amp;lt;windows.h&amp;gt;
using&amp;nbsp;namespace&amp;nbsp;std;&amp;nbsp;//使用标准(std)命名空间，这样可以不用在之后的代码中加上std::前缀
int&amp;nbsp;main()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float&amp;nbsp;a,&amp;nbsp;b,&amp;nbsp;c;&amp;nbsp;//定义浮点数a&amp;nbsp;b&amp;nbsp;c
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int&amp;nbsp;s&amp;nbsp;=&amp;nbsp;0;//记录运算次数
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;一元二次方程求解器(适用于一般式且解值在实数范围内，一次运行支持计算15个方程)&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl;//提示语
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while&amp;nbsp;(true)&amp;nbsp;{&amp;nbsp;//循环开始
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;s&amp;nbsp;+=&amp;nbsp;1;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;这是第&amp;nbsp;&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;s&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;&amp;nbsp;次计算&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;请输入A(一般式Ax^2+Bx+C=0,退出请将A与B均输入0):&amp;nbsp;&amp;quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cin&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;a;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(a&amp;nbsp;==&amp;nbsp;0&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;cin.peek()&amp;nbsp;==&amp;nbsp;&amp;#39;\n&amp;#39;)&amp;nbsp;break;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;请输入B(一般式Ax^2+Bx+C=0,退出请将A与B均输入0):&amp;nbsp;&amp;quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cin&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;b;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;请输入C(一般式Ax^2+Bx+C=0):&amp;nbsp;&amp;quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cin&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;c;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;正在计算，请稍等...&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float&amp;nbsp;delta&amp;nbsp;=&amp;nbsp;b&amp;nbsp;*&amp;nbsp;b&amp;nbsp;-&amp;nbsp;4&amp;nbsp;*&amp;nbsp;a&amp;nbsp;*&amp;nbsp;c;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;Delta=&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;delta&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(delta&amp;nbsp;&amp;gt;=&amp;nbsp;0)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float&amp;nbsp;sum1&amp;nbsp;=&amp;nbsp;(-1&amp;nbsp;*&amp;nbsp;b&amp;nbsp;+&amp;nbsp;sqrt(delta))&amp;nbsp;/&amp;nbsp;(2&amp;nbsp;*&amp;nbsp;a);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float&amp;nbsp;sum2&amp;nbsp;=&amp;nbsp;(-1&amp;nbsp;*&amp;nbsp;b&amp;nbsp;-&amp;nbsp;sqrt(delta))&amp;nbsp;/&amp;nbsp;(2&amp;nbsp;*&amp;nbsp;a);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;计算成功&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;x1=&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;sum1&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;x2=&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;sum2&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;else&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;该方程解值不在实数范围内，无法计算！&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(s&amp;nbsp;==&amp;nbsp;15)&amp;nbsp;break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;程序将在3秒后自动退出&amp;quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Sleep(3000);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/pre&gt;&lt;h2 style=&quot;box-sizing: inherit; color: rgb(6, 6, 7); margin-bottom: 0px; font-size: 16px; line-height: 24px; margin-top: 1em; font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; letter-spacing: 0.5px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;或者 源代码下载链接：&lt;a href=&quot;https://static.cdn.mcdawanjia.top/blog/cpp/example1/%E4%B8%80%E5%85%83%E4%BA%8C%E6%AC%A1%E6%96%B9%E7%A8%8B%E6%B1%82%E8%A7%A3%E5%99%A8-1.cpp&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;点此下载&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h2 style=&quot;box-sizing: inherit; color: rgb(6, 6, 7); margin-bottom: 0px; font-size: 16px; line-height: 24px; margin-top: 1em; font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; letter-spacing: 0.5px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;代码优化&lt;/h2&gt;&lt;p style=&quot;box-sizing: inherit; line-height: 24px; margin-top: 0.859em; margin-bottom: 0.859em; letter-spacing: 0.25px; max-width: 100%; overflow: auto hidden; text-wrap: wrap; color: rgb(6, 6, 7); font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255); white-space-collapse: preserve !important; word-break: break-word !important;&quot;&gt;虽然上述代码已经能够实现基本功能，但我们可以通过以下方式进行优化：&lt;/p&gt;&lt;ol style=&quot;box-sizing: inherit; padding-inline-start: 2em; margin-top: 0.859em; color: rgb(6, 6, 7); font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; letter-spacing: 0.5px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;初始化变量&lt;/span&gt;：在使用变量之前，确保它们已经被初始化。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;代码风格&lt;/span&gt;：保持代码的可读性，比如使用空格、适当的缩进和换行。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;循环控制&lt;/span&gt;：使用更清晰的循环控制逻辑。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;异常处理&lt;/span&gt;：添加对输入异常的处理，比如用户输入非数字时的情况。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;代码重用&lt;/span&gt;：将重复的代码块提取成函数，以提高代码的可维护性。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;用户界面&lt;/span&gt;：提供更友好的用户界面，比如在退出前确认。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;box-sizing: inherit; line-height: 24px; margin-top: 0.859em; margin-bottom: 0.859em; letter-spacing: 0.25px; max-width: 100%; overflow: auto hidden; text-wrap: wrap; color: rgb(6, 6, 7); font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255); white-space-collapse: preserve !important; word-break: break-word !important;&quot;&gt;优化后的代码如下：&lt;/p&gt;&lt;pre style=&quot;box-sizing: inherit; margin-top: 12px; margin-bottom: 0px; color: rgb(6, 6, 7); letter-spacing: 0.5px; background-color: rgb(255, 255, 255);&quot;&gt;#include&amp;nbsp;&amp;lt;iostream&amp;gt;
#include&amp;nbsp;&amp;lt;cmath&amp;gt;
#include&amp;nbsp;&amp;lt;windows.h&amp;gt;
using&amp;nbsp;namespace&amp;nbsp;std;

//&amp;nbsp;函数声明
float&amp;nbsp;calculateDelta(float&amp;nbsp;a,&amp;nbsp;float&amp;nbsp;b,&amp;nbsp;float&amp;nbsp;c);
void&amp;nbsp;solveQuadraticEquation(float&amp;nbsp;a,&amp;nbsp;float&amp;nbsp;b,&amp;nbsp;float&amp;nbsp;c);
void&amp;nbsp;printBanner();

int&amp;nbsp;main()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printBanner();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int&amp;nbsp;count&amp;nbsp;=&amp;nbsp;0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float&amp;nbsp;a,&amp;nbsp;b,&amp;nbsp;c;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while&amp;nbsp;(true)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;请输入A(一般式Ax^2+Bx+C=0,退出请将A与B均输入0):&amp;nbsp;&amp;quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cin&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;a;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(a&amp;nbsp;==&amp;nbsp;0)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;请输入B(退出请将B也输入0):&amp;nbsp;&amp;quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cin&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;b;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(b&amp;nbsp;==&amp;nbsp;0)&amp;nbsp;break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;请输入B(一般式Ax^2+Bx+C=0):&amp;nbsp;&amp;quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cin&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;b;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(a&amp;nbsp;==&amp;nbsp;0&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;b&amp;nbsp;==&amp;nbsp;0)&amp;nbsp;break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;请输入C(一般式Ax^2+Bx+C=0):&amp;nbsp;&amp;quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cin&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;c;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;solveQuadraticEquation(a,&amp;nbsp;b,&amp;nbsp;c);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;count++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(count&amp;nbsp;==&amp;nbsp;15)&amp;nbsp;break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;程序将在3秒后自动退出&amp;quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Sleep(3000);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;0;
}

//&amp;nbsp;计算判别式
float&amp;nbsp;calculateDelta(float&amp;nbsp;a,&amp;nbsp;float&amp;nbsp;b,&amp;nbsp;float&amp;nbsp;c)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;b&amp;nbsp;*&amp;nbsp;b&amp;nbsp;-&amp;nbsp;4&amp;nbsp;*&amp;nbsp;a&amp;nbsp;*&amp;nbsp;c;
}

//&amp;nbsp;解一元二次方程
void&amp;nbsp;solveQuadraticEquation(float&amp;nbsp;a,&amp;nbsp;float&amp;nbsp;b,&amp;nbsp;float&amp;nbsp;c)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float&amp;nbsp;delta&amp;nbsp;=&amp;nbsp;calculateDelta(a,&amp;nbsp;b,&amp;nbsp;c);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;Delta=&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;delta&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(delta&amp;nbsp;&amp;gt;=&amp;nbsp;0)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float&amp;nbsp;sum1&amp;nbsp;=&amp;nbsp;(-1&amp;nbsp;*&amp;nbsp;b&amp;nbsp;+&amp;nbsp;sqrt(delta))&amp;nbsp;/&amp;nbsp;(2&amp;nbsp;*&amp;nbsp;a);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float&amp;nbsp;sum2&amp;nbsp;=&amp;nbsp;(-1&amp;nbsp;*&amp;nbsp;b&amp;nbsp;-&amp;nbsp;sqrt(delta))&amp;nbsp;/&amp;nbsp;(2&amp;nbsp;*&amp;nbsp;a);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;计算成功&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;x1=&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;sum1&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;x2=&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;sum2&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;else&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;该方程解值不在实数范围内，无法计算！&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}

//&amp;nbsp;打印欢迎信息
void&amp;nbsp;printBanner()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cout&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&amp;quot;一元二次方程求解器(适用于一般式且解值在实数范围内，一次运行支持计算15个方程)&amp;quot;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;endl;
}&lt;/pre&gt;&lt;h2 style=&quot;box-sizing: inherit; color: rgb(6, 6, 7); margin-bottom: 0px; font-size: 16px; line-height: 24px; margin-top: 1em; font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; letter-spacing: 0.5px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;或者 源代码下载链接：&lt;a href=&quot;https://static.cdn.mcdawanjia.top/blog/cpp/example1/%E4%B8%80%E5%85%83%E4%BA%8C%E6%AC%A1%E6%96%B9%E7%A8%8B%E6%B1%82%E8%A7%A3%E5%99%A8-2.cpp&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;点此下载&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h2 style=&quot;box-sizing: inherit; color: rgb(6, 6, 7); margin-bottom: 0px; font-size: 16px; line-height: 24px; margin-top: 1em; font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; letter-spacing: 0.5px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;结语&lt;/h2&gt;&lt;p style=&quot;box-sizing: inherit; line-height: 24px; margin-top: 0.859em; margin-bottom: 0.859em; letter-spacing: 0.25px; max-width: 100%; overflow: auto hidden; text-wrap: wrap; color: rgb(6, 6, 7); font-family: -apple-system, blinkmacsystemfont, &amp;quot;Helvetica Neue&amp;quot;, helvetica, &amp;quot;segoe ui&amp;quot;, arial, roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255); white-space-collapse: preserve !important; word-break: break-word !important;&quot;&gt;通过这个实例，我们完成了一个简易的一元二次方程求解器的制作。编程是一个不断学习和改进的过程，希望这篇文章能够帮助你在编程的道路上更进一步。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 12 Oct 2024 18:40:54 +0800</pubDate></item><item><title>一个好用的网盘测试——永硕e盘</title><link>https://www.mcdawanjia.top/?id=6</link><description>&lt;p&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;本文纯分享，我没有收永硕e盘一分钱&lt;/span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;相信大家都用过很多网盘...&lt;span style=&quot;font-size: 14px;&quot;&gt;(特别是百度网盘)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;现在十分流行的还是百度网盘 阿里云盘 123云盘以及各大运营商推出的网盘，这些网盘都有个很鲜明的特征——限速或要求你下载App才能下载文档，并且界面并不简洁，而且分享文件有限制或必须转存才能下载。&lt;/span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 20px; text-decoration: none;&quot;&gt;如果你有&lt;/span&gt;&lt;span style=&quot;font-size: 20px; text-decoration: underline;&quot;&gt;大量分享小文件的需求&lt;/span&gt;&lt;span style=&quot;font-size: 20px; text-decoration: none;&quot;&gt;，&lt;/span&gt;&lt;span style=&quot;font-size: 20px; text-decoration: underline;&quot;&gt;并且又不想开会员&lt;/span&gt;&lt;span style=&quot;font-size: 20px; text-decoration: none;&quot;&gt;、&lt;/span&gt;&lt;span style=&quot;font-size: 20px; text-decoration: underline;&quot;&gt;看广告和下载App&lt;/span&gt;&lt;span style=&quot;font-size: 20px; text-decoration: none;&quot;&gt;，那么&lt;/span&gt;&lt;span style=&quot;font-size: 24px; text-decoration: underline;&quot;&gt;永硕e盘&lt;/span&gt;&lt;span style=&quot;font-size: 24px; text-decoration: none;&quot;&gt;非常适合你&lt;/span&gt;&lt;span style=&quot;font-size: 20px; text-decoration: none;&quot;&gt;！&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 20px; text-decoration: none;&quot;&gt;先来看看网盘的界面&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 20px; text-decoration: none;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://static.cdn.mcdawanjia.top/blog/ysepan/jiemian.png&quot; width=&quot;1380&quot; height=&quot;389&quot; style=&quot;width: 1380px; height: 389px;&quot; border=&quot;0&quot; vspace=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 20px; text-decoration: none;&quot;&gt;要下载什么文件点击下载即可，我的宽带是电信500M，实际下载速度在30MB/s，速度也是非常快的&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 20px; text-decoration: none;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-decoration: none; font-size: 24px;&quot;&gt;接下来到了 定价&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-decoration: none; font-size: 24px;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://static.cdn.mcdawanjia.top/blog/ysepan/price.png&quot; width=&quot;1137&quot; height=&quot;636&quot; style=&quot;width: 1137px; height: 636px;&quot; border=&quot;0&quot; vspace=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot;/&gt;分享小文件免费型完全够用！&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-decoration: none; font-size: 24px;&quot;&gt;我们只需要一年之内登录一次管理后台就可以一直使用下去！非常方便&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-decoration: none; font-size: 24px;&quot;&gt;&lt;span style=&quot;text-decoration: none; font-size: 16px;&quot;&gt;访问永硕e盘官网：&lt;a href=&quot;http://www.ys168.com&quot; target=&quot;_blank&quot; textvalue=&quot;http://www.ys168.com&quot;&gt;http://www.ys168.com&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;</description><pubDate>Fri, 07 Jun 2024 11:44:08 +0800</pubDate></item><item><title>Golang系列第二集——第一个Golang程序“Hello World”</title><link>https://www.mcdawanjia.top/?id=5</link><description>&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;这集我们将完成第一个Go程序“Hello World”&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;strong&gt;一、打开上次创建的文件夹&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;将代码放在&lt;code&gt;hello-world.go&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;p&gt;&lt;code&gt;&lt;span style=&quot;font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 14px;&quot;&gt;hello-world.go&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 14px;&quot;&gt;的完整代码如下所示&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;language-go code-toolbar&quot;&gt;package&amp;nbsp;main
import&amp;nbsp;&amp;quot;fmt&amp;quot;
func&amp;nbsp;main()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.Println(&amp;quot;hello&amp;nbsp;world&amp;quot;)
}&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;懒人的源代码下载链接：&lt;a href=&quot;http://static.cdn.mcdawanjia.top/blog/golang-2/hello-world.go&quot; target=&quot;_blank&quot;&gt;点此下载&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;打开cmd&lt;/span&gt;，定位到文件位置，输入&lt;span class=&quot;token keyword&quot;&gt;go&lt;/span&gt; run hello&lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;world&lt;span class=&quot;token punctuation&quot;&gt;.go&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;token punctuation&quot;&gt;得到结果~&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;token punctuation&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://static.cdn.mcdawanjia.top/blog/golang-2/run.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;如想把程序构建成二进制文件。可以使用&lt;code&gt;go build&lt;/code&gt;来做到这一点&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://static.cdn.mcdawanjia.top/blog/golang-2/build.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;然后可以直接执行构建好的二进制。结果与直接运行一致~&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;本集结束，感谢您的支持！&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sun, 21 Apr 2024 07:34:56 +0800</pubDate></item><item><title>Golang系列第一集——Golang的安装(Windows)</title><link>https://www.mcdawanjia.top/?id=4</link><description>&lt;h2 data-first-child=&quot;&quot; style=&quot;font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 1.2em; line-height: 1.5; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; margin: 0px 0px calc(1.16667em); clear: left; color: rgb(25, 27, 31); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 24px;&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px;&quot;&gt;这集我们将来完成第一步——Golang的安装（Windows）&lt;/span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 data-first-child=&quot;&quot; style=&quot;font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 1.2em; line-height: 1.5; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; margin: 0px 0px calc(1.16667em); clear: left; color: rgb(25, 27, 31); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 24px;&quot;&gt;一，下载：&lt;/span&gt;&lt;/h2&gt;&lt;p data-pid=&quot;F55KQXjh&quot; style=&quot;margin-top: 1.4em; margin-bottom: 1.4em; color: rgb(25, 27, 31); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: medium; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-weight: 600;&quot;&gt;首先到Google中国官网进行下载：&lt;a href=&quot;https://golang.google.cn/dl/&quot; target=&quot;_blank&quot; title=&quot;golang.google.cn&quot; textvalue=&quot;https://golang.google.cn/dl/&quot;&gt;https://golang.google.cn/dl/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://static.cdn.mcdawanjia.top/blog/dl.png&quot;/&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;二、安装&lt;/span&gt;（演示需要，这里暂不安装最新的1.22.2版本而选择安装1.17.13版本，实际安装步骤差不多）&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://static.cdn.mcdawanjia.top/blog/install.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;一路下一步即可！&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 24px; background-color: #FFFFFF; color: #191B1F;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 24px; background-color: #FFFFFF; color: #191B1F;&quot;&gt;三，检查是否安装成功：&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p data-pid=&quot;coSfFVE1&quot; style=&quot;margin-top: 1.4em; margin-bottom: 1.4em; color: rgb(25, 27, 31); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: medium; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;键盘上的：win + r 打开cmd，输入命令&lt;/p&gt;&lt;div class=&quot;highlight&quot; style=&quot;margin: 1em 0px; color: rgb(25, 27, 31); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: medium; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;pre style=&quot;margin-top: 0px; margin-bottom: 0px; overflow-wrap: initial; background-color: rgb(248, 248, 250); border-radius: 4px; font-size: 0.9em; overflow: auto; padding: calc(0.888889em); word-break: initial;&quot;&gt;C:\Users\Admin&amp;gt;go&amp;nbsp;version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//查看当前安装的版本
go&amp;nbsp;version&amp;nbsp;go1.17.13&amp;nbsp;windows/amd64&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//如果有显示说明安装没有问题&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;四、创建Golang所需文件夹：&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;C盘 - 用户 - （你的用户名） - 创建go文件夹&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;&lt;span style=&quot;color: #191B1F; text-wrap: wrap; background-color: #FFFFFF; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 18px;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://static.cdn.mcdawanjia.top/blog/cpan.png&quot;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;&lt;span style=&quot;color: #191B1F; text-wrap: wrap; background-color: #FFFFFF; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 18px;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://static.cdn.mcdawanjia.top/blog/user.png&quot;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;&lt;span style=&quot;color: #191B1F; text-wrap: wrap; background-color: #FFFFFF; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 18px;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://static.cdn.mcdawanjia.top/blog/wenjianjia1.png&quot;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #191B1F; text-wrap: wrap; background-color: #FFFFFF; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 18px;&quot;&gt;&lt;span style=&quot;color: #191B1F; text-wrap: wrap; background-color: #FFFFFF; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 24px;&quot;&gt;安装完成！本集结束&lt;/span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #191B1F; text-wrap: wrap; background-color: #FFFFFF; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 18px;&quot;&gt;&lt;span style=&quot;color: #191B1F; text-wrap: wrap; background-color: #FFFFFF; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 24px;&quot;&gt;感谢您的支持！&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description><pubDate>Sat, 20 Apr 2024 18:38:10 +0800</pubDate></item><item><title>Hello World!</title><link>https://www.mcdawanjia.top/?id=3</link><description>&lt;p&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&amp;nbsp; &amp;nbsp; 欢迎来到我的博客！&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; 我将会在这里尝试找回以前的文章并且分享编程学习经验，敬请期待！~&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-size: 12px;&quot;&gt;网站已进行ICP备案并且接入国内服务器，速度将会有极大提升！&lt;/span&gt;&lt;/p&gt;</description><pubDate>Sun, 14 Apr 2024 11:50:45 +0800</pubDate></item></channel></rss>