<?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[structproblem]]></title><description><![CDATA[<p>bei dem programm schaff ichs nicht, eine variable anzahl von verkäufern zu programmieren, wenn ich noch &quot;int count&quot; einfüge, und die 9 durch den count ersetze, dann funktioniert es nicht, hat jemand einen tipp?</p>
<p>#include &lt;stdio.h&gt;<br />
struct eff<br />
{<br />
char nachname[20];<br />
char vorname[20];<br />
int umsatz;<br />
};<br />
struct eff verk_eff[9];<br />
int n_verk;<br />
int main()<br />
{</p>
<p>for (n_verk=0;n_verk&lt;=9;n_verk++)<br />
{<br />
printf(&quot;Bitte Nachnamen eingeben:\n&quot;);<br />
scanf(&quot;%s&quot;,verk_eff[n_verk].nachname);<br />
printf(&quot;Bitte Vorname eingeben:\n&quot;);<br />
scanf(&quot;%s&quot;,verk_eff[n_verk].vorname);<br />
printf(&quot;Bitte geben sie den Quartalsumsatz fuer das Jahr 2001 ein:\n&quot;);<br />
scanf(&quot;%d&quot;,&amp;verk_eff[n_verk].umsatz);<br />
}<br />
printf(&quot;Verkaufsbilanz:\n&quot;);<br />
for (n_verk=0;n_verk&lt;=9;n_verk++)<br />
{<br />
printf(&quot;Verkaeufer %s, %s hat Quartalsumsatz von %d Euro erwirtschaftet\n&quot;,verk_eff[n_verk].nachname,verk_eff[n_verk].vorname,verk_eff[n_verk].umsatz);<br />
}<br />
return 0;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/131839/structproblem</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 08:23:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/131839.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Jan 2006 12:51:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to structproblem on Fri, 06 Jan 2006 12:51:49 GMT]]></title><description><![CDATA[<p>bei dem programm schaff ichs nicht, eine variable anzahl von verkäufern zu programmieren, wenn ich noch &quot;int count&quot; einfüge, und die 9 durch den count ersetze, dann funktioniert es nicht, hat jemand einen tipp?</p>
<p>#include &lt;stdio.h&gt;<br />
struct eff<br />
{<br />
char nachname[20];<br />
char vorname[20];<br />
int umsatz;<br />
};<br />
struct eff verk_eff[9];<br />
int n_verk;<br />
int main()<br />
{</p>
<p>for (n_verk=0;n_verk&lt;=9;n_verk++)<br />
{<br />
printf(&quot;Bitte Nachnamen eingeben:\n&quot;);<br />
scanf(&quot;%s&quot;,verk_eff[n_verk].nachname);<br />
printf(&quot;Bitte Vorname eingeben:\n&quot;);<br />
scanf(&quot;%s&quot;,verk_eff[n_verk].vorname);<br />
printf(&quot;Bitte geben sie den Quartalsumsatz fuer das Jahr 2001 ein:\n&quot;);<br />
scanf(&quot;%d&quot;,&amp;verk_eff[n_verk].umsatz);<br />
}<br />
printf(&quot;Verkaufsbilanz:\n&quot;);<br />
for (n_verk=0;n_verk&lt;=9;n_verk++)<br />
{<br />
printf(&quot;Verkaeufer %s, %s hat Quartalsumsatz von %d Euro erwirtschaftet\n&quot;,verk_eff[n_verk].nachname,verk_eff[n_verk].vorname,verk_eff[n_verk].umsatz);<br />
}<br />
return 0;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/958678</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/958678</guid><dc:creator><![CDATA[mech3]]></dc:creator><pubDate>Fri, 06 Jan 2006 12:51:49 GMT</pubDate></item><item><title><![CDATA[Reply to structproblem on Fri, 06 Jan 2006 13:12:14 GMT]]></title><description><![CDATA[<p>Bist du dir sicher, dass dein Compiler C99 unterstützt? Wenn nicht kann ich dir den <a href="http://www.comeaucomputing.com" rel="nofollow">Comeau</a> empfehlen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/958704</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/958704</guid><dc:creator><![CDATA[User---]]></dc:creator><pubDate>Fri, 06 Jan 2006 13:12:14 GMT</pubDate></item><item><title><![CDATA[Reply to structproblem on Fri, 06 Jan 2006 13:26:22 GMT]]></title><description><![CDATA[<p>gcc unterstuetzt c99 und kostet nichts.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/958740</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/958740</guid><dc:creator><![CDATA[c.rackwitz]]></dc:creator><pubDate>Fri, 06 Jan 2006 13:26:22 GMT</pubDate></item><item><title><![CDATA[Reply to structproblem on Fri, 06 Jan 2006 14:54:18 GMT]]></title><description><![CDATA[<p>ja, aber kann mir jetzt auch jemand sagen, was an meiner lösung falsch ist, warum funktioniert es so nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/958822</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/958822</guid><dc:creator><![CDATA[mech3]]></dc:creator><pubDate>Fri, 06 Jan 2006 14:54:18 GMT</pubDate></item><item><title><![CDATA[Reply to structproblem on Fri, 06 Jan 2006 15:07:50 GMT]]></title><description><![CDATA[<p>der code sieht okay aus. wo ist das problem?</p>
<p>benutze [cpp] tags.</p>
<p>&lt;=9 muss zu &lt;9 werden. arrays gehen von 0 bis n-1 wenn n die laenge ist.</p>
<p>es heisst int main(void) oder int main(int argc, char **argv). das void muss da stehen, wenn nichts da stehen soll.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/958825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/958825</guid><dc:creator><![CDATA[c.rackwitz]]></dc:creator><pubDate>Fri, 06 Jan 2006 15:07:50 GMT</pubDate></item><item><title><![CDATA[Reply to structproblem on Fri, 06 Jan 2006 15:40:22 GMT]]></title><description><![CDATA[<p>ich bin anfänger bei c++, was sind cpp-tags?<br />
und wenn ich das auf &lt;9 mache, dann ist das eine endlosausgabe<br />
und das mit dem einfügen von &quot;int count;&quot; und dem ersetzen der 9 durch count funktioniert auch nicht, damit ich halt eine beliebige anzahl von verkäufern eingeben kann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/958874</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/958874</guid><dc:creator><![CDATA[mech3]]></dc:creator><pubDate>Fri, 06 Jan 2006 15:40:22 GMT</pubDate></item><item><title><![CDATA[Reply to structproblem on Fri, 06 Jan 2006 15:43:06 GMT]]></title><description><![CDATA[<p>In c++ gibts keine dyn stack-arrays. Da musst du das Array auf dem Free-Store anlegen.<br />
new[] und delete[] sind deine Freunde</p>
]]></description><link>https://www.c-plusplus.net/forum/post/958881</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/958881</guid><dc:creator><![CDATA[User---]]></dc:creator><pubDate>Fri, 06 Jan 2006 15:43:06 GMT</pubDate></item><item><title><![CDATA[Reply to structproblem on Fri, 06 Jan 2006 15:45:17 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">// [cpp]-tags sorgen fuer code-highlighting
</code></pre>
<p>mach einfach &lt;9 statt &lt;=9, okay? es ist richtig und da kommt auch keine endlosschleife raus.</p>
<p>in dem tutorial kannst du dir das kapitel ueber arrays raussuchen.<br />
<a href="http://tutorial.schornboeck.net/" rel="nofollow">http://tutorial.schornboeck.net/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/958883</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/958883</guid><dc:creator><![CDATA[c.rackwitz]]></dc:creator><pubDate>Fri, 06 Jan 2006 15:45:17 GMT</pubDate></item><item><title><![CDATA[Reply to structproblem on Fri, 06 Jan 2006 15:50:05 GMT]]></title><description><![CDATA[<p>ok, da war ein fehler bei mir im ablauf.....dankeschön, jetzt funktionierts endlich</p>
]]></description><link>https://www.c-plusplus.net/forum/post/958889</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/958889</guid><dc:creator><![CDATA[mech3]]></dc:creator><pubDate>Fri, 06 Jan 2006 15:50:05 GMT</pubDate></item><item><title><![CDATA[Reply to structproblem on Fri, 06 Jan 2006 19:01:49 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">kingruedi</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/959016</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/959016</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Fri, 06 Jan 2006 19:01:49 GMT</pubDate></item></channel></rss>