<?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[Buchstaben knacker ??]]></title><description><![CDATA[<p>Hallo,</p>
<p>der Titel hört sich en bissl komisch an aber ich möchte einen Art Ziffern Knacker schreiben der eine eingegebene Ziffer errechnet! Wie mach ich das ? Ich hab schon stundenlang mich mit Theorie befasst, jedoch ohne Erfolg... Mir fällt einfach kein System ein umso eine Sache zu realisieren.. Wenn jmd. ne Idee hat oder sowas schon mal gemacht hat könnte wäre ich dankbar für eine kurze Erklärung!</p>
<p>Folgendes hab ich schon...</p>
<p>using namespace std;</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

int main ()
{
	char Ziffer;
	const char Bereich[] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}; //usw +, -, *....

	int B_Anzahl;
	B_Anzahl = sizeof(Bereich) / sizeof(char);

	cout &lt;&lt; &quot;Geben sie ein Test-Passwort ein(max. 1 Buchstabe): &quot;;
	cin &gt;&gt; Ziffer;

       //was nun..

return 0;
}
</code></pre>
<p>MFG<br />
HILFE</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/188572/buchstaben-knacker</link><generator>RSS for Node</generator><lastBuildDate>Fri, 25 Sep 2026 04:19:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188572.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Aug 2007 21:24:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Buchstaben knacker ?? on Wed, 01 Aug 2007 21:24:38 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>der Titel hört sich en bissl komisch an aber ich möchte einen Art Ziffern Knacker schreiben der eine eingegebene Ziffer errechnet! Wie mach ich das ? Ich hab schon stundenlang mich mit Theorie befasst, jedoch ohne Erfolg... Mir fällt einfach kein System ein umso eine Sache zu realisieren.. Wenn jmd. ne Idee hat oder sowas schon mal gemacht hat könnte wäre ich dankbar für eine kurze Erklärung!</p>
<p>Folgendes hab ich schon...</p>
<p>using namespace std;</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

int main ()
{
	char Ziffer;
	const char Bereich[] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}; //usw +, -, *....

	int B_Anzahl;
	B_Anzahl = sizeof(Bereich) / sizeof(char);

	cout &lt;&lt; &quot;Geben sie ein Test-Passwort ein(max. 1 Buchstabe): &quot;;
	cin &gt;&gt; Ziffer;

       //was nun..

return 0;
}
</code></pre>
<p>MFG<br />
HILFE</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336891</guid><dc:creator><![CDATA[HILFE**]]></dc:creator><pubDate>Wed, 01 Aug 2007 21:24:38 GMT</pubDate></item><item><title><![CDATA[Reply to Buchstaben knacker ?? on Wed, 01 Aug 2007 21:43:33 GMT]]></title><description><![CDATA[<p>Versteh das Problem nicht ganz....<br />
In Bereich gibst du die möglichen Buchstaben/Zeichen vor?<br />
In &quot;ziffer&quot; wird die Eingabe gespeichert??<br />
Dann musst nur dein array &quot;Bereich&quot; abklappern und schaun, wo du nen Treffer hast....</p>
<pre><code class="language-cpp">for (int i=0; i&lt;sizeof(Bereich); i++){
    if(ziffer == Bereich[i]){
        cout&lt;&lt;&quot;Treffer&quot;;
    }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1336905</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336905</guid><dc:creator><![CDATA[NewtonsLaw]]></dc:creator><pubDate>Wed, 01 Aug 2007 21:43:33 GMT</pubDate></item><item><title><![CDATA[Reply to Buchstaben knacker ?? on Wed, 01 Aug 2007 21:59:55 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>aber wie kann die Zahl jetzt ausgegeben werden ? - da kommtn compiler error...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336916</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336916</guid><dc:creator><![CDATA[HILFE**]]></dc:creator><pubDate>Wed, 01 Aug 2007 21:59:55 GMT</pubDate></item><item><title><![CDATA[Reply to Buchstaben knacker ?? on Wed, 01 Aug 2007 22:02:22 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann man jetzt z.B. ganze Strings testen ?? auch auf diese Weise ?</p>
<p>MFG<br />
HILFE</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336918</guid><dc:creator><![CDATA[HILFE**]]></dc:creator><pubDate>Wed, 01 Aug 2007 22:02:22 GMT</pubDate></item><item><title><![CDATA[Reply to Buchstaben knacker ?? on Thu, 02 Aug 2007 13:05:02 GMT]]></title><description><![CDATA[<p>Kann man nicht jedes einzelne Zeichen im String so ermitteln ?? - und wie soll das gehen ?</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1337299</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1337299</guid><dc:creator><![CDATA[HILFE*]]></dc:creator><pubDate>Thu, 02 Aug 2007 13:05:02 GMT</pubDate></item><item><title><![CDATA[Reply to Buchstaben knacker ?? on Thu, 02 Aug 2007 17:46:40 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-18363.html" rel="nofollow">Jochen Kalmbach</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-58.html" rel="nofollow">C++/CLI mit .NET</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1337555</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1337555</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Thu, 02 Aug 2007 17:46:40 GMT</pubDate></item><item><title><![CDATA[Reply to Buchstaben knacker ?? on Sat, 04 Aug 2007 10:15:32 GMT]]></title><description><![CDATA[<p>HILFE** schrieb:</p>
<blockquote>
<p>Hallo,</p>
<p>wie kann man jetzt z.B. ganze Strings testen ?? auch auf diese Weise ?</p>
<p>MFG<br />
HILFE</p>
<p>mfg</p>
</blockquote>
<pre><code class="language-cpp">#include &lt;cstring&gt;
std::strcmp(str1, str2);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1337562</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1337562</guid><dc:creator><![CDATA[langeweile]]></dc:creator><pubDate>Sat, 04 Aug 2007 10:15:32 GMT</pubDate></item><item><title><![CDATA[Reply to Buchstaben knacker ?? on Thu, 02 Aug 2007 18:14:41 GMT]]></title><description><![CDATA[<p>langeweile schrieb:</p>
<blockquote>
<p>HILFE* schrieb:</p>
<blockquote>
<p>Kann man nicht jedes einzelne Zeichen im String so ermitteln ?? - und wie soll das gehen ?</p>
<p>mfg</p>
</blockquote>
<pre><code class="language-cpp">#include &lt;cstdlib&gt; //?
std::strcmp(str1, str2);
</code></pre>
</blockquote>
<p>Nee. C++:</p>
<pre><code class="language-cpp">wenn test1==test2 dann
...
</code></pre>
<p>auf einzelne Elemente zugreifen:</p>
<pre><code class="language-cpp">test[1]
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1337570</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1337570</guid><dc:creator><![CDATA[...]]></dc:creator><pubDate>Thu, 02 Aug 2007 18:14:41 GMT</pubDate></item><item><title><![CDATA[Reply to Buchstaben knacker ?? on Thu, 02 Aug 2007 19:58:02 GMT]]></title><description><![CDATA[<p>Sorry, hatte mich mit dem Zitat vertan, habs verbessert...</p>
<p>P.S.: Es heißt if und nicht wenn... <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/1337637</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1337637</guid><dc:creator><![CDATA[langeweile]]></dc:creator><pubDate>Thu, 02 Aug 2007 19:58:02 GMT</pubDate></item><item><title><![CDATA[Reply to Buchstaben knacker ?? on Fri, 03 Aug 2007 11:08:14 GMT]]></title><description><![CDATA[<p>langeweile schrieb:</p>
<blockquote>
<p>Sorry, hatte mich mit dem Zitat vertan, habs verbessert...</p>
</blockquote>
<p>Es ist aber nicht besser. Man braucht kein 'strcmp' sondern einfach '==' (und halt Strings) und außerdem ist 'std::strcmp' nicht in &lt;cstdlib&gt; sondern in &lt;cstring&gt; definiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1338035</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1338035</guid><dc:creator><![CDATA[Konrad Rudolph]]></dc:creator><pubDate>Fri, 03 Aug 2007 11:08:14 GMT</pubDate></item></channel></rss>