<?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[Brauche Hilfe für C++]]></title><description><![CDATA[<p>Hallo erstmal an alle.<br />
bin recht neu hier und bräuchte mal die hilfe eines pro's</p>
<p>ich hab ein prigramm geschrieben, was aber nicht korrekt läuft.<br />
Die es kommt keine ausgabe am ende raus der macht einfach das prog zu und fertigm deswegen wollte ich fragen ob mir jemand helfen kan.</p>
<p>ich hab keine ahnung wo der fehler ist.</p>
<p>danke im voraus schonmal.</p>
<p>CODE</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
    using namespace std;

    int main()
    {
      string mainboard;
      string gehauselufter;
      string ram;
      string grafikarte;
      string festplatte;
      string laufwerk;
      string cpu;
      string cpukuhler;

      cout&lt;&lt;&quot;Bitte Mainboard eingeben\n&quot;;
      cin&gt;&gt;mainboard;

      cout&lt;&lt;&quot;Bitte Gehauseluefter eingeben\n&quot;;
      cin&gt;&gt;gehauselufter;

      cout&lt;&lt;&quot;Bitte RAM eingeben\n&quot;;
      cin&gt;&gt;ram;

      cout&lt;&lt;&quot;Bitte Grafikkarte eingeben\n&quot;;
      cin&gt;&gt;grafikarte;

      cout&lt;&lt;&quot;Bitte Festplatte eingeben\n&quot;;
      cin&gt;&gt;festplatte;

      cout&lt;&lt;&quot;Bitte Laufwerk eingeben\n&quot;;
      cin&gt;&gt;laufwerk;

      cout&lt;&lt;&quot;Bitte CPU eingeben\n&quot;;
      cin&gt;&gt;cpu;

      cout&lt;&lt;&quot;Bitte CPU-Kuehler eingeben\n&quot;;
      cin&gt;&gt;cpukuhler;

      cout&lt;&lt;mainboard&lt;&lt;&quot; &quot;&lt;&lt;gehauselufter&lt;&lt;&quot;\n&quot;&lt;&lt;ram&lt;&lt;&quot;\n&quot;&lt;&lt;grafikarte&lt;&lt;&quot;\n&quot;&lt;&lt;festplatte&lt;&lt;&quot;\n&quot;&lt;&lt;laufwerk&lt;&lt;&quot;\n&quot;&lt;&lt;cpu&lt;&lt;&quot;\n&quot;&lt;&lt;cpukuhler&lt;&lt;&quot;\n&quot;;

      fflush(stdin);
      return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/217278/brauche-hilfe-für-c</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 17:40:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/217278.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 05 Jul 2008 18:55:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sat, 05 Jul 2008 18:55:40 GMT]]></title><description><![CDATA[<p>Hallo erstmal an alle.<br />
bin recht neu hier und bräuchte mal die hilfe eines pro's</p>
<p>ich hab ein prigramm geschrieben, was aber nicht korrekt läuft.<br />
Die es kommt keine ausgabe am ende raus der macht einfach das prog zu und fertigm deswegen wollte ich fragen ob mir jemand helfen kan.</p>
<p>ich hab keine ahnung wo der fehler ist.</p>
<p>danke im voraus schonmal.</p>
<p>CODE</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
    using namespace std;

    int main()
    {
      string mainboard;
      string gehauselufter;
      string ram;
      string grafikarte;
      string festplatte;
      string laufwerk;
      string cpu;
      string cpukuhler;

      cout&lt;&lt;&quot;Bitte Mainboard eingeben\n&quot;;
      cin&gt;&gt;mainboard;

      cout&lt;&lt;&quot;Bitte Gehauseluefter eingeben\n&quot;;
      cin&gt;&gt;gehauselufter;

      cout&lt;&lt;&quot;Bitte RAM eingeben\n&quot;;
      cin&gt;&gt;ram;

      cout&lt;&lt;&quot;Bitte Grafikkarte eingeben\n&quot;;
      cin&gt;&gt;grafikarte;

      cout&lt;&lt;&quot;Bitte Festplatte eingeben\n&quot;;
      cin&gt;&gt;festplatte;

      cout&lt;&lt;&quot;Bitte Laufwerk eingeben\n&quot;;
      cin&gt;&gt;laufwerk;

      cout&lt;&lt;&quot;Bitte CPU eingeben\n&quot;;
      cin&gt;&gt;cpu;

      cout&lt;&lt;&quot;Bitte CPU-Kuehler eingeben\n&quot;;
      cin&gt;&gt;cpukuhler;

      cout&lt;&lt;mainboard&lt;&lt;&quot; &quot;&lt;&lt;gehauselufter&lt;&lt;&quot;\n&quot;&lt;&lt;ram&lt;&lt;&quot;\n&quot;&lt;&lt;grafikarte&lt;&lt;&quot;\n&quot;&lt;&lt;festplatte&lt;&lt;&quot;\n&quot;&lt;&lt;laufwerk&lt;&lt;&quot;\n&quot;&lt;&lt;cpu&lt;&lt;&quot;\n&quot;&lt;&lt;cpukuhler&lt;&lt;&quot;\n&quot;;

      fflush(stdin);
      return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1541539</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541539</guid><dc:creator><![CDATA[azad11]]></dc:creator><pubDate>Sat, 05 Jul 2008 18:55:40 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sat, 05 Jul 2008 19:00:23 GMT]]></title><description><![CDATA[<p>Visual Studio? -&gt; starten mit strg+f5</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541543</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541543</guid><dc:creator><![CDATA[Kischeninadek????]]></dc:creator><pubDate>Sat, 05 Jul 2008 19:00:23 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sat, 05 Jul 2008 19:02:13 GMT]]></title><description><![CDATA[<p>nein DEV-C++</p>
<p>damit hab ich es geschrieben... es geht ja alles die eingaben aber die ausgabe kommt nicht.</p>
<p>also was am ende raus kommen muss... was ich an mainboard, ram , cpu usw eingeben habe ... das er mir das untereinander zeigt die ganzen eingaben die ich gemacht habe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541545</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541545</guid><dc:creator><![CDATA[azad11]]></dc:creator><pubDate>Sat, 05 Jul 2008 19:02:13 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sat, 05 Jul 2008 19:33:58 GMT]]></title><description><![CDATA[<p>Starte das Programm von der Konsole aus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541557</guid><dc:creator><![CDATA[Kischeninadek????]]></dc:creator><pubDate>Sat, 05 Jul 2008 19:33:58 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sat, 05 Jul 2008 19:39:05 GMT]]></title><description><![CDATA[<p>meinst du die anwendung die in dem ordner ist ?? wen ja geht nicht hab es schon versucht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541558</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541558</guid><dc:creator><![CDATA[azad11]]></dc:creator><pubDate>Sat, 05 Jul 2008 19:39:05 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sat, 05 Jul 2008 19:40:11 GMT]]></title><description><![CDATA[<p>Warum sollte das nicht gehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541559</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541559</guid><dc:creator><![CDATA[Kischeninadek????]]></dc:creator><pubDate>Sat, 05 Jul 2008 19:40:11 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sat, 05 Jul 2008 19:43:24 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-173888-and-highlight-is-schliessen+verhindern.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-173888-and-highlight-is-schliessen+verhindern.html</a></p>
<p>Nächstes Mal bitte zuerst Forensuche verwenden.</p>
<p>Übrigens nette Tipps, <em>Kischeninadek????</em> :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541561</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541561</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sat, 05 Jul 2008 19:43:24 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sat, 05 Jul 2008 20:21:45 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int main(){
//bla bla dings

system(&quot;PAUSE&quot;); //wartet auf tastenbestätigung... geht unter win, linux, mac (maybe auch noch mehr)
return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1541575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541575</guid><dc:creator><![CDATA[princess]]></dc:creator><pubDate>Sat, 05 Jul 2008 20:21:45 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sat, 05 Jul 2008 21:05:53 GMT]]></title><description><![CDATA[<p>princess schrieb:</p>
<blockquote>
<pre><code class="language-cpp">system(&quot;PAUSE&quot;);
</code></pre>
</blockquote>
<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39453.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39453.html</a> <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/1541598</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541598</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sat, 05 Jul 2008 21:05:53 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sat, 05 Jul 2008 21:16:43 GMT]]></title><description><![CDATA[<p>Und das nächste mal einen sinnvollen Titel wählen. Wenn Du keine Hilfe für C++ bräuchtest, dann würdest Du keine Frage im C++-Forum stellen. Ein Titel wie &quot;Brauche Hilfe für C++&quot; würde einfach zu jeder Anfrage hier passen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541600</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541600</guid><dc:creator><![CDATA[tntnet]]></dc:creator><pubDate>Sat, 05 Jul 2008 21:16:43 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sun, 06 Jul 2008 00:42:07 GMT]]></title><description><![CDATA[<p>ok erstes problem gelöst<br />
aber was muss ich machen um zahlen und text einzugeben, weil wen ich bei dem ersten &quot;mainboard&quot; z.b Abit AX78 eingebe überspringt er 3 sachen. ich glaube das liegt daran, weil ich text und zahl eintippe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541657</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541657</guid><dc:creator><![CDATA[azad11]]></dc:creator><pubDate>Sun, 06 Jul 2008 00:42:07 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sun, 06 Jul 2008 01:32:05 GMT]]></title><description><![CDATA[<p>das kann garnicht sein,wenn du strings benutzt..<br />
apropos,wo ist denn eigentlich das</p>
<pre><code class="language-cpp">#include &lt;string&gt;
</code></pre>
<p>bei dir?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541659</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541659</guid><dc:creator><![CDATA[manonyous]]></dc:creator><pubDate>Sun, 06 Jul 2008 01:32:05 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sun, 06 Jul 2008 10:38:14 GMT]]></title><description><![CDATA[<p>also hier ist jetzt der neue code der zumindes bis zu ausgabe schaft durch die pause. aber jetzt ist das prob. das wen ich bei idem ersten ein text + zahl eingebe das er zwei abfrage überspringt. ich hab es mal mit char versucht da geht es auch nicht. ich glaube es liegt daran, das wen ich eine leerschritt mache das er mir zwei abfrage überspringt... z.b. ABIT AX78 eingebe überspringt er es weil ein leerschrit ist nach &quot;ABIT&quot;</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include&lt;string&gt;
    using namespace std;

    int main()
    {
      string mainboard;
      string gehauselufter;
      string ram;
      string grafikarte;
      string festplatte;
      string laufwerk;
      string cpu;
      string cpukuhler;

      cout&lt;&lt;&quot;Bitte Mainboard eingeben\n&quot;;
      cin&gt;&gt;mainboard;

      cout&lt;&lt;&quot;Bitte Gehauseluefter eingeben\n&quot;;
      cin&gt;&gt;gehauselufter;

      cout&lt;&lt;&quot;Bitte RAM eingeben\n&quot;;
      cin&gt;&gt;ram;

      cout&lt;&lt;&quot;Bitte Grafikkarte eingeben\n&quot;;
      cin&gt;&gt;grafikarte;

      cout&lt;&lt;&quot;Bitte Festplatte eingeben\n&quot;;
      cin&gt;&gt;festplatte;

      cout&lt;&lt;&quot;Bitte Laufwerk eingeben\n&quot;;
      cin&gt;&gt;laufwerk;

      cout&lt;&lt;&quot;Bitte CPU eingeben\n&quot;;
      cin&gt;&gt;cpu;

      cout&lt;&lt;&quot;Bitte CPU-Kuehler eingeben\n&quot;;
      cin&gt;&gt;cpukuhler;

      std::cout&lt;&lt;mainboard&lt;&lt;&quot; &quot;&lt;&lt;gehauselufter&lt;&lt;&quot;\n&quot;&lt;&lt;ram&lt;&lt;&quot;\n&quot;&lt;&lt;grafikarte&lt;&lt;&quot;\n&quot;&lt;&lt;festplatte&lt;&lt;&quot;\n&quot;&lt;&lt;laufwerk&lt;&lt;&quot;\n&quot;&lt;&lt;cpu&lt;&lt;&quot;\n&quot;&lt;&lt;cpukuhler&lt;&lt;&quot;\n&quot;;

      system(&quot;PAUSE&quot;);

      return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1541783</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541783</guid><dc:creator><![CDATA[azad11]]></dc:creator><pubDate>Sun, 06 Jul 2008 10:38:14 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sun, 06 Jul 2008 10:36:52 GMT]]></title><description><![CDATA[<blockquote>
<p>das kann garnicht sein,wenn du strings benutzt..</p>
</blockquote>
<p>Natürlich kann das sein... So weit ich das weiß, liest string nur bis zum ersten Leerzeichen ein...</p>
<p>std::getline</p>
<p>ist deine Lösung</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541785</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541785</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Sun, 06 Jul 2008 10:36:52 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sun, 06 Jul 2008 10:38:55 GMT]]></title><description><![CDATA[<p>und wo bau ich das std::getline ein ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541787</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541787</guid><dc:creator><![CDATA[azad11]]></dc:creator><pubDate>Sun, 06 Jul 2008 10:38:55 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sun, 06 Jul 2008 11:09:43 GMT]]></title><description><![CDATA[<p>damit er nicht bis zum ersten leerzeichen einliest sondern die gesamte zeile...</p>
<p>übrigens:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std; //das geht hier zwar in Ordnung, solltest du aber niemals in headern schreiben

void eingabeaufforderung (const std::string &amp;what)
  {
    std::cout &lt;&lt; &quot;Bitte &quot; &lt;&lt; what &lt;&lt; &quot; eingeben&quot; &lt;&lt; std::endl;
  };

int main() 
    { 
      string mainboard, gehauselufter, ram, grafikarte, festplatte, laufwerk, cpu, cpukuhler; //wenn dir structs bzw klassen was sagen, könntest du das ja auch dahingehend auslagern?!

      eingabeaufforderung (&quot;Mainboard&quot;);
      cin.getline (mainboard); //so sollte das stimmen

      eingabeaufforderung (&quot;Gehaeuseluefter&quot;);
      cin &gt;&gt; gehauselufter;

      eingabeaufforderung (&quot;RAM&quot;);
      cin &gt;&gt; ram;

      eingabeaufforderung (&quot;Grafikkarte&quot;);
      cin &gt;&gt; grafikarte;

      eingabeaufforderung (&quot;Festplatte&quot;);
      cin &gt;&gt; festplatte;

      eingabeaufforderung (&quot;Laufwerk&quot;);
      cin &gt;&gt; laufwerk;

      eingabeaufforderung (&quot;CPU&quot;);
      cin &gt;&gt; cpu;

      eingabeaufforderung (&quot;CPU-Kuehler&quot;);
      cin &gt;&gt; cpukuhler;

      std::cout &lt;&lt; mainboard &lt;&lt; &quot;, &quot; &lt;&lt; gehauselufter &lt;&lt; &quot;\r\n&quot;
        &lt;&lt; ram &lt;&lt; &quot;\r\n&quot;
        &lt;&lt; grafikarte &lt;&lt; &quot;\r\n&quot;
        &lt;&lt; festplatte &lt;&lt; &quot;\r\n&quot;
        &lt;&lt; laufwerk &lt;&lt; &quot;\r\n&quot;
        &lt;&lt; cpu &lt;&lt; &quot;\r\n&quot;
        &lt;&lt; cpukuhler &lt;&lt; std::endl; 

      system (&quot;PAUSE&quot;); //klar ist das die einfachste lösung, aber mit dem SYSTEM ()-Zeugs solltest du dich nicht erst anfreunden...

      return 0; //kannst du auch weglassen, aber schaden tuts nicht...
}
</code></pre>
<p>ist finde ich sehr viel übersichtlicher...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541804</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541804</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Sun, 06 Jul 2008 11:09:43 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe für C++ on Sun, 06 Jul 2008 11:03:28 GMT]]></title><description><![CDATA[<p>ok danke dir <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>habs herausgefunden <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/1541808</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541808</guid><dc:creator><![CDATA[azad11]]></dc:creator><pubDate>Sun, 06 Jul 2008 11:03:28 GMT</pubDate></item></channel></rss>