<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[BCB6 kennt nicht die STL]]></title><description><![CDATA[<p>Hallo alle zusammen,</p>
<p>ich möchte Funktion max() von STL benutzen und das geht nicht.<br />
Der Compiler beschwert sich, dass der keine max() Funktion kennt.</p>
<p>#include &lt;math.h&gt;</p>
<p>Hier ist der Code:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
int zahl1 = StrToInt(Edit1-&gt;Text);
int zahl2 = StrToInt(Edit2-&gt;Text);

int ergebnis = max(zahl1,zahl2);
Edit3-&gt;Text = IntToStr(ergebnis);
}
</code></pre>
<p>Ich weiss nicht was ich machen soll.<br />
Kann jemand mir ein Tip geben?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/164854/bcb6-kennt-nicht-die-stl</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 12:18:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/164854.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Nov 2006 11:22:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BCB6 kennt nicht die STL on Mon, 13 Nov 2006 11:22:07 GMT]]></title><description><![CDATA[<p>Hallo alle zusammen,</p>
<p>ich möchte Funktion max() von STL benutzen und das geht nicht.<br />
Der Compiler beschwert sich, dass der keine max() Funktion kennt.</p>
<p>#include &lt;math.h&gt;</p>
<p>Hier ist der Code:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
int zahl1 = StrToInt(Edit1-&gt;Text);
int zahl2 = StrToInt(Edit2-&gt;Text);

int ergebnis = max(zahl1,zahl2);
Edit3-&gt;Text = IntToStr(ergebnis);
}
</code></pre>
<p>Ich weiss nicht was ich machen soll.<br />
Kann jemand mir ein Tip geben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1173536</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1173536</guid><dc:creator><![CDATA[aesse]]></dc:creator><pubDate>Mon, 13 Nov 2006 11:22:07 GMT</pubDate></item><item><title><![CDATA[Reply to BCB6 kennt nicht die STL on Mon, 13 Nov 2006 11:35:37 GMT]]></title><description><![CDATA[<p>Versuchs mal mit std::max() <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1173553</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1173553</guid><dc:creator><![CDATA[THX 1138]]></dc:creator><pubDate>Mon, 13 Nov 2006 11:35:37 GMT</pubDate></item></channel></rss>