<?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 dringed Hilfe]]></title><description><![CDATA[<p>Hallo Leute ich versuche jetzt ein Programm mit c++ zu schreiben welches nach vor und nachmae fragt und danach soll der Benutzer Klausur Noten ,Referat Noten und 8 Übungsaufgaben Noten eingeben und dannach den Notendurchshnitt berechnen .. mein Problem liegt bei der Eingabe von den 8 Noten ..<br />
DAS IST MEIN PROGRAMM</p>
<p>#include&lt;iostream&gt;<br />
#include&lt;vector&gt;<br />
#include&lt;string&gt;<br />
using namespace std ;<br />
void main ()<br />
{<br />
char name ; // der compiler akziptiert keine string vraiable warum ?</p>
<p>float refratnote,klausurnote ;<br />
vector &lt;float&gt; uebungsnote ;<br />
cout&lt;&lt;&quot;Nachname,Vorname eingeben ... \n&quot; ;<br />
cin&gt;&gt; name ;<br />
cout &lt;&lt;&quot;Klausurnote eingeben :- \n&quot; ;<br />
cin&gt;&gt; klausurnote ;<br />
cout &lt;&lt;&quot;Refratnote eingeben :- \n&quot; ;<br />
cin &gt;&gt; refratnote ;<br />
int i ;<br />
for (i=1;i&lt;9;++i)<br />
cout&lt;&lt;&quot;Die Note von der Uebungsaufgabe Nr.&quot; &lt;&lt; i &lt;&lt; &quot; eigeben \n&quot; ; // ich will jetzt die 8 noten eingeben der compiler zeigt den vorherigen Satz 8 Mal hinter einander !! Kann jemand mir bei dem Punkt helfen ??</p>
<p>}</p>
<p>DANKE IM VORAUS<br />
A.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/236886/brauche-dringed-hilfe</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 16:03:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/236886.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 21 Mar 2009 13:51:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Brauche dringed Hilfe on Sat, 21 Mar 2009 13:51:15 GMT]]></title><description><![CDATA[<p>Hallo Leute ich versuche jetzt ein Programm mit c++ zu schreiben welches nach vor und nachmae fragt und danach soll der Benutzer Klausur Noten ,Referat Noten und 8 Übungsaufgaben Noten eingeben und dannach den Notendurchshnitt berechnen .. mein Problem liegt bei der Eingabe von den 8 Noten ..<br />
DAS IST MEIN PROGRAMM</p>
<p>#include&lt;iostream&gt;<br />
#include&lt;vector&gt;<br />
#include&lt;string&gt;<br />
using namespace std ;<br />
void main ()<br />
{<br />
char name ; // der compiler akziptiert keine string vraiable warum ?</p>
<p>float refratnote,klausurnote ;<br />
vector &lt;float&gt; uebungsnote ;<br />
cout&lt;&lt;&quot;Nachname,Vorname eingeben ... \n&quot; ;<br />
cin&gt;&gt; name ;<br />
cout &lt;&lt;&quot;Klausurnote eingeben :- \n&quot; ;<br />
cin&gt;&gt; klausurnote ;<br />
cout &lt;&lt;&quot;Refratnote eingeben :- \n&quot; ;<br />
cin &gt;&gt; refratnote ;<br />
int i ;<br />
for (i=1;i&lt;9;++i)<br />
cout&lt;&lt;&quot;Die Note von der Uebungsaufgabe Nr.&quot; &lt;&lt; i &lt;&lt; &quot; eigeben \n&quot; ; // ich will jetzt die 8 noten eingeben der compiler zeigt den vorherigen Satz 8 Mal hinter einander !! Kann jemand mir bei dem Punkt helfen ??</p>
<p>}</p>
<p>DANKE IM VORAUS<br />
A.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1683779</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1683779</guid><dc:creator><![CDATA[hamdy]]></dc:creator><pubDate>Sat, 21 Mar 2009 13:51:15 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche dringed Hilfe on Sat, 21 Mar 2009 16:28:28 GMT]]></title><description><![CDATA[<p>Hmmm okayyy <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Ich nehme mich der Sache einmal an. Codetags + Formatierung:</p>
<pre><code class="language-cpp">#include&lt;iostream&gt; 
#include&lt;vector&gt; 
#include&lt;string&gt; 
using namespace std ; 

void main () 
{ 
    char name ; // der compiler akziptiert keine string vraiable warum ? 
    float refratnote,klausurnote ; 
    vector &lt;float&gt; uebungsnote ; 
    cout&lt;&lt;&quot;Nachname,Vorname eingeben ... \n&quot; ; 
    cin&gt;&gt; name ; 
    cout &lt;&lt;&quot;Klausurnote eingeben :- \n&quot; ; 
    cin&gt;&gt; klausurnote ; 
    cout &lt;&lt;&quot;Refratnote eingeben :- \n&quot; ; 
    cin &gt;&gt; refratnote ; 
    int i ; 
    for (i=1;i&lt;9;++i) 
        cout&lt;&lt;&quot;Die Note von der Uebungsaufgabe Nr.&quot; &lt;&lt; i &lt;&lt; &quot; eigeben \n&quot; ; // ich will jetzt die 8 noten eingeben der compiler zeigt den vorherigen Satz 8 Mal hinter einander !! Kann jemand mir bei dem Punkt helfen ?? 
}
</code></pre>
<p>So, und nun einige Kommentare zum Quellcode.</p>
<ol>
<li><code>void main()</code> gibt es nicht; benutze <code>int main()</code> .</li>
<li><code>char</code> ist nur ein einzelnes Zeichen, du musst schon einen <code>std::string</code> benutzen. Der Compiler, wenn er denn taugt, wird dies akzeptieren. Einlesen kannst du Zeilenweise mit <code>getline</code> .</li>
</ol>
<blockquote>
<p>.. mein Problem liegt bei der Eingabe von den 8 Noten ..</p>
</blockquote>
<p><em>Was</em> ist dein Problem? Du musst für die Eingabe auch eine <code>for</code> -Schleife bauen und bei jeder Iteration die beiden Noten im <code>vector</code> speichern. Nur so kannst du am Ende wieder alle ausgeben...</p>
<p>BTW, falsches Forum...</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1683866</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1683866</guid><dc:creator><![CDATA[*rant*]]></dc:creator><pubDate>Sat, 21 Mar 2009 16:28:28 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche dringed Hilfe on Sat, 21 Mar 2009 17:31:36 GMT]]></title><description><![CDATA[<p>Ausserdem ist es das falsche Forum.<br />
C++ wäre korrekt.</p>
<p>Simon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1683915</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1683915</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Sat, 21 Mar 2009 17:31:36 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche dringed Hilfe on Sat, 21 Mar 2009 19:46:45 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/1683967</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1683967</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sat, 21 Mar 2009 19:46:45 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche dringed Hilfe on Sat, 21 Mar 2009 21:27:49 GMT]]></title><description><![CDATA[<p>Hallo</p>
<blockquote>
<p>1. void main() gibt es nicht; benutze int main().</p>
</blockquote>
<p>Das nach dem Semikolon ist OK, dass da hinter nicht ganz. Es gibt es schon, nur ist es auf eine gewisse Weise illegal.</p>
<blockquote>
<p>5.1.2.2.1 Program startup<br />
The function called at program startup is named main. The implementation declares no<br />
prototype for this function. It shall be defined with a return type of int and with no<br />
parameters:<br />
int main(void) { /* ... */ }<br />
or with two parameters (referred to here as argc and argv, though any names may be<br />
used, as they are local to the function in which they are declared):<br />
int main(int argc, char *argv[]) { /* ... */ }<br />
or equivalent;8) or in some other implementation-defined manner.<br />
If they are declared, the parameters to the main function shall obey the following<br />
constraints:<br />
— The value of argc shall be nonnegative.<br />
— argv[argc] shall be a null pointer.<br />
— If the value of argc is greater than zero, the array members argv[0] through<br />
argv[argc-1] inclusive shall contain pointers to strings, which are given<br />
implementation-defined values by the host environment prior to program startup. The<br />
intent is to supply to the program information determined prior to program startup<br />
from elsewhere in the hosted environment. If the host environment is not capable of<br />
supplying strings with letters in both uppercase and lowercase, the implementation<br />
shall ensure that the strings are received in lowercase.<br />
— If the value of argc is greater than zero, the string pointed to by argv[0]<br />
represents the program name; argv[0][0] shall be the null character if the<br />
program name is not available from the host environment. If the value of argc is<br />
greater than one, the strings pointed to by argv[1] through argv[argc-1]<br />
represent the program parameters.<br />
— The parameters argc and argv and the strings pointed to by the argv array shall<br />
be modifiable by the program, and retain their last-stored values between program<br />
startup and program termination.</p>
</blockquote>
<p>Mfg.<br />
way</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1684014</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1684014</guid><dc:creator><![CDATA[Kóyaánasqatsi]]></dc:creator><pubDate>Sat, 21 Mar 2009 21:27:49 GMT</pubDate></item></channel></rss>