<?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[C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot;]]></title><description><![CDATA[<p>hallo!<br />
ich fasse mich lieber kurz:<br />
ich bin eher ein anfänger im bereich der c++ programmierung und schaffe es ständig mein programm mit mehr fatale fehlern zu erstellen als ein fehlerfreies. da mir die fehlersuche von visual studio nicht weiterhilft (beim doppelklick auf die fehlermeldung keine reaktion) frage ich mal hier nach hilfe.</p>
<p>das hauptprogramm (Titel: main.cpp):</p>
<pre><code>#include&quot;Funktionen.h&quot;
int ht,hm,hj,gt,gm,gj;
bool schaltcheck;
void main()
{

cout&lt;&lt;&quot;heute tag&quot;;cin&gt;&gt;ht;
cout&lt;&lt;&quot;heute monat&quot;;cin&gt;&gt;hm;
cout&lt;&lt;&quot;heute jahr&quot;;cin&gt;&gt;hj;
	cout&lt;&lt;&quot;geburtstag&quot;;cin&gt;&gt;gt;
	cout&lt;&lt;&quot;geburtsmonat&quot;;cin&gt;&gt;gm;
	cout&lt;&lt;&quot;geburtsjahr&quot;;cin&gt;&gt;gj;
	Schaltjahrescheck(hj,schaltcheck);
system(&quot;pause&quot;);
}
</code></pre>
<p>nun dass programm mit den unterprogrammen (Titel: up.cpp):</p>
<pre><code>#include&quot;Funktionen.h&quot;
bool Schaltjahrcheck(int hjup, bool tfup)
{
	if (hjup%4==0)
		{
			if(hjup%100!=0)
				{
					if(hjup%400==0)
						{
							tfup=true;
						}
				}
		}
	return(tfup);
}
</code></pre>
<p>und zuguterletzt der header (Titel: Funktionen.cpp):</p>
<pre><code>#include&lt;iostream&gt;
using namespace std;

	bool Schaltjahrescheck(int, bool);
</code></pre>
<p>ich gebs zu: ich würd den rechner am liebsten aus dem fenster schmeißen <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>
<p>hoffe jemand kann mir mitteilen was ich falsch mache</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/336692/c-hauptprogramm-unterprogramm-sowie-header-quot-fatal-error-lnk1120-1-nicht-aufgelöste-externe-quot</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 02:03:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/336692.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Feb 2016 11:57:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Thu, 11 Feb 2016 11:57:26 GMT]]></title><description><![CDATA[<p>hallo!<br />
ich fasse mich lieber kurz:<br />
ich bin eher ein anfänger im bereich der c++ programmierung und schaffe es ständig mein programm mit mehr fatale fehlern zu erstellen als ein fehlerfreies. da mir die fehlersuche von visual studio nicht weiterhilft (beim doppelklick auf die fehlermeldung keine reaktion) frage ich mal hier nach hilfe.</p>
<p>das hauptprogramm (Titel: main.cpp):</p>
<pre><code>#include&quot;Funktionen.h&quot;
int ht,hm,hj,gt,gm,gj;
bool schaltcheck;
void main()
{

cout&lt;&lt;&quot;heute tag&quot;;cin&gt;&gt;ht;
cout&lt;&lt;&quot;heute monat&quot;;cin&gt;&gt;hm;
cout&lt;&lt;&quot;heute jahr&quot;;cin&gt;&gt;hj;
	cout&lt;&lt;&quot;geburtstag&quot;;cin&gt;&gt;gt;
	cout&lt;&lt;&quot;geburtsmonat&quot;;cin&gt;&gt;gm;
	cout&lt;&lt;&quot;geburtsjahr&quot;;cin&gt;&gt;gj;
	Schaltjahrescheck(hj,schaltcheck);
system(&quot;pause&quot;);
}
</code></pre>
<p>nun dass programm mit den unterprogrammen (Titel: up.cpp):</p>
<pre><code>#include&quot;Funktionen.h&quot;
bool Schaltjahrcheck(int hjup, bool tfup)
{
	if (hjup%4==0)
		{
			if(hjup%100!=0)
				{
					if(hjup%400==0)
						{
							tfup=true;
						}
				}
		}
	return(tfup);
}
</code></pre>
<p>und zuguterletzt der header (Titel: Funktionen.cpp):</p>
<pre><code>#include&lt;iostream&gt;
using namespace std;

	bool Schaltjahrescheck(int, bool);
</code></pre>
<p>ich gebs zu: ich würd den rechner am liebsten aus dem fenster schmeißen <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>
<p>hoffe jemand kann mir mitteilen was ich falsch mache</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2486584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2486584</guid><dc:creator><![CDATA[Shimozukachi]]></dc:creator><pubDate>Thu, 11 Feb 2016 11:57:26 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Thu, 11 Feb 2016 11:59:11 GMT]]></title><description><![CDATA[<p>Schaltjahrescheck != Schaltjahrcheck</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2486585</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2486585</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Thu, 11 Feb 2016 11:59:11 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Thu, 11 Feb 2016 12:10:48 GMT]]></title><description><![CDATA[<p>MFK schrieb:</p>
<blockquote>
<p>Schaltjahrescheck != Schaltjahrcheck</p>
</blockquote>
<p>vielen dank <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/2486586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2486586</guid><dc:creator><![CDATA[Shimozukachi]]></dc:creator><pubDate>Thu, 11 Feb 2016 12:10:48 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Thu, 11 Feb 2016 12:23:48 GMT]]></title><description><![CDATA[<p>void main() ist müll, globale variablen auch, using namespace und unütz includierte header in headerdateien auch sowie sinnlose parameter. Und natürlich system() <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/2486587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2486587</guid><dc:creator><![CDATA[Techel]]></dc:creator><pubDate>Thu, 11 Feb 2016 12:23:48 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Thu, 11 Feb 2016 13:02:26 GMT]]></title><description><![CDATA[<p>roflo schrieb:</p>
<blockquote>
<p>void main() ist müll, globale variablen auch, using namespace und unütz includierte header in headerdateien auch sowie sinnlose parameter. Und natürlich system() <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>Bitte werde nicht wie Wutz.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2486594</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2486594</guid><dc:creator><![CDATA[Biolunar]]></dc:creator><pubDate>Thu, 11 Feb 2016 13:02:26 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Thu, 11 Feb 2016 13:04:54 GMT]]></title><description><![CDATA[<p>roflo schrieb:</p>
<blockquote>
<p>void main() ist müll, globale variablen auch, using namespace und unütz includierte header in headerdateien auch sowie sinnlose parameter. Und natürlich system() <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>solangs funktioniert <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_tongue"
      title=":P"
      alt="😛"
    /><br />
hab aktuell ein mathematisches problem. mir wird nach seit hinzufügen von (zeigt unterprogramm):</p>
<pre><code>int uptagedesjahres(int htup2,int hmup2,int vergangenetagejahr2,bool schaltcheckup2)
{

	for(int counter=0;counter&gt;=hmup2-1;counter++)
	{
					switch(counter)
						{case '1': vergangenetagejahr2=vergangenetagejahr2+31;
							break;
						case '2': vergangenetagejahr2=vergangenetagejahr2+28;
							break;
						case '3': vergangenetagejahr2=vergangenetagejahr2+31;
							break;
						case '4': vergangenetagejahr2=vergangenetagejahr2+30;
							break;
						case '5': vergangenetagejahr2=vergangenetagejahr2+31;
							break;
						case '6': vergangenetagejahr2=vergangenetagejahr2+30;
							break;
						case '7': vergangenetagejahr2=vergangenetagejahr2+31;
							break;
						case '8': vergangenetagejahr2=vergangenetagejahr2+31;
							break;
						case '9': vergangenetagejahr2=vergangenetagejahr2+30;
							break;
						case '10': vergangenetagejahr2=vergangenetagejahr2+31;
							break;
						case '11': vergangenetagejahr2=vergangenetagejahr2+30;
							break;
						case '12': vergangenetagejahr2=vergangenetagejahr2+31;
							break;
			if(schaltcheckup2==true)
				{
					if(counter=='2')
						{
							vergangenetagejahr2=vergangenetagejahr2+1;
						}
				}
			}
	}
	return(vergangenetagejahr2);
}
</code></pre>
<p>(header)</p>
<pre><code>int uptagedesjahres(int, int, int, bool);
</code></pre>
<p>(zum hauptprogramm hinzugefügt):</p>
<pre><code>int uptagedesjahres(int, int, int, bool);
cout&lt;&lt;&quot;bisher benötigte tage&quot;;cout&lt;&lt;vergangenetagimjahr&lt;&lt;endl;   //vergangenetageimjahr natürlicj zur deklaration hinzugefügt :D
</code></pre>
<p>immer 48 bei 'cout&lt;&lt;&quot;bisher benötigte tage&quot;;cout&lt;&lt;vergangenetageimjahr&lt;&lt;endl; angezeigt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2486595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2486595</guid><dc:creator><![CDATA[Shimozukachi]]></dc:creator><pubDate>Thu, 11 Feb 2016 13:04:54 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Thu, 11 Feb 2016 13:06:12 GMT]]></title><description><![CDATA[<p>'cout&lt;&lt;&quot;bisher benötigte tage&quot;;cout&lt;&lt;vergangenetageimjahr&lt;&lt;endl;' sry, letzte klammer vergessen. im skript einfach nur cout&lt;&lt;&quot;bisher benötigte tage&quot;;cout&lt;&lt;vergangenetageimjahr&lt;&lt;endl;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2486596</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2486596</guid><dc:creator><![CDATA[Shimozukachi]]></dc:creator><pubDate>Thu, 11 Feb 2016 13:06:12 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Thu, 11 Feb 2016 13:19:57 GMT]]></title><description><![CDATA[<p>der switch geht auch ein bischen knapper zu formulieren:</p>
<pre><code class="language-cpp">vector&lt;int&gt; v{ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
int month = 6;
int days2 = 14;
days2 += v[month - 1];
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2486597</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2486597</guid><dc:creator><![CDATA[klassenmethode]]></dc:creator><pubDate>Thu, 11 Feb 2016 13:19:57 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Thu, 11 Feb 2016 13:21:03 GMT]]></title><description><![CDATA[<p>Da stimmen mehrere Dinge nicht. Hier sollte wohl ein kleiner oder kleiner gleich stehen:</p>
<pre><code>for(int counter=0;counter&gt;=hmup2-1;counter++)
</code></pre>
<p>Dann wolltest du sicher keine Anführungszeichen bei deinen case haben weil das sonst kein <code>int</code> mehr ist sondern kein <code>char</code> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2486598</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2486598</guid><dc:creator><![CDATA[sebi707]]></dc:creator><pubDate>Thu, 11 Feb 2016 13:21:03 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Thu, 11 Feb 2016 13:46:46 GMT]]></title><description><![CDATA[<p>Biolunar schrieb:</p>
<blockquote>
<p>roflo schrieb:</p>
<blockquote>
<p>void main() ist müll, globale variablen auch, using namespace und unütz includierte header in headerdateien auch sowie sinnlose parameter. Und natürlich system() <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>Bitte werde nicht wie Wutz.</p>
</blockquote>
<p>Ach, Wutz würde das ganz anders machen <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>
<p>@TE: 'Solange es funktioniert' ist beim programmieren nicht gut. Klar, bei kleinen Testprogrammen kann man schon mal im design schlampen, Du solltest dir aber im klaren sein, warum konstrukte wie 'void main' etc. schlecht sind.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2486599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2486599</guid><dc:creator><![CDATA[Techel]]></dc:creator><pubDate>Thu, 11 Feb 2016 13:46:46 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Thu, 11 Feb 2016 17:42:32 GMT]]></title><description><![CDATA[<p>Shimozukachi schrieb:</p>
<blockquote>
<p>roflo schrieb:</p>
<blockquote>
<p>void main() ist müll, globale variablen auch, using namespace und unütz includierte header in headerdateien auch sowie sinnlose parameter. Und natürlich system() <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>solangs funktioniert <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_tongue"
      title=":P"
      alt="😛"
    /></p>
</blockquote>
<p>Das ist genau die Einstellung, mit der du in Probleme kommst. Es funktioniert eben nicht sehr lange und dann stehst du plötzlich ganz dumm da und kannst weder die resultierenden Fehler analysieren, noch beheben, noch wüsstest du, wie es überhaupt richtig ginge.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2486627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2486627</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 11 Feb 2016 17:42:32 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Fri, 12 Feb 2016 12:22:29 GMT]]></title><description><![CDATA[<p>klassenmethode schrieb:</p>
<blockquote>
<p>der switch geht auch ein bischen knapper zu formulieren:</p>
<pre><code class="language-cpp">vector&lt;int&gt; v{ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
int month = 6;
int days2 = 14;
days2 += v[month - 1];
</code></pre>
</blockquote>
<p>bin ein azubi, kein profi. soweit bin ich noch nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>SeppJ schrieb:</p>
<blockquote>
<p>Shimozukachi schrieb:</p>
<blockquote>
<p>roflo schrieb:</p>
<blockquote>
<p>void main() ist müll, globale variablen auch, using namespace und unütz includierte header in headerdateien auch sowie sinnlose parameter. Und natürlich system() <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>solangs funktioniert <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_tongue"
      title=":P"
      alt="😛"
    /></p>
</blockquote>
<p>Das ist genau die Einstellung, mit der du in Probleme kommst. Es funktioniert eben nicht sehr lange und dann stehst du plötzlich ganz dumm da und kannst weder die resultierenden Fehler analysieren, noch beheben, noch wüsstest du, wie es überhaupt richtig ginge.</p>
</blockquote>
<p>wie dann?<br />
ich komme immernoch nicht weiter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2486772</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2486772</guid><dc:creator><![CDATA[Shimozukachi]]></dc:creator><pubDate>Fri, 12 Feb 2016 12:22:29 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Fri, 12 Feb 2016 13:35:04 GMT]]></title><description><![CDATA[<p>Shimozukachi schrieb:</p>
<blockquote>
<p>bin ein azubi, kein profi. soweit bin ich noch nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
</blockquote>
<p>Arrays kennst du aber? Statt dem <code>vector&lt;int&gt; v{...}</code> könnte man genauso gut (eigentlich sogar besser) ein <code>int v[] = {...}</code> schreiben.</p>
<p>Shimozukachi schrieb:</p>
<blockquote>
<p>ich komme immernoch nicht weiter</p>
</blockquote>
<p>Wo hängst du denn jetzt fest?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2486782</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2486782</guid><dc:creator><![CDATA[sebi707]]></dc:creator><pubDate>Fri, 12 Feb 2016 13:35:04 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Wed, 17 Feb 2016 13:07:49 GMT]]></title><description><![CDATA[<p>sebi707 schrieb:</p>
<blockquote>
<p>Shimozukachi schrieb:</p>
<blockquote>
<p>bin ein azubi, kein profi. soweit bin ich noch nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
</blockquote>
<p>Arrays kennst du aber? Statt dem <code>vector&lt;int&gt; v{...}</code> könnte man genauso gut (eigentlich sogar besser) ein <code>int v[] = {...}</code> schreiben.</p>
<p>Shimozukachi schrieb:</p>
<blockquote>
<p>ich komme immernoch nicht weiter</p>
</blockquote>
<p>Wo hängst du denn jetzt fest?</p>
</blockquote>
<p>habe deinem tipp gefolgt.<br />
nun habe ich dieses unterprogramm</p>
<pre><code>int feld[12]={31,28,31,30,31,30,31,31,30,31,30,31};
	int tagedesjahresbisher=0;
	for(int counter=0;counter=hmajup-1;counter++)
	{
		tagedesjahresbisher+=feld[counter];		
	}
	tagedesjahresbisher=tagedesjahresbisher+htajup;
	return(tagedesjahresbisher);
</code></pre>
<p>auch schon mit</p>
<pre><code>tagedesjahresbisher=tagedesjahresbisher+htajup;
</code></pre>
<p>probiert. ständig hängt mein programm bei der rechnung fest <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2487557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2487557</guid><dc:creator><![CDATA[Shimozukachi]]></dc:creator><pubDate>Wed, 17 Feb 2016 13:07:49 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Wed, 17 Feb 2016 15:36:33 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>die Abbruchbedingung in der Schleife ist ja auch Quark! Da machst du ja auch eine Zuweisung und wenn &quot;hmajup-1&quot; nicht zufällig 0 ergibt, wird die Bedingung auch immer wahr sein. Die Variable &quot;hmajup&quot; ändert sich nie in der Schleife, so dass du counter immer den gleichen Wert zuweist, was auch schon fragwürdig ist, da counter ja an sich deine Zählervariable darstellt.</p>
<pre><code>for(int counter=0;counter=hmajup-1;counter++)
    {
        tagedesjahresbisher+=feld[counter];    
    }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2487569</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2487569</guid><dc:creator><![CDATA[OneNoob2Another]]></dc:creator><pubDate>Wed, 17 Feb 2016 15:36:33 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Sun, 21 Feb 2016 18:55:27 GMT]]></title><description><![CDATA[<p>OneNoob2Another schrieb:</p>
<blockquote>
<p>Hi,</p>
<p>die Abbruchbedingung in der Schleife ist ja auch Quark! Da machst du ja auch eine Zuweisung und wenn &quot;hmajup-1&quot; nicht zufällig 0 ergibt, wird die Bedingung auch immer wahr sein. Die Variable &quot;hmajup&quot; ändert sich nie in der Schleife, so dass du counter immer den gleichen Wert zuweist, was auch schon fragwürdig ist, da counter ja an sich deine Zählervariable darstellt.</p>
<pre><code>for(int counter=0;counter=hmajup-1;counter++)
    {
        tagedesjahresbisher+=feld[counter];    
    }
</code></pre>
</blockquote>
<p>teile mir dann doch bitte eine bessere mit <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/2488114</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2488114</guid><dc:creator><![CDATA[Shimozukachi]]></dc:creator><pubDate>Sun, 21 Feb 2016 18:55:27 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Sun, 21 Feb 2016 18:58:32 GMT]]></title><description><![CDATA[<p>counter &lt; 12</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2488117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2488117</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Sun, 21 Feb 2016 18:58:32 GMT</pubDate></item><item><title><![CDATA[Reply to C++ hauptprogramm, unterprogramm sowie header &amp;quot;fatal error LNK1120: 1 nicht aufgelöste Externe&amp;quot; on Sun, 21 Feb 2016 22:41:45 GMT]]></title><description><![CDATA[<p>Braunstein schrieb:</p>
<blockquote>
<p>counter &lt; 12</p>
</blockquote>
<p>es lebt! VIELEN DANK!!!! <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="😃"
    /> <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>for(int counter=0;counter &lt; 12;counter++)
	{
		if(hmajup&gt;=counter)
		{
		tagedesjahresbisher+=feld[counter];
		}
	}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2488148</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2488148</guid><dc:creator><![CDATA[Shimozukachi]]></dc:creator><pubDate>Sun, 21 Feb 2016 22:41:45 GMT</pubDate></item></channel></rss>