<?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[Structs]]></title><description><![CDATA[<p>hi all</p>
<pre><code class="language-cpp">struct mensch{char nachname[20];
			  char vorname [20];
			  char email   [20];
			  char geburtsjahr[20];};

char mensch_liste[5];

for(int zaehler=0;zaehler&lt;5;zaehler++)
{

	cout&lt;&lt;&quot;Geben Sie ihren Vornamen ein =&gt;&quot;;
	cin&gt;&gt;mensch_liste[0].vorname;
}
</code></pre>
<p>Kann mir mal hier einer erklären den Vornamen eingeben kann?<br />
denn so wie ich es geschrieben habe funzt es irgendwie nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/178556/structs</link><generator>RSS for Node</generator><lastBuildDate>Sun, 20 Sep 2026 21:28:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/178556.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Apr 2007 10:16:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Structs on Thu, 12 Apr 2007 10:16:20 GMT]]></title><description><![CDATA[<p>hi all</p>
<pre><code class="language-cpp">struct mensch{char nachname[20];
			  char vorname [20];
			  char email   [20];
			  char geburtsjahr[20];};

char mensch_liste[5];

for(int zaehler=0;zaehler&lt;5;zaehler++)
{

	cout&lt;&lt;&quot;Geben Sie ihren Vornamen ein =&gt;&quot;;
	cin&gt;&gt;mensch_liste[0].vorname;
}
</code></pre>
<p>Kann mir mal hier einer erklären den Vornamen eingeben kann?<br />
denn so wie ich es geschrieben habe funzt es irgendwie nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264470</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264470</guid><dc:creator><![CDATA[C_Style]]></dc:creator><pubDate>Thu, 12 Apr 2007 10:16:20 GMT</pubDate></item><item><title><![CDATA[Reply to Structs on Thu, 12 Apr 2007 10:18:50 GMT]]></title><description><![CDATA[<p>Du hast dein 'struct mensch;' definiert, warum nutzt du es dann nicht?</p>
<pre><code class="language-cpp">struct mensch{char nachname[20];
              char vorname [20];
              char email   [20];
              char geburtsjahr[20];};

mensch mensch_liste[5];
...
</code></pre>
<p>(btw, vielleicht solltest du die char-Arrays ersetzen durch std::string's)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264472</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264472</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 12 Apr 2007 10:18:50 GMT</pubDate></item><item><title><![CDATA[Reply to Structs on Thu, 12 Apr 2007 10:53:32 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">struct mensch{char nachname[20];
              char vorname [20];
              char email   [20];
              char geburtsjahr[20];};

mensch mensch_liste[5];
...
</code></pre>
<p>zumal wirst du bei deinem char array (email) probleme bekommen.<br />
z.b. <a href="mailto:JohannesKiberle@yahoo.de" rel="nofollow">JohannesKiberle@yahoo.de</a>'\0' wären 25 zeichen</p>
<p>dein geburtsjar hat maximal 4 stellen, vielleicht solltest du es mal auf</p>
<pre><code class="language-cpp">char geburtsjahr[5]
</code></pre>
<p>machen oder einfach einen short int benutzen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264495</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264495</guid><dc:creator><![CDATA[Stelfer]]></dc:creator><pubDate>Thu, 12 Apr 2007 10:53:32 GMT</pubDate></item><item><title><![CDATA[Reply to Structs on Thu, 12 Apr 2007 12:48:16 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-2822.html" rel="nofollow">SideWinder</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-13.html" rel="nofollow">DOS und Win32-Konsole</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/1264632</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264632</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Thu, 12 Apr 2007 12:48:16 GMT</pubDate></item></channel></rss>