<?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[BooL?]]></title><description><![CDATA[<p>hallo Leute</p>
<p>Als ich neulich wieder einmal das neugekaufte c++ Buch aufschlug (anfänger) habe ich schnell festgestellt das ich an meine grenzen gekommen bin.<br />
Die Hilfe des BCB gibt zu diesen thema auch nicht viel her also habe entschloss ich mich in das forum zu schreiben.<br />
Könnte mich jemand erklären was es mit bool auf sich hat.<br />
Wofür ist das? Was kann mann damit machen??</p>
<p>M.B.<br />
Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/90207/bool</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Jul 2026 18:35:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/90207.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Oct 2004 09:15:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BooL? on Wed, 27 Oct 2004 09:15:32 GMT]]></title><description><![CDATA[<p>hallo Leute</p>
<p>Als ich neulich wieder einmal das neugekaufte c++ Buch aufschlug (anfänger) habe ich schnell festgestellt das ich an meine grenzen gekommen bin.<br />
Die Hilfe des BCB gibt zu diesen thema auch nicht viel her also habe entschloss ich mich in das forum zu schreiben.<br />
Könnte mich jemand erklären was es mit bool auf sich hat.<br />
Wofür ist das? Was kann mann damit machen??</p>
<p>M.B.<br />
Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/638585</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/638585</guid><dc:creator><![CDATA[geilomat]]></dc:creator><pubDate>Wed, 27 Oct 2004 09:15:32 GMT</pubDate></item><item><title><![CDATA[Reply to BooL? on Wed, 27 Oct 2004 09:22:45 GMT]]></title><description><![CDATA[<p>Komisches Buch aus dem die Antwort auf diese Frage nicht hervorgeht.</p>
<p>Bool ist ein typ mit den möglichgen Werten true und false bzw. 1 und 0.</p>
<p>Das ist eigentlich schon alles. Eignet sich gut um bestimmte Bedingungen zu prüfen die entweder wahr oder falsch sind. z.B. in einer while-Schleife:</p>
<pre><code>bool ende=false;
while(!ende)
{
  ...
  mach was
  ...
  ende=(bedingung)
}
</code></pre>
<p>Wenn die Bedingung wahr wird, wird die Schleife verlassen.</p>
<p>mfG</p>
<p>robi1806</p>
]]></description><link>https://www.c-plusplus.net/forum/post/638596</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/638596</guid><dc:creator><![CDATA[robi1806]]></dc:creator><pubDate>Wed, 27 Oct 2004 09:22:45 GMT</pubDate></item><item><title><![CDATA[Reply to BooL? on Wed, 27 Oct 2004 14:47:00 GMT]]></title><description><![CDATA[<p>Für mich ist das unlogisch man kann doch auch alles auf false und true manuel setzen oder nicht :<br />
Z.B. Button-&gt;visible=true;?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/638908</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/638908</guid><dc:creator><![CDATA[geilomat]]></dc:creator><pubDate>Wed, 27 Oct 2004 14:47:00 GMT</pubDate></item><item><title><![CDATA[Reply to BooL? on Thu, 28 Oct 2004 05:48:07 GMT]]></title><description><![CDATA[<p>*erstaunt_guck*</p>
<p>In Deienm Beispiel ist doche bereits Visible eine boolsche Variable, der Du nur die entsprechenden Wert true oder false zuweisen kannst... Ob Du das nur direkt machst, oder über eine Variable...</p>
<p>Und wenn Du mal ein bißchen weiter bist, wirst Du feststellen, das robis Beispiel nicht von ungefähr kommt... <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/639066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/639066</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 28 Oct 2004 05:48:07 GMT</pubDate></item><item><title><![CDATA[Reply to BooL? on Thu, 28 Oct 2004 06:28:45 GMT]]></title><description><![CDATA[<p>Genau so wie du eine Variable vom typ integer deklarieren kannst in dem du z.B.</p>
<pre><code class="language-cpp">int zahl=0;
</code></pre>
<p>nimmst<br />
kannst du eine boolsche Variable vom typ bool deklarieren.</p>
<pre><code class="language-cpp">bool boolvar=true;
</code></pre>
<p>oder</p>
<pre><code class="language-cpp">bool boolvar=false;
</code></pre>
<p>diese Variable kann nur zwei Zustände haben.<br />
Und zwar true oder false (1 oder 0 ) also quasi ja oder nein.<br />
Wohingegen du einem int jeden beliebigen int-wert zuweisen kannst.<br />
Das Button-&gt;Visible ist nichts anderes da kannst du nur zwei Zustände setzen.<br />
true=sichtbar<br />
false=unsichtbar.<br />
Natürlich auch manuell.<br />
Wenn dein Buch allerdings ein Anfängerbuch ist und bool als Datentyp darin nicht erklärt ist, dann wirf es in die Tonne <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/639092</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/639092</guid><dc:creator><![CDATA[elwood]]></dc:creator><pubDate>Thu, 28 Oct 2004 06:28:45 GMT</pubDate></item><item><title><![CDATA[Reply to BooL? on Thu, 28 Oct 2004 08:18:32 GMT]]></title><description><![CDATA[<p>danke jetzt habe ich es verschtanden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/639193</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/639193</guid><dc:creator><![CDATA[geilomat]]></dc:creator><pubDate>Thu, 28 Oct 2004 08:18:32 GMT</pubDate></item><item><title><![CDATA[Reply to BooL? on Thu, 28 Oct 2004 08:19:18 GMT]]></title><description><![CDATA[<p>danke jetzt habe ich es verschtanden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/639195</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/639195</guid><dc:creator><![CDATA[geilomat]]></dc:creator><pubDate>Thu, 28 Oct 2004 08:19:18 GMT</pubDate></item><item><title><![CDATA[Reply to BooL? on Thu, 28 Oct 2004 08:20:25 GMT]]></title><description><![CDATA[<p>Danke<br />
Leutensen ich habe es verstanden. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f4a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--light_bulb"
      title=":bulb:"
      alt="💡"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/639197</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/639197</guid><dc:creator><![CDATA[geilomat]]></dc:creator><pubDate>Thu, 28 Oct 2004 08:20:25 GMT</pubDate></item><item><title><![CDATA[Reply to BooL? on Thu, 28 Oct 2004 08:22:46 GMT]]></title><description><![CDATA[<p>Danke<br />
Leutensen ich habe es verstanden. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f4a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--light_bulb"
      title=":bulb:"
      alt="💡"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/639203</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/639203</guid><dc:creator><![CDATA[geilomat]]></dc:creator><pubDate>Thu, 28 Oct 2004 08:22:46 GMT</pubDate></item></channel></rss>