<?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[Schleife zur Objektinstanzierung]]></title><description><![CDATA[<p>hallo,<br />
Ich muss mich jetzt mal hier posten da ich auf mein (Anfänger) Problem keine Lösung finden kann.</p>
<p>Zur Aufgabenstellung: Man solle eine Hotelzimmerverwaltung in C++ realisieren.</p>
<p>nun möchte ich Mit hilfe einer for-Schleife:</p>
<pre><code class="language-cpp">int i;

for (i=1; i&lt;=10; i++){         
ZIMMER EZi(0,i,50,&quot;EZ&quot;);
}

for (i=11; i&lt;=20; i++){
ZIMMER DZi(0,i,70,&quot;DZ&quot;);

}
</code></pre>
<p>den Konstruktor:</p>
<pre><code class="language-cpp">ZIMMER::ZIMMER(bool Z_BEL, int Z_NR, int Z_PREIS, string Z_TYP)
{
   string EZ_GASTN;  
   int Intfelde[]={Z_GASTT, Z_PREIS};                    

   cout&lt;&lt;Z_TYP&lt;&lt;&quot; erzeugt! Zimmernummer:&quot;&lt;&lt;Z_NR&lt;&lt;&quot; Preis pro Nacht: &quot;&lt;&lt;Z_PREIS&lt;&lt;endl; 
}
</code></pre>
<p>10 Einzel und 10 Doppelzimmer erstellen lassen.</p>
<p>Wenn ich aber nun die Objekte mithilfe dieser Schleifen:</p>
<pre><code>for (i=1;i&lt;=10;i++){

 EZi.ZIMMER_BELEGUNG_CHECK();
 cout&lt;&lt;EZ1.Z_NR&lt;&lt;&quot; ist nicht Belegt;
}

for (i=11;i&lt;=20;i++){
 DZi.ZIMMER_BELEGUNG_CHECK();
 cout&lt;&lt;DZi.Z_NR&lt;&lt;&quot; ist nicht Belegt&quot;;                                             
 }
</code></pre>
<p>nach leeren Zimmern suchen lasse, spuckt mir der Compiler einen Fehler aus das EZi natürlich undeclared ist. Meine frage ist wie die Objekte denn dann Bennant sind.</p>
<p>Fals ich was wichtiges vergessen habe (oder den ganzen code posten soll bitte ich um Rückmeldung).</p>
<p>danke schonmal im Voraus <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/topic/297580/schleife-zur-objektinstanzierung</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 07:29:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/297580.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Jan 2012 14:55:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Mon, 02 Jan 2012 14:55:20 GMT]]></title><description><![CDATA[<p>hallo,<br />
Ich muss mich jetzt mal hier posten da ich auf mein (Anfänger) Problem keine Lösung finden kann.</p>
<p>Zur Aufgabenstellung: Man solle eine Hotelzimmerverwaltung in C++ realisieren.</p>
<p>nun möchte ich Mit hilfe einer for-Schleife:</p>
<pre><code class="language-cpp">int i;

for (i=1; i&lt;=10; i++){         
ZIMMER EZi(0,i,50,&quot;EZ&quot;);
}

for (i=11; i&lt;=20; i++){
ZIMMER DZi(0,i,70,&quot;DZ&quot;);

}
</code></pre>
<p>den Konstruktor:</p>
<pre><code class="language-cpp">ZIMMER::ZIMMER(bool Z_BEL, int Z_NR, int Z_PREIS, string Z_TYP)
{
   string EZ_GASTN;  
   int Intfelde[]={Z_GASTT, Z_PREIS};                    

   cout&lt;&lt;Z_TYP&lt;&lt;&quot; erzeugt! Zimmernummer:&quot;&lt;&lt;Z_NR&lt;&lt;&quot; Preis pro Nacht: &quot;&lt;&lt;Z_PREIS&lt;&lt;endl; 
}
</code></pre>
<p>10 Einzel und 10 Doppelzimmer erstellen lassen.</p>
<p>Wenn ich aber nun die Objekte mithilfe dieser Schleifen:</p>
<pre><code>for (i=1;i&lt;=10;i++){

 EZi.ZIMMER_BELEGUNG_CHECK();
 cout&lt;&lt;EZ1.Z_NR&lt;&lt;&quot; ist nicht Belegt;
}

for (i=11;i&lt;=20;i++){
 DZi.ZIMMER_BELEGUNG_CHECK();
 cout&lt;&lt;DZi.Z_NR&lt;&lt;&quot; ist nicht Belegt&quot;;                                             
 }
</code></pre>
<p>nach leeren Zimmern suchen lasse, spuckt mir der Compiler einen Fehler aus das EZi natürlich undeclared ist. Meine frage ist wie die Objekte denn dann Bennant sind.</p>
<p>Fals ich was wichtiges vergessen habe (oder den ganzen code posten soll bitte ich um Rückmeldung).</p>
<p>danke schonmal im Voraus <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/2162904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2162904</guid><dc:creator><![CDATA[iP25]]></dc:creator><pubDate>Mon, 02 Jan 2012 14:55:20 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Mon, 02 Jan 2012 14:57:41 GMT]]></title><description><![CDATA[<p>ja mehr code wäre gut, ich verstehe nämlich nicht wirklich was du meinst...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2162908</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2162908</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Mon, 02 Jan 2012 14:57:41 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Mon, 02 Jan 2012 15:05:21 GMT]]></title><description><![CDATA[<p>iP25 schrieb:</p>
<blockquote>
<pre><code class="language-cpp">int i;

for (i=1; i&lt;=10; i++){         
ZIMMER EZi(0,i,50,&quot;EZ&quot;);
}
</code></pre>
</blockquote>
<p>Da wird 10mal eine Variable namens <code>EZi</code> angelegt und sofort wieder zerstört. Dass du das nicht willst ist klar, was du stattdessen willst aber nicht so ganz.</p>
<blockquote>
<pre><code class="language-cpp">ZIMMER::ZIMMER(bool Z_BEL, int Z_NR, int Z_PREIS, string Z_TYP)
{
   string EZ_GASTN;  
   int Intfelde[]={Z_GASTT, Z_PREIS};                    
                       
   cout&lt;&lt;Z_TYP&lt;&lt;&quot; erzeugt! Zimmernummer:&quot;&lt;&lt;Z_NR&lt;&lt;&quot; Preis pro Nacht: &quot;&lt;&lt;Z_PREIS&lt;&lt;endl; 
}
</code></pre>
</blockquote>
<p>Die beiden Variablen sind sinnlos, der Konstruktor macht nur eine Ausgabe. Sieht nicht so aus, als wär dir das klar.</p>
<blockquote>
<p>[code]<br />
for (i=1;i&lt;=10;i++){</p>
<p>EZi.ZIMMER_BELEGUNG_CHECK();<br />
cout&lt;&lt;EZ1.Z_NR&lt;&lt;&quot; ist nicht Belegt;<br />
}</p>
</blockquote>
<p>Kann ja nicht gehen, weil EZi an der Stelle weder existiert noch sichtbar ist.</p>
<p>Sieht leider so aus, als wär das ganze ein bisschen über deinem Level. Sowas wie Gültigkeitsbereiche von Variablen solltest du schonmal mindestens drauf haben. Außerdem müsstest du mal genauer drüber nachdenken, was eine Hotelzimmerverwaltung alles können muss, bevor du wild irgendwelche Variablen anlegst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2162909</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2162909</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Mon, 02 Jan 2012 15:05:21 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Mon, 02 Jan 2012 15:05:38 GMT]]></title><description><![CDATA[<p>okey dann hier mal der gesamte code: (ich hoffe er schaut nicht zu schlimm aus <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> )</p>
<pre><code class="language-cpp">#include &lt;cstdlib&gt;
#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std;

class ZIMMER {
               private: 
                      string Z_GASTN;  
                      int Z_GASTT;

               public:
                      bool Z_BEL;
                      int Z_PREIS, Z_NR;
                      ZIMMER(bool, int, int, string);
                      ZIMMER();
                      string Z_TYP;
                      int ZIMMER_BELEGUNG_CHECK();

                      //ZIMMER::ZIMMER_BELEGEN;
                      //ZIMMER::ZIMMER_INFO;                                                                                 
               };

ZIMMER::ZIMMER(bool Z_BEL, int Z_NR, int Z_PREIS, string Z_TYP){
                      string EZ_GASTN;  
                      int Intfelde[]={Z_GASTT, Z_PREIS};                    

                      cout&lt;&lt;Z_TYP&lt;&lt;&quot; erzeugt! Zimmernummer:&quot;&lt;&lt;Z_NR&lt;&lt;&quot; Preis pro Nacht: &quot;&lt;&lt;Z_PREIS&lt;&lt;endl; 
}

int ZIMMER::ZIMMER_BELEGUNG_CHECK(){return Z_BEL;};

int Zimmer_Ini(){

}

int Menu(){
               int i;

                     for (i=1; i&lt;=10; i++){

                         ZIMMER EZi(0,i,50,&quot;EZ&quot;);

                         }

                     for (i=11; i&lt;=20; i++){

                         ZIMMER DZi(0,i,70,&quot;DZ&quot;);
                         }

               int wahlm;

               cout&lt;&lt;&quot;1. Ausgabe der freien/belegten/aller Zimmer.&quot;&lt;&lt;endl;
               cout&lt;&lt;&quot;2. Zimmer belegen/freigeben.&quot;&lt;&lt;endl;
               cout&lt;&lt;&quot;3. Rechnung ausgeben.&quot;&lt;&lt;endl;
               cout&lt;&lt;&quot;4. Zimmer suchen.&quot;&lt;&lt;endl;
               cout&lt;&lt;&quot;5. Ende&quot;&lt;&lt;endl;

               cin&gt;&gt;wahlm;

               switch(wahlm){
                             case 1:

                             int wahlm1;

                             cout&lt;&lt;&quot;1. Ausgabe der freien Zimmer.&quot;&lt;&lt;endl;
                             cout&lt;&lt;&quot;2. Ausgabe der belegten Zimmer.&quot;&lt;&lt;endl;
                             cout&lt;&lt;&quot;3. Ausgabe aller Zimmer.&quot;&lt;&lt;endl;

                             cin&gt;&gt;wahlm1;

                             switch(wahlm1){
                                            case 1:
                                                for (i=1;i&lt;=10;i++){
                                                EZi.ZIMMER_BELEGUNG_CHECK();
                                                cout&lt;&lt;EZi.Z_NR&lt;&lt;&quot; ist nicht Belegt&quot;;
                                                }

                                                for (i=11;i&lt;=20;i++){
                                                DZi.ZIMMER_BELEGUNG_CHECK();
                                                cout&lt;&lt;DZi.Z_NR&lt;&lt;&quot; ist nicht Belegt&quot;;                                             
                                                }

                                                 break;

                                            case 2:

                                                 break;

                                            case 3:

                                                 break;
                                            }

                             break;

                             case 2:// ZIMMER::ZIMMER_BELEGEN();

                             break;

                             case 3: 

                             break;

                             case 4:// ZIMMER::ZIMMER_INFO();

                             break;
                             }
}

int main()
{
    Zimmer_Ini();
    system(&quot;PAUSE&quot;);
    system(&quot;cls&quot;);

    Menu();    

    system(&quot;PAUSE&quot;);
    return 1;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2162910</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2162910</guid><dc:creator><![CDATA[iP25]]></dc:creator><pubDate>Mon, 02 Jan 2012 15:05:38 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Mon, 02 Jan 2012 15:14:08 GMT]]></title><description><![CDATA[<p>da hat bashar recht, das liegt wohl echt noch was über deinem kenntnisstand.</p>
<p>in deiner &quot;such&quot; schleife, da guckst du dir die zimmerbelegung an, aber du vergleichst es mit nichts und machst auch nichts mit dem zurückgegebenen wert ---&gt; effektiv passiert da <em>nichts</em></p>
<p>und ja wie schon gesagt wurde, schau dir mal gültigkeits und sichtbarkeitsbereiche von variablen an</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2162914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2162914</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Mon, 02 Jan 2012 15:14:08 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Mon, 02 Jan 2012 15:40:12 GMT]]></title><description><![CDATA[<p>Na dann klemm ich mich mal ans Buch und überarbeite die Sache nochmal. <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>
]]></description><link>https://www.c-plusplus.net/forum/post/2162929</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2162929</guid><dc:creator><![CDATA[iP25]]></dc:creator><pubDate>Mon, 02 Jan 2012 15:40:12 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Tue, 03 Jan 2012 09:39:00 GMT]]></title><description><![CDATA[<p>Soweit ich das sehe, gehst du davon aus dass du nach dieser Schleife</p>
<pre><code class="language-cpp">for (i=1; i&lt;=10; i++){         
ZIMMER EZi(0,i,50,&quot;EZ&quot;);
}
</code></pre>
<p>10 Variablen mit den Namen EZ1,...,EZ10 hast. Das ist nicht der Fall, und auf diesen Weg funktioniert das auch nicht. Du musst dir die Objekte erzeugen und in einer Liste speichern um mit ihnen weiterarbeiten zu können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2163150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2163150</guid><dc:creator><![CDATA[Dudemeister]]></dc:creator><pubDate>Tue, 03 Jan 2012 09:39:00 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Wed, 04 Jan 2012 15:06:19 GMT]]></title><description><![CDATA[<p>ich hab mich nochmal drangesetzt, meine Klasse sieht jetzt so aus (vorerst):</p>
<pre><code class="language-cpp">class ZIMMER{
      private:
              int ZIMMER_NUMMER, ZIMMER_TYP, GAST_TAGE;
              string GAST_NAME;
              bool ZIMMER_BELEGUNG;

      public:
             ZIMMER();
             ZIMMER(int, int, bool, int, string); 

void ZIMMER_NUMMER_EINGEBEN(int Z_NR)
{
       ZIMMER_NUMMER=Z_NR;
};

void ZIMMER_TYP_EINGEBEN(int Z_TYP)
{
      ZIMMER_TYP=Z_TYP;                 
};

void GAST_TAGE_EINGEBEN(int G_TAGE)
{
     GAST_TAGE=G_TAGE;
};

void GAST_NAME_EINGEBEN(string G_NAME)
{
     GAST_NAME=G_NAME;     
};

void ZIMMER_BELEGUNG_EINGEBEN(bool Z_BELEGUNG)
{
     ZIMMER_BELEGUNG=Z_BELEGUNG;   
};

      };
</code></pre>
<p>die Anzahl der Objekte regle ich durch ein Feld:</p>
<pre><code class="language-cpp">int Zimmer[20];
</code></pre>
<p>die schleifen zur objekt instanzierung so:</p>
<pre><code class="language-cpp">int i=0;      

for(i=1;i &lt;=10; i++) {
        Zimmer[i].ZIMMER_TYP_EINGEBEN(10);

        Zimmer[i].ZIMMER_NUMMER_EINGEBEN(10+i);

        Zimmer[i].BELEGUNG_EINGEBEN(false);
        } ;

for(i=11;i &lt;=20; i++) {
        Zimmer[i].ZIMMER_TYP_EINGEBEN(20);

        Zimmer[i].ZIMMER_NUMMER_EINGEBEN(20+i);

        Zimmer[i].BELEGUNG_EINGEBEN(false);
        };
</code></pre>
<p>die Konstruktoren:</p>
<pre><code class="language-cpp">ZIMMER::ZIMMER()
{
ZIMMER(0,0,false,0,&quot; &quot;);                
};

ZIMMER::ZIMMER(int Z_NR, int Z_TYP, bool Z_BELEGUNG, int G_TAGE, string G_NAME)
{
ZIMMER_NUMMER_EINGEBEN(Z_NR);
ZIMMER_TYP_EINGEBEN(Z_TYP);
ZIMMER_BELEGUNG_EINGEBEN(Z_BELEGUNG);
GAST_TAGE_EINGEBEN(G_TAGE);
GAST_NAME_EINGEBEN(G_NAME);                   
};
</code></pre>
<p>wenn ich aber nun kompiliere heißt es:</p>
<pre><code>`ZIMMER_TYP_EINGEBEN' has not been declared
 request for member of non-aggregate type before '(' token
</code></pre>
<p>was ich nicht verstehe, da ich die Methode ja in der Klasse deklariert habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2163734</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2163734</guid><dc:creator><![CDATA[iP25]]></dc:creator><pubDate>Wed, 04 Jan 2012 15:06:19 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Wed, 04 Jan 2012 15:19:01 GMT]]></title><description><![CDATA[<p>~~Konstruktoren heißen wie die Klasse.</p>
<p>ZIMMER_NUMMER_EINGEBEN(Z_NR);<br />
ZIMMER_TYP_EINGEBEN(Z_TYP);<br />
ZIMMER_BELEGUNG_EINGEBEN(Z_BELEGUNG);<br />
GAST_TAGE_EINGEBEN(G_TAGE);<br />
GAST_NAME_EINGEBEN(G_NAME);</p>
<p>sind also keine Konstruktoren, sondern Funktionen und die brauchen einen Rückgabetyp und in der Signatur auch Typen (wie auch bei den Konstruktoren) und keine/nicht nur die Namen.~~<br />
Quark, hab die Klammern übersehen.<br />
Dann ist aber auch der erste Konstruktor falsch, da man einen Konstruktor so nicht in einem Konstruktor aufruft.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2163738</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2163738</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Wed, 04 Jan 2012 15:19:01 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Wed, 04 Jan 2012 15:18:58 GMT]]></title><description><![CDATA[<p>Du hast die Methoden definiert, aber nicht im Header deklariert.</p>
<pre><code class="language-cpp">class ZIMMER{
      private:
              int ZIMMER_NUMMER, ZIMMER_TYP, GAST_TAGE;
              string GAST_NAME;
              bool ZIMMER_BELEGUNG;

      public:
             ZIMMER();
             ZIMMER(int, int, bool, int, string);
             //hier Methoden deklarieren:
             void ZIMMER_NUMMER_EINGEBEN(int);
};

void ZIMMER::ZIMMER_NUMMER_EINGEBEN(int Z_NR)    //die Methode als Methode von Zimmer kennzeichnen.
{
       ZIMMER_NUMMER=Z_NR;
}    //Kein Semikolon
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2163739</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2163739</guid><dc:creator><![CDATA[kauflummi]]></dc:creator><pubDate>Wed, 04 Jan 2012 15:18:58 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Wed, 04 Jan 2012 15:16:58 GMT]]></title><description><![CDATA[<p>PS: Ich hoffe meine Antwort ist richtig. Ich stehe selbst noch zielich am Anfang meiner C++ Karriere.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2163740</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2163740</guid><dc:creator><![CDATA[kauflummi]]></dc:creator><pubDate>Wed, 04 Jan 2012 15:16:58 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Wed, 04 Jan 2012 17:04:03 GMT]]></title><description><![CDATA[<p>jetzt nochmal zum Verständnis</p>
<pre><code class="language-cpp">class ZIMMER {
      private:
              int ZIMMER_NUMMER,...;
              ...              

      public:
             ...

             void NUMMER_EINGEBEN(int); // Deklaration einer öffentl. Methode

             ...            

};

...  
void ZIMMER::NUMMER_EINGEBEN(int Z_NR){     //Definition einer Methode ausserhalb der Klasse
     ZIMMER_NUMMER = Z_NR;}
...
</code></pre>
<p>richtig?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2163767</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2163767</guid><dc:creator><![CDATA[iP25]]></dc:creator><pubDate>Wed, 04 Jan 2012 17:04:03 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Wed, 04 Jan 2012 17:18:23 GMT]]></title><description><![CDATA[<p>ja, vom prinzip her schon. wobei ich es bevorzuge auch in der deklaration (also in der header datei in der klasse) dem parameter einen namen gebe. du hast du jetzt in dem beispiel nur int stehen, da würd ich schon int Z_NR schreiben</p>
<p>kauflummi, deine antwort war leider falsch. das gleiche hat jockelx schon angesprochen und sich korrigiert. guck mal genau an, wie er was für klammern gesetzt hat <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="😉"
    /><br />
ja man siehts nicht sofort, ist was blöd formatiert</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/27053">@iP25</a>: dein array was du definiert hast. was für einen typ hat das, wie viele elemente hat es und wie heist es?</p>
<p>vielleicht kommst du dann selbst drauf <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>
]]></description><link>https://www.c-plusplus.net/forum/post/2163770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2163770</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Wed, 04 Jan 2012 17:18:23 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Wed, 04 Jan 2012 17:40:19 GMT]]></title><description><![CDATA[<p>Ich muss vermutlich eine Beziehung Zwischen der Klasse und dem Feld herstellen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2163779</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2163779</guid><dc:creator><![CDATA[iP25]]></dc:creator><pubDate>Wed, 04 Jan 2012 17:40:19 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Wed, 04 Jan 2012 19:37:45 GMT]]></title><description><![CDATA[<p>habs <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">ZIMMER Zimmer[19];
</code></pre>
<p>danke für den Tipp.</p>
<p>und sorry für Doppelpost (hab mich mittlerweile angemeldet <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/2163825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2163825</guid><dc:creator><![CDATA[iP25]]></dc:creator><pubDate>Wed, 04 Jan 2012 19:37:45 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Wed, 04 Jan 2012 23:22:54 GMT]]></title><description><![CDATA[<p>ICH MAG AUCH GROSZBUCHSTABEN</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2163877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2163877</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Wed, 04 Jan 2012 23:22:54 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Thu, 05 Jan 2012 10:29:18 GMT]]></title><description><![CDATA[<p>Stimmt, Großbuchstaben nutzt man meistens für Konstanten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2163982</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2163982</guid><dc:creator><![CDATA[kauflummi]]></dc:creator><pubDate>Thu, 05 Jan 2012 10:29:18 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Thu, 05 Jan 2012 13:45:06 GMT]]></title><description><![CDATA[<p>hat der Professor so eingeführt das wir KLASSEN so schreiben, dann hab ichs einfach mal übernommen <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/2164095</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2164095</guid><dc:creator><![CDATA[iP25]]></dc:creator><pubDate>Thu, 05 Jan 2012 13:45:06 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Thu, 05 Jan 2012 14:23:44 GMT]]></title><description><![CDATA[<p>Professoren sind grundsätzlich Idioten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2164118</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2164118</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Thu, 05 Jan 2012 14:23:44 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Thu, 05 Jan 2012 14:25:26 GMT]]></title><description><![CDATA[<p>314159265358979 schrieb:</p>
<blockquote>
<p>Professoren sind grundsätzlich Idioten.</p>
</blockquote>
<p>Pauschalisierungen kommen grundsätzlich von Idioten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2164120</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2164120</guid><dc:creator><![CDATA[Tachyon]]></dc:creator><pubDate>Thu, 05 Jan 2012 14:25:26 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife zur Objektinstanzierung on Thu, 05 Jan 2012 14:39:17 GMT]]></title><description><![CDATA[<p>Nachdem du dich ja nun bereits selbst gedisst hast, brauche ich das jetzt nicht mehr machen. Danke, dass du mir die Arbeit abnimmst <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2164130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2164130</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Thu, 05 Jan 2012 14:39:17 GMT</pubDate></item></channel></rss>