<?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[anfänger]]></title><description><![CDATA[<p>hallo alle<br />
bin neu hier.<br />
habe mich mit microsoft visual studio net an c herangewagt.</p>
<p>habe folgendes geschrieben:</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt;
int main()
{
  char cAsciiZahl='a';
  int isumme=1;
  for (isumme=1;isumme&lt;5;isumme++)
  {
    printf(&quot;\n\t Geben Sie einen Zahl ein:&quot;);
    scanf(&quot;%c&quot;,&amp;cAsciiZahl);
    printf(&quot;\n|\tASCII\t|\tDez.\t|\tOct.\t|\tHex.\t|&quot;);
    printf(&quot;\n|\t%c\t|\t%i\t|\t%o\t|\t%X\t|\n&quot;,cAsciiZahl,cAsciiZahl,cAsciiZahl,cAsciiZahl);

  }
  printf(&quot;error\n&quot;);
  return 0;
}
</code></pre>
<p>leider erscheint beim ausführen der ersteteil 2 mal.<br />
wo ist der fehler?<br />
gruß<br />
lupara</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/126391/anfänger</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 15:56:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/126391.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Nov 2005 19:50:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to anfänger on Mon, 14 Nov 2005 20:06:49 GMT]]></title><description><![CDATA[<p>hallo alle<br />
bin neu hier.<br />
habe mich mit microsoft visual studio net an c herangewagt.</p>
<p>habe folgendes geschrieben:</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt;
int main()
{
  char cAsciiZahl='a';
  int isumme=1;
  for (isumme=1;isumme&lt;5;isumme++)
  {
    printf(&quot;\n\t Geben Sie einen Zahl ein:&quot;);
    scanf(&quot;%c&quot;,&amp;cAsciiZahl);
    printf(&quot;\n|\tASCII\t|\tDez.\t|\tOct.\t|\tHex.\t|&quot;);
    printf(&quot;\n|\t%c\t|\t%i\t|\t%o\t|\t%X\t|\n&quot;,cAsciiZahl,cAsciiZahl,cAsciiZahl,cAsciiZahl);

  }
  printf(&quot;error\n&quot;);
  return 0;
}
</code></pre>
<p>leider erscheint beim ausführen der ersteteil 2 mal.<br />
wo ist der fehler?<br />
gruß<br />
lupara</p>
]]></description><link>https://www.c-plusplus.net/forum/post/917766</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/917766</guid><dc:creator><![CDATA[8952]]></dc:creator><pubDate>Mon, 14 Nov 2005 20:06:49 GMT</pubDate></item><item><title><![CDATA[Reply to anfänger on Mon, 14 Nov 2005 20:02:15 GMT]]></title><description><![CDATA[<p>ähm eigentlich müsste der erste teil 5 mal kommen (wenn du das in der for schleife meinst) wenn du willst das es einfach nur 1 mal kommt dann nimm das for() weg.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/917786</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/917786</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Mon, 14 Nov 2005 20:02:15 GMT</pubDate></item><item><title><![CDATA[Reply to anfänger on Mon, 14 Nov 2005 20:06:22 GMT]]></title><description><![CDATA[<p>danke für die antwort:<br />
die ausgabe schaut so aus:</p>
<p>Geben Sie einen Zahl ein:o</p>
<p>| ASCII | Dez. | Oct. | Hex. |<br />
| o | 111 | 157 | 6F |</p>
<p>Geben Sie einen Zahl ein:<br />
| ASCII | Dez. | Oct. | Hex. |<br />
|<br />
| 10 | 12 | A |</p>
<p>Geben Sie einen Zahl ein:o</p>
<p>| ASCII | Dez. | Oct. | Hex. |<br />
| o | 111 | 157 | 6F |</p>
<p>Geben Sie einen Zahl ein:<br />
| ASCII | Dez. | Oct. | Hex. |<br />
|<br />
| 10 | 12 | A |<br />
error<br />
Press any key to continue</p>
<p>ich habe nun 2 mal &quot;o&quot; eingegeben. dass es 4 mal kommt, entspricht ja auch meiner schleife. aber er ich gebe o ein und er liefert mir die erste zeiel korrekt, und fügt dann einfach eine zweite eingabe, obwohl ich ja nichts eingebe<br />
ein. dann kann ich wieder was eingeben und er macht wieder 2 eingaben draus.<br />
wißt ihr, was ich meine?<br />
vielen dank<br />
gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/917791</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/917791</guid><dc:creator><![CDATA[8952]]></dc:creator><pubDate>Mon, 14 Nov 2005 20:06:22 GMT</pubDate></item><item><title><![CDATA[Reply to anfänger on Tue, 15 Nov 2005 07:27:56 GMT]]></title><description><![CDATA[<p>Da ist nach dem ersten scanf() noch ein '\n' (=10) im Lesepuffer - schau mal in der FAQ nach, wie man das am günstigsten los wird <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/918118</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/918118</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 15 Nov 2005 07:27:56 GMT</pubDate></item></channel></rss>