<?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[Parameterübergabe bei c++]]></title><description><![CDATA[<p>Hallo liebe c++-Freunde,<br />
hab ein klitze kleines Problem beim Verstehen mit der Parameterübergabe,<br />
unzwar bräuchte ich ein lösungsbeispiel für folgendes Problem(bitte schickt mich nicht in irgendwelche tutorials weil ich da schon alles durchgelesen habe und es immernoch nicht verstanden habe) unzwar soll ich:<br />
-ein auto hat die eigenschaften marke,farbe,leistung:<br />
struct kfz<br />
{<br />
string farbe,marke;<br />
float leistung;<br />
}</p>
<p>hab ich verstanden<br />
-doch jetzt soll ich eine eingabefunktion schreiben um die daten in eine variable des kfz typs eingeben zu können, und die variablen sollen der funktion als parameter übergeben werden. - wie mache ich das(keine objektorientierte programmierung)</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/159057/parameterübergabe-bei-c</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 07:44:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/159057.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Sep 2006 15:30:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 15:30:09 GMT]]></title><description><![CDATA[<p>Hallo liebe c++-Freunde,<br />
hab ein klitze kleines Problem beim Verstehen mit der Parameterübergabe,<br />
unzwar bräuchte ich ein lösungsbeispiel für folgendes Problem(bitte schickt mich nicht in irgendwelche tutorials weil ich da schon alles durchgelesen habe und es immernoch nicht verstanden habe) unzwar soll ich:<br />
-ein auto hat die eigenschaften marke,farbe,leistung:<br />
struct kfz<br />
{<br />
string farbe,marke;<br />
float leistung;<br />
}</p>
<p>hab ich verstanden<br />
-doch jetzt soll ich eine eingabefunktion schreiben um die daten in eine variable des kfz typs eingeben zu können, und die variablen sollen der funktion als parameter übergeben werden. - wie mache ich das(keine objektorientierte programmierung)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135303</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135303</guid><dc:creator><![CDATA[Ahramys]]></dc:creator><pubDate>Mon, 11 Sep 2006 15:30:09 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 15:40:23 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream.h&gt;
#include &lt;stl&gt;

struct Kfz 
{ 
    std::string farbe,marke; 
    float leistung; 
}

void meine_funktion(Kfz kfz) { }

int main(char** params)
{
    Kfz kfz;
    cin &gt;&gt; kfz.farbe;
    cin &gt;&gt; kfz.marke;
    cin &gt;&gt; kfz.leistung;

    mein_funktion(kfz);
}
</code></pre>
<p>so oder habe ich was falsch ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135310</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135310</guid><dc:creator><![CDATA[DEvent]]></dc:creator><pubDate>Mon, 11 Sep 2006 15:40:23 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 15:50:05 GMT]]></title><description><![CDATA[<p>DEvent schrieb:</p>
<blockquote>
<p>so oder habe ich was falsch ?</p>
</blockquote>
<pre><code class="language-cpp">#include &lt;iostream&gt; //ohne .h
//#include &lt;stl&gt; Was ist denn das?
#include &lt;string&gt; //den hier nicht vergessen

using namespace std;

struct Kfz
{
    std::string farbe, marke;
    float leistung;
}

//Besser konstante Referenz nehmen, aber dein Ansatz war auch korrekt. 
void meine_funktion(const Kfz &amp;kfz) { }

//Wenn schon Parameter an main, dann richtig
int main(int argc, char **argv)
{
    Kfz kfz;
    cin &gt;&gt; kfz.farbe;
    cin &gt;&gt; kfz.marke;
    cin &gt;&gt; kfz.leistung;

    meine_funktion(kfz);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1135318</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135318</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Mon, 11 Sep 2006 15:50:05 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 15:56:04 GMT]]></title><description><![CDATA[<p>hört sich vielleicht komisch an aber ich verstehe es nicht ganz könntest du es vielleicht erläutern ????</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135324</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135324</guid><dc:creator><![CDATA[Ahramys]]></dc:creator><pubDate>Mon, 11 Sep 2006 15:56:04 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 16:11:59 GMT]]></title><description><![CDATA[<p>passt auf ich hab es so gemacht(es funktioniert doch hier ist es ohne parameterübergabe):</p>
<p>#include &lt;conio.h&gt;<br />
#include &lt;iostream&gt;</p>
<p>using namespace std;</p>
<p>struct kfz<br />
{<br />
string marke,farbe;<br />
int anzahl,baujahr,nr;<br />
float leistung_ps;</p>
<p>void eingeben()<br />
{<br />
cout&lt;&lt;&quot;####Eingabe####\n&quot;;cout&lt;&lt;&quot;\n&quot;;<br />
cout&lt;&lt;&quot;Marke: &quot;;cin&gt;&gt;marke;<br />
cout&lt;&lt;&quot;Farbe: &quot;;cin&gt;&gt;farbe;<br />
cout&lt;&lt;&quot;Leistung in PS: &quot;;cin&gt;&gt;leistung_ps;<br />
cout&lt;&lt;&quot;Anzahl der Tueren: &quot;;cin&gt;&gt;anzahl;<br />
cout&lt;&lt;&quot;Baujahr: &quot;;cin&gt;&gt;baujahr;<br />
cout&lt;&lt;&quot;InventarNr: &quot;;cin&gt;&gt;nr;<br />
};<br />
void ausgeben()<br />
{<br />
cout&lt;&lt;&quot;####AUSGABE####\n&quot;;cout&lt;&lt;&quot;\n&quot;;<br />
cout&lt;&lt;&quot;Marke: &quot;&lt;&lt;marke&lt;&lt;&quot;\n&quot;;<br />
cout&lt;&lt;&quot;Farbe: &quot;&lt;&lt;farbe&lt;&lt;&quot;\n&quot;;<br />
cout&lt;&lt;&quot;Leistung in PS: &quot;&lt;&lt;leistung_ps&lt;&lt;&quot;\n&quot;;<br />
cout&lt;&lt;&quot;Anzahl der Tueren: &quot;&lt;&lt;anzahl&lt;&lt;&quot;\n&quot;;<br />
cout&lt;&lt;&quot;Baujahr: &quot;&lt;&lt;baujahr&lt;&lt;&quot;\n&quot;;<br />
cout&lt;&lt;&quot;InventarNr: &quot;&lt;&lt;nr&lt;&lt;&quot;\n&quot;;<br />
cout&lt;&lt;&quot;Leistung in kW: &quot;&lt;&lt;leistung_ps*0.735&lt;&lt;&quot;\n&quot;;<br />
};</p>
<p>};</p>
<p>int main()<br />
{<br />
kfz auto1;<br />
auto1.eingeben();<br />
auto1.ausgeben();<br />
getch();<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135336</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135336</guid><dc:creator><![CDATA[Ahramys]]></dc:creator><pubDate>Mon, 11 Sep 2006 16:11:59 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 16:55:50 GMT]]></title><description><![CDATA[<p>hallo??<br />
kann mir jemand sagen wie ich das jetzt verändern muss um es mit parameterübergabe zu machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135364</guid><dc:creator><![CDATA[Ahramys]]></dc:creator><pubDate>Mon, 11 Sep 2006 16:55:50 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 17:35:54 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=1819" rel="nofollow">rüdiger</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=8" rel="nofollow">Rund um die Programmierung</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" 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/1135394</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135394</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 11 Sep 2006 17:35:54 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 20:02:45 GMT]]></title><description><![CDATA[<p>Hehe jetzt hast du was nicht korrekt:</p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt; // hab ich aus Volkards C++-Kurs http://www.volkard.de/vcppkold/hello_world.html
#include &lt;string&gt;

using namespace std;  // wozu namespace wenn du std::string schreibst ?

struct Kfz 
{ 
    std::string farbe, marke;  // siehe oben
    float leistung; 
} 

// Ich wollt ein Noob nicht mit konstanten Referenzen verwirren
void meine_funktion(const Kfz &amp;kfz) { } 

// Bin Java gewöhnt :)
int main(int argc, char **argv) 
{ 
    Kfz kfz; 
    cin &gt;&gt; kfz.farbe; 
    cin &gt;&gt; kfz.marke; 
    cin &gt;&gt; kfz.leistung; 

    meine_funktion(kfz); 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1135488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135488</guid><dc:creator><![CDATA[DEvent]]></dc:creator><pubDate>Mon, 11 Sep 2006 20:02:45 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 20:01:37 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/13136">@Ahramys</a></p>
<p>ja ist doch korrekt, aber ich dacht du wollst nicht OOP <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<blockquote>
<p>hallo??<br />
kann mir jemand sagen wie ich das jetzt verändern muss um es mit parameterübergabe zu machen?</p>
</blockquote>
<p>Indem du die main-Funktion mit Parameter machst ?</p>
<pre><code class="language-cpp">//Wenn schon Parameter an main, dann richtig
int main(int argc, char **argv)
</code></pre>
<p>argc ist die Anzahl der Parameter, argv sind die Parameter.</p>
<pre><code class="language-cpp">if ( argc &gt; 0 )
{
   string param1 = new string(argv[0]);
}
</code></pre>
<p>ich hoff die Parameter sind null-terminiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135489</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135489</guid><dc:creator><![CDATA[DEvent]]></dc:creator><pubDate>Mon, 11 Sep 2006 20:01:37 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 20:20:20 GMT]]></title><description><![CDATA[<p><a href="http://volkard.de/Cpp/Tutorial/Grundlagen/Weiter_mit_dem_alten_Kurs/index.html" rel="nofollow">http://volkard.de/Cpp/Tutorial/Grundlagen/Weiter_mit_dem_alten_Kurs/index.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135497</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135497</guid><dc:creator><![CDATA[joomoo]]></dc:creator><pubDate>Mon, 11 Sep 2006 20:20:20 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 21:38:30 GMT]]></title><description><![CDATA[<p>Ich schreib jetzt mal weil ich glaube das du das meinst.</p>
<pre><code class="language-cpp">#include &lt;conio.h&gt; 
#include &lt;iostream&gt; 

using namespace std; 

struct kfz 
{ 
string marke,farbe; 
int anzahl,baujahr,nr; 
float leistung_ps; 

void eingeben(kfz Kfz) 
{ 
cout&lt;&lt;&quot;####Eingabe####\n&quot;;cout&lt;&lt;&quot;\n&quot;; 
cout&lt;&lt;&quot;Marke: &quot;;cin&gt;&gt;Kfz.marke; 
cout&lt;&lt;&quot;Farbe: &quot;;cin&gt;&gt;Kfz.farbe; 
cout&lt;&lt;&quot;Leistung in PS: &quot;;cin&gt;&gt;Kfz.leistung_ps; 
cout&lt;&lt;&quot;Anzahl der Tueren: &quot;;cin&gt;&gt;Kfz.anzahl; 
cout&lt;&lt;&quot;Baujahr: &quot;;cin&gt;&gt;Kfz.baujahr; 
cout&lt;&lt;&quot;InventarNr: &quot;;cin&gt;&gt;Kfz.nr; 
}; 
void ausgeben(kfz Kfz)
{ 
cout
cout&lt;&lt;&quot;Marke: &quot;&lt;&lt;Kfz.marke&lt;&lt;&quot;\n&quot;; 
cout&lt;&lt;&quot;Farbe: &quot;&lt;&lt;Kfz.farbe&lt;&lt;&quot;\n&quot;; 
cout&lt;&lt;&quot;Leistung in PS: &quot;&lt;&lt;Kfz.leistung_ps&lt;&lt;&quot;\n&quot;; 
cout&lt;&lt;&quot;Anzahl der Tueren: &quot;&lt;&lt;Kfz.anzahl&lt;&lt;&quot;\n&quot;; 
cout&lt;&lt;&quot;Baujahr: &quot;&lt;&lt;Kfz.baujahr&lt;&lt;&quot;\n&quot;; 
cout&lt;&lt;&quot;InventarNr: &quot;&lt;&lt;Kfz.nr&lt;&lt;&quot;\n&quot;; 
cout&lt;&lt;&quot;Leistung in kW: &quot;&lt;&lt;Kfz.leistung_ps*0.735&lt;&lt;&quot;\n&quot;; 
}; 

}; 

int main() 
{ 
kfz auto1; 
eingeben(auto1); 
ausgeben(auto1); 
getch(); 
}
</code></pre>
<p>Hoffe dich richtig verstanden zu haben</p>
<p>LG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135515</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135515</guid><dc:creator><![CDATA[Sascha_Thiel]]></dc:creator><pubDate>Mon, 11 Sep 2006 21:38:30 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 21:45:45 GMT]]></title><description><![CDATA[<p>Nein, das geht so nicht. Besser:</p>
<pre><code class="language-cpp">struct kfz
{
    string marke,farbe;
    int anzahl,baujahr,nr;
    float leistung_ps;
};

void eingeben(kfz&amp; Kfz)
{
cout&lt;&lt;&quot;####Eingabe####\n&quot;;cout&lt;&lt;&quot;\n&quot;;
cout&lt;&lt;&quot;Marke: &quot;;cin&gt;&gt;Kfz.marke;
cout&lt;&lt;&quot;Farbe: &quot;;cin&gt;&gt;Kfz.farbe;
cout&lt;&lt;&quot;Leistung in PS: &quot;;cin&gt;&gt;Kfz.leistung_ps;
cout&lt;&lt;&quot;Anzahl der Tueren: &quot;;cin&gt;&gt;Kfz.anzahl;
cout&lt;&lt;&quot;Baujahr: &quot;;cin&gt;&gt;Kfz.baujahr;
cout&lt;&lt;&quot;InventarNr: &quot;;cin&gt;&gt;Kfz.nr;
}

void ausgeben(const kfz&amp; Kfz)
{
cout&lt;&lt;&quot;Marke: &quot;&lt;&lt;Kfz.marke&lt;&lt;&quot;\n&quot;;
cout&lt;&lt;&quot;Farbe: &quot;&lt;&lt;Kfz.farbe&lt;&lt;&quot;\n&quot;;
cout&lt;&lt;&quot;Leistung in PS: &quot;&lt;&lt;Kfz.leistung_ps&lt;&lt;&quot;\n&quot;;
cout&lt;&lt;&quot;Anzahl der Tueren: &quot;&lt;&lt;Kfz.anzahl&lt;&lt;&quot;\n&quot;;
cout&lt;&lt;&quot;Baujahr: &quot;&lt;&lt;Kfz.baujahr&lt;&lt;&quot;\n&quot;;
cout&lt;&lt;&quot;InventarNr: &quot;&lt;&lt;Kfz.nr&lt;&lt;&quot;\n&quot;;
cout&lt;&lt;&quot;Leistung in kW: &quot;&lt;&lt;Kfz.leistung_ps*0.735&lt;&lt;&quot;\n&quot;;
}
</code></pre>
<p>Schon erstaunlich wieviele Fehler man in einem so kurzen Stück Code machen kann. Ich hoffe mal, daß ich alle gefunden habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135518</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135518</guid><dc:creator><![CDATA[Z2]]></dc:creator><pubDate>Mon, 11 Sep 2006 21:45:45 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 21:49:53 GMT]]></title><description><![CDATA[<p>sorry ist schon spät <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/1135519</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135519</guid><dc:creator><![CDATA[Sascha_Thiel]]></dc:creator><pubDate>Mon, 11 Sep 2006 21:49:53 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Mon, 11 Sep 2006 22:43:27 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/13609">@Sascha_Thiel</a> &amp;&amp; Z2: WTF ? Ist das nicht der gleiche Code wie von Ahramys ?<br />
Bis auf das von Z2 die 2 Funktionen jetzt ausserhalb des struct sind.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135534</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135534</guid><dc:creator><![CDATA[DEvent]]></dc:creator><pubDate>Mon, 11 Sep 2006 22:43:27 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Tue, 12 Sep 2006 04:43:06 GMT]]></title><description><![CDATA[<p>Er wollte doch die Parameter der Funktion Übergeben, das hat er in seinem Code ja nicht. Oder hab ich da was falsch verstanden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135546</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135546</guid><dc:creator><![CDATA[Sascha_Thiel]]></dc:creator><pubDate>Tue, 12 Sep 2006 04:43:06 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Tue, 12 Sep 2006 06:02:44 GMT]]></title><description><![CDATA[<p>oder gar so <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>
<pre><code class="language-cpp">struct KFZ
{
 string marke,farbe;
 float leistung_ps;
}kfz;

void eingabe(const string&amp; kfz_marke, const string&amp; kfz_farbe, const float&amp; kfz_leistung)
{
 kfz.marke = kfz_marke;
 kfz.farbe = kfz_farbe;
 kfz.leistung_ps = kfz_leistung;
}

void ausgabe()
{
 cout&lt;&lt;&quot;Hersteller: &quot;&lt;&lt;kfz.marke&lt;&lt;endl;
 cout&lt;&lt;&quot;Farbe:      &quot;&lt;&lt;kfz.farbe&lt;&lt;endl;
 cout&lt;&lt;&quot;Leistung:   &quot;&lt;&lt;kfz.leistung_ps&lt;&lt;endl;
}

int main(int argc, char* argv[])
{
 eingabe(&quot;VW&quot;,&quot;Silber&quot;,150);
 ausgabe();
 getch();
        return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1135555</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135555</guid><dc:creator><![CDATA[ser1al]]></dc:creator><pubDate>Tue, 12 Sep 2006 06:02:44 GMT</pubDate></item><item><title><![CDATA[Reply to Parameterübergabe bei c++ on Tue, 12 Sep 2006 09:24:56 GMT]]></title><description><![CDATA[<p>DEvent schrieb:</p>
<blockquote>
<p>Hehe jetzt hast du was nicht korrekt:</p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt; // hab ich aus Volkards C++-Kurs http://www.volkard.de/vcppkold/hello_world.html
</code></pre>
</blockquote>
<p>Das ist *definitiv* veraltet, letzte Änderung war 08/25/00. iostream.h geht einfach nicht mehr.</p>
<blockquote>
<p>#include &lt;string&gt;</p>
<p>using namespace std; // wozu namespace wenn du std::string schreibst ?</p>
</blockquote>
<p>Macht der Gewohnheit, normalerweise hab ich kein using drin, in dem Fall drinlassen. Sonst müssen wir std::cin schreiben <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>
<blockquote>
<p>// Bin Java gewöhnt <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>
<pre><code class="language-cpp">int main(int argc, char **argv)
</code></pre>
</blockquote>
<p>Da heißt's aber</p>
<pre><code class="language-java">public class Foo
  public static void main(String []args) {

  }
}
</code></pre>
<p>:p <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>
<p>passt schon...</p>
<p>MfG</p>
<p>GPC</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135612</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135612</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Tue, 12 Sep 2006 09:24:56 GMT</pubDate></item></channel></rss>