<?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[Programmieraufgabe: Functions, Templates, etc.]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich habe folgende Programmieraufgabe:</p>
<p>Write a program that<br />
• defines a structure Point holding a xcoordinate<br />
and a y-coordinate of a point<br />
• reads a number of point values from keyboard<br />
• stores those point elements in a vector called<br />
aPointCollection of type vector&lt;Point&gt;<br />
• defines a function calcCenterOfGraity(…)<br />
which calculates the centre of gravity<br />
(arithmetic average of x-coordinate and ycoordinate)<br />
of all points stored in the vector<br />
and extend it with:<br />
o functions getMinimumValue(bool x) and getMaximumValue(bool x) that return<br />
the minimum/maximum of all x-values (y-values) if parameter x is true (false)<br />
o a function removeNegative(…) that removes all points from the original vector<br />
that have any negative coordinate values (note: use call by reference)<br />
o Test all functions with outputs to the screens;</p>
<p>Leider stehe ich nun voll an und habe keine Ahnung mehr, was ich noch ausprobieren soll. <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="😞"
    /> Wäre super, wenn mir irgendjemand helfen könnte. <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>
<pre><code class="language-cpp">[cpp]//library includes
#include &lt;iostream&gt;
#include &lt;vector&gt;

using namespace std;

// Template for the function to calculate the Minimum Value
template &lt;typename T&gt; T MinimumValue(T a, T b)
{
  return (a&lt;b) ? a : b;
}

// Template for the function to calculate the Maximum Value
template &lt;typename T&gt; T MaximumValue(T a, T b)
{
  return (a&gt;b) ? a : b;
}

struct Point
{
	float xCoordinate;
	float yCoordinate;
};

// Function to calculate the Center of Gravity
float calcCenterOfGravity(vector&lt;Point&gt; aPointCollection)
{
	float CenterOfGravity;

	vector&lt;Point&gt;::iterator iter; // Definition of the iterator for vector Point 
	for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++) // Iterate through all elements of vector Point
	{
		CenterOfGravity = iter-&gt;xCoordinate/iter-&gt;yCoordinate; // Calculate the Center of Gravity
	}
	return CenterOfGravity;
}

// Function to find minimum element
float getMinimumValue(vector&lt;Point&gt; aPointCollection, char xy)
{
    bool check = (xy == 'x'); // Check if the bool Variable is true or false
	float Min;

	if (check)
	{
	vector&lt;Point&gt;::iterator iter;
	for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++)
		{
			Min = MinimumValue(iter-&gt;xCoordinate, iter-&gt;xCoordinate); // If check is true calculate the min of x
		}
	}
	else
	{
	vector&lt;Point&gt;::iterator iter;
	for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++)
		{
			Min = MinimumValue(iter-&gt;yCoordinate, iter-&gt;yCoordinate); // If check is false calculate the min of y
		}
	return Min;
	}
}

// Function to find maximum element
float getMaximumValue(vector&lt;Point&gt; aPointCollection, char xy)
{
    bool check = (xy == 'x'); // Check if the bool Variable is true or false
	float Max;

	if (check)
	{
	vector&lt;Point&gt;::iterator iter;
	for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++)
		{
			Max = MaximumValue(iter-&gt;xCoordinate, iter-&gt;xCoordinate); // If check is true calculate the min of x
		}
	}
	else
	{
	vector&lt;Point&gt;::iterator iter;
	for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++)
		{
			Max = MaximumValue(iter-&gt;yCoordinate, iter-&gt;yCoordinate); // If check is false calculate the min of y
		}
	return Max;
	}
}

// Function to remove negative elements
void removeNegative(vector&lt;Point&gt; aPointCollection)
{
	vector&lt;Point&gt;:: iterator iter;
    for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++)
    {
        if (&amp;iter &lt; 0) // Check if element is negative
		{
			aPointCollection.erase(iter); // Remove the negative elements
		}      
		else
		{
			cout &lt;&lt; &amp;iter &lt;&lt; endl; // Print of the positive elements
		}
	}
}

// main function
int main()
{
	Point aPoint;
	vector&lt;Point&gt; aPointCollection; // Definition of the Vector aPointCollection with type vector&lt;Point&gt;
	for (int count = 0; count &lt; 2; count++)
	{
		// Type in the x coordinate for all 3 variables
		cout &lt;&lt; &quot;Please enter the floating x coordinate for Variable &quot;&lt;&lt; count + 1 &lt;&lt; endl;
		cin &gt;&gt; aPoint.xCoordinate;

		// Type in the y coordinate for all 3 variables
		cout &lt;&lt; &quot;Please enter the floating y coordinate for Variable &quot;&lt;&lt; count + 1 &lt;&lt; endl;
		cin &gt;&gt; aPoint.yCoordinate;

		aPointCollection.push_back(aPoint);
		// Print the result on the screen
		cout &lt;&lt; endl &lt;&lt; &quot;The center of gravity of x and y is: &quot;;
		// Call of the calCenterOfGravity function
	    cout &lt;&lt; calcCenterOfGravity(aPointCollection) &lt;&lt; endl &lt;&lt; endl;
	}

	char xy; // Definition of the Bool Variable
	cout &lt;&lt; &quot;Please key in x or y for getting the minimum values: &quot;;
	cin &gt;&gt; xy;

	// Print and call of the getMinimumValue function
	cout &lt;&lt; &quot;The minimum value of &quot; &lt;&lt; xy &lt;&lt; &quot; is: &quot; &lt;&lt; getMinimumValue(aPointCollection, xy) &lt;&lt; endl;

	// Print and call of the getMaximumValue function
	cout &lt;&lt; &quot;The maximum value of &quot; &lt;&lt; xy &lt;&lt; &quot; is: &quot; &lt;&lt; getMaximumValue(aPointCollection, xy) &lt;&lt; endl;

	// Print and call of the getremoveNegative function

	cout &lt;&lt; &quot;After removing the negative values, the vector looks like this: &quot;;
	removeNegative(aPointCollection);

	cin &gt;&gt; xy;
	getchar();
	return EXIT_SUCCESS;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/295022/programmieraufgabe-functions-templates-etc</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 15:11:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/295022.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 05 Nov 2011 15:30:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Programmieraufgabe: Functions, Templates, etc. on Sat, 05 Nov 2011 15:30:31 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich habe folgende Programmieraufgabe:</p>
<p>Write a program that<br />
• defines a structure Point holding a xcoordinate<br />
and a y-coordinate of a point<br />
• reads a number of point values from keyboard<br />
• stores those point elements in a vector called<br />
aPointCollection of type vector&lt;Point&gt;<br />
• defines a function calcCenterOfGraity(…)<br />
which calculates the centre of gravity<br />
(arithmetic average of x-coordinate and ycoordinate)<br />
of all points stored in the vector<br />
and extend it with:<br />
o functions getMinimumValue(bool x) and getMaximumValue(bool x) that return<br />
the minimum/maximum of all x-values (y-values) if parameter x is true (false)<br />
o a function removeNegative(…) that removes all points from the original vector<br />
that have any negative coordinate values (note: use call by reference)<br />
o Test all functions with outputs to the screens;</p>
<p>Leider stehe ich nun voll an und habe keine Ahnung mehr, was ich noch ausprobieren soll. <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="😞"
    /> Wäre super, wenn mir irgendjemand helfen könnte. <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>
<pre><code class="language-cpp">[cpp]//library includes
#include &lt;iostream&gt;
#include &lt;vector&gt;

using namespace std;

// Template for the function to calculate the Minimum Value
template &lt;typename T&gt; T MinimumValue(T a, T b)
{
  return (a&lt;b) ? a : b;
}

// Template for the function to calculate the Maximum Value
template &lt;typename T&gt; T MaximumValue(T a, T b)
{
  return (a&gt;b) ? a : b;
}

struct Point
{
	float xCoordinate;
	float yCoordinate;
};

// Function to calculate the Center of Gravity
float calcCenterOfGravity(vector&lt;Point&gt; aPointCollection)
{
	float CenterOfGravity;

	vector&lt;Point&gt;::iterator iter; // Definition of the iterator for vector Point 
	for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++) // Iterate through all elements of vector Point
	{
		CenterOfGravity = iter-&gt;xCoordinate/iter-&gt;yCoordinate; // Calculate the Center of Gravity
	}
	return CenterOfGravity;
}

// Function to find minimum element
float getMinimumValue(vector&lt;Point&gt; aPointCollection, char xy)
{
    bool check = (xy == 'x'); // Check if the bool Variable is true or false
	float Min;

	if (check)
	{
	vector&lt;Point&gt;::iterator iter;
	for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++)
		{
			Min = MinimumValue(iter-&gt;xCoordinate, iter-&gt;xCoordinate); // If check is true calculate the min of x
		}
	}
	else
	{
	vector&lt;Point&gt;::iterator iter;
	for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++)
		{
			Min = MinimumValue(iter-&gt;yCoordinate, iter-&gt;yCoordinate); // If check is false calculate the min of y
		}
	return Min;
	}
}

// Function to find maximum element
float getMaximumValue(vector&lt;Point&gt; aPointCollection, char xy)
{
    bool check = (xy == 'x'); // Check if the bool Variable is true or false
	float Max;

	if (check)
	{
	vector&lt;Point&gt;::iterator iter;
	for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++)
		{
			Max = MaximumValue(iter-&gt;xCoordinate, iter-&gt;xCoordinate); // If check is true calculate the min of x
		}
	}
	else
	{
	vector&lt;Point&gt;::iterator iter;
	for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++)
		{
			Max = MaximumValue(iter-&gt;yCoordinate, iter-&gt;yCoordinate); // If check is false calculate the min of y
		}
	return Max;
	}
}

// Function to remove negative elements
void removeNegative(vector&lt;Point&gt; aPointCollection)
{
	vector&lt;Point&gt;:: iterator iter;
    for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++)
    {
        if (&amp;iter &lt; 0) // Check if element is negative
		{
			aPointCollection.erase(iter); // Remove the negative elements
		}      
		else
		{
			cout &lt;&lt; &amp;iter &lt;&lt; endl; // Print of the positive elements
		}
	}
}

// main function
int main()
{
	Point aPoint;
	vector&lt;Point&gt; aPointCollection; // Definition of the Vector aPointCollection with type vector&lt;Point&gt;
	for (int count = 0; count &lt; 2; count++)
	{
		// Type in the x coordinate for all 3 variables
		cout &lt;&lt; &quot;Please enter the floating x coordinate for Variable &quot;&lt;&lt; count + 1 &lt;&lt; endl;
		cin &gt;&gt; aPoint.xCoordinate;

		// Type in the y coordinate for all 3 variables
		cout &lt;&lt; &quot;Please enter the floating y coordinate for Variable &quot;&lt;&lt; count + 1 &lt;&lt; endl;
		cin &gt;&gt; aPoint.yCoordinate;

		aPointCollection.push_back(aPoint);
		// Print the result on the screen
		cout &lt;&lt; endl &lt;&lt; &quot;The center of gravity of x and y is: &quot;;
		// Call of the calCenterOfGravity function
	    cout &lt;&lt; calcCenterOfGravity(aPointCollection) &lt;&lt; endl &lt;&lt; endl;
	}

	char xy; // Definition of the Bool Variable
	cout &lt;&lt; &quot;Please key in x or y for getting the minimum values: &quot;;
	cin &gt;&gt; xy;

	// Print and call of the getMinimumValue function
	cout &lt;&lt; &quot;The minimum value of &quot; &lt;&lt; xy &lt;&lt; &quot; is: &quot; &lt;&lt; getMinimumValue(aPointCollection, xy) &lt;&lt; endl;

	// Print and call of the getMaximumValue function
	cout &lt;&lt; &quot;The maximum value of &quot; &lt;&lt; xy &lt;&lt; &quot; is: &quot; &lt;&lt; getMaximumValue(aPointCollection, xy) &lt;&lt; endl;

	// Print and call of the getremoveNegative function

	cout &lt;&lt; &quot;After removing the negative values, the vector looks like this: &quot;;
	removeNegative(aPointCollection);

	cin &gt;&gt; xy;
	getchar();
	return EXIT_SUCCESS;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2140758</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2140758</guid><dc:creator><![CDATA[MyMaus]]></dc:creator><pubDate>Sat, 05 Nov 2011 15:30:31 GMT</pubDate></item><item><title><![CDATA[Reply to Programmieraufgabe: Functions, Templates, etc. on Sat, 05 Nov 2011 15:36:41 GMT]]></title><description><![CDATA[<p>Ähhh LOL sind x und y Fließkommazahlen? Pixel werden aber mit ganz normalen Integern behandelt (oder sollten!).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2140761</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2140761</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 05 Nov 2011 15:36:41 GMT</pubDate></item><item><title><![CDATA[Reply to Programmieraufgabe: Functions, Templates, etc. on Sat, 05 Nov 2011 15:45:03 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>Ähhh LOL sind x und y Fließkommazahlen? Pixel werden aber mit ganz normalen Integern behandelt (oder sollten!).</p>
</blockquote>
<p>Ja, die x und y Zahlen sind Kommazahlen. Dürfte ja eigentlich auch Wurst sein, wenn ich sonst alles richtig definiere, oder etwa nicht?? <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>
]]></description><link>https://www.c-plusplus.net/forum/post/2140766</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2140766</guid><dc:creator><![CDATA[MyMaus]]></dc:creator><pubDate>Sat, 05 Nov 2011 15:45:03 GMT</pubDate></item><item><title><![CDATA[Reply to Programmieraufgabe: Functions, Templates, etc. on Sat, 05 Nov 2011 15:52:21 GMT]]></title><description><![CDATA[<p>Was ist hier eigentlich die Frage? <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>
]]></description><link>https://www.c-plusplus.net/forum/post/2140768</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2140768</guid><dc:creator><![CDATA[skellington]]></dc:creator><pubDate>Sat, 05 Nov 2011 15:52:21 GMT</pubDate></item><item><title><![CDATA[Reply to Programmieraufgabe: Functions, Templates, etc. on Sat, 05 Nov 2011 15:53:29 GMT]]></title><description><![CDATA[<p>MyMaus schrieb:</p>
<blockquote>
<p>Hacker schrieb:</p>
<blockquote>
<p>Ähhh LOL sind x und y Fließkommazahlen? Pixel werden aber mit ganz normalen Integern behandelt (oder sollten!).</p>
</blockquote>
<p>Ja, die x und y Zahlen sind Kommazahlen. Dürfte ja eigentlich auch Wurst sein, wenn ich sonst alles richtig definiere, oder etwa nicht?? <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>Dieser selbsternannte Hacker hat keine Ahnung. Koordinaten hält man fast nie Ganzzahl (wenn dann als unsigned int, aber das auch nur selten). Für Berechnungen wie bei dir sind floats goldrichtig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2140769</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2140769</guid><dc:creator><![CDATA[crackermitahnung]]></dc:creator><pubDate>Sat, 05 Nov 2011 15:53:29 GMT</pubDate></item><item><title><![CDATA[Reply to Programmieraufgabe: Functions, Templates, etc. on Sat, 05 Nov 2011 16:15:26 GMT]]></title><description><![CDATA[<p>Ich danke dir, aber leider hilft mir das bei meinem Problem nicht weiter <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="😞"
    /> Das Center of Gravity funktioniert einwandfrei, aber bei der Min und Max Berechnung kommt immer eine komische Fehlermeldung beim Durchführen und ich habe keine Ahnung, woran das liegen könnte. Hab wirklich alles probiert!!!<br />
Und beim rausnehmen der negativen Werte glaube ich das mit dem call by reference nicht ganz stimmt. Bin wirklich für jeden Hinweis dankbar!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2140784</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2140784</guid><dc:creator><![CDATA[MyMaus]]></dc:creator><pubDate>Sat, 05 Nov 2011 16:15:26 GMT</pubDate></item><item><title><![CDATA[Reply to Programmieraufgabe: Functions, Templates, etc. on Sat, 05 Nov 2011 16:26:38 GMT]]></title><description><![CDATA[<p>Das hilft doch schon was, jetzt weiss ich, wo ich den Fehler suchen soll. Dein Code, schön formatiert:</p>
<pre><code class="language-cpp">// Function to find minimum element
float getMinimumValue(vector&lt;Point&gt; aPointCollection, char xy)
{
    bool check = (xy == 'x'); // Check if the bool Variable is true or false
    float Min;

    if (check) {
        vector&lt;Point&gt;::iterator iter;
        for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++) {
            Min = MinimumValue(iter-&gt;xCoordinate, iter-&gt;xCoordinate); // If check is true calculate the min of x
        }
    } else {
        vector&lt;Point&gt;::iterator iter;
        for (iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++) {
            Min = MinimumValue(iter-&gt;yCoordinate, iter-&gt;yCoordinate); // If check is false calculate the min of y
        }
        return Min;
    }
}
</code></pre>
<p>Es fällt auf:<br />
- Das return wird nur im zweiten Fall ausgeführt.<br />
- Zeile 10 sollte wohl Min = MinimumValue(Min, iter-&gt;yCoordinate); heissen (und dann Zeile 5 float Min=-1000;), analog bei Zeile 15.<br />
- Den Vektor als Wert zu übergeben führt dazu, dass dieser jedesmal neu kopiert wird, nimm besser vector&lt;Point&gt; const&amp; aPointCollection als Parameter und dann Zeile 8 und 15 als vector&lt;Point&gt;::const_iterator iter;<br />
Das behebt einmal die schlimmsten Fehler.</p>
<p>Ich wundere mich aber, dass dein Compiler keine Warnungen ausgegeben hat, denn so etwas sollte er doch sehen. Und was war das für eine Fehlermeldung beim Durchführen, könntest du die auch posten?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2140789</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2140789</guid><dc:creator><![CDATA[crackermitahnung]]></dc:creator><pubDate>Sat, 05 Nov 2011 16:26:38 GMT</pubDate></item><item><title><![CDATA[Reply to Programmieraufgabe: Functions, Templates, etc. on Sat, 05 Nov 2011 16:30:02 GMT]]></title><description><![CDATA[<p>Wenn du nächstes mal eine Fehlermeldung bekommst, dann sei bitte so nett und poste sie.</p>
<p>Ach übrigens: Nice copy &amp; paste work!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2140791</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2140791</guid><dc:creator><![CDATA[*Rewind*]]></dc:creator><pubDate>Sat, 05 Nov 2011 16:30:02 GMT</pubDate></item><item><title><![CDATA[Reply to Programmieraufgabe: Functions, Templates, etc. on Sat, 05 Nov 2011 17:06:11 GMT]]></title><description><![CDATA[<p>Danke erstmal vielmals für die Antworten und auch das Lob zur Formatierung :)!!</p>
<p>Das Problem ist eben, dass er wenn ich x eingebe um die minimas und maximas für x auszugeben, dann meldet er mir für die Werte immer -1.#IND und für meinen neuen Vektor kommt: 003EF654003EF654 nach Ausführung des Programms. Wenn ich aber y eingeb, dann kommt für min nun die -1000.</p>
<p>Infos vom Compiler sind nur:</p>
<p>'IOM_project.exe': Loaded 'C:\Users\Myriam\Documents\Visual Studio 2010\Projects\IOM_project\Debug\IOM_project.exe', Symbols loaded.<br />
'IOM_project.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file<br />
'IOM_project.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file<br />
'IOM_project.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.<br />
'IOM_project.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.<br />
The thread 'Win32 Thread' (0x13e8) has exited with code -1073741510 (0xc000013a).<br />
The program '[5764] IOM_project.exe: Native' has exited with code -1073741510 (0xc000013a).</p>
<p>Aber damit fang ich leider nicht wirklich was an!</p>
<p>Für jede weiter Hilfe natürlich sehr dankbar!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2140801</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2140801</guid><dc:creator><![CDATA[MyMaus]]></dc:creator><pubDate>Sat, 05 Nov 2011 17:06:11 GMT</pubDate></item><item><title><![CDATA[Reply to Programmieraufgabe: Functions, Templates, etc. on Sun, 06 Nov 2011 00:43:56 GMT]]></title><description><![CDATA[<p>Erste Anlaufstelle bei allen Problemen:<br />
<a href="https://www.google.de/search?&amp;q=Cannot%20find%20or%20open%20the%20PDB%20file" rel="nofollow">Google: Cannot find or open the PDB file</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2140923</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2140923</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sun, 06 Nov 2011 00:43:56 GMT</pubDate></item><item><title><![CDATA[Reply to Programmieraufgabe: Functions, Templates, etc. on Sun, 06 Nov 2011 14:50:19 GMT]]></title><description><![CDATA[<p>Danke für das mit dem PDB-File. Die Fehlermeldung kommt jetzt auch nicht mehr. Aber leider bekomm ich immer noch nicht die richtigen Werte für meine Funktionen?? Noch irgendwelche Ideen??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2141132</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2141132</guid><dc:creator><![CDATA[MyMaus]]></dc:creator><pubDate>Sun, 06 Nov 2011 14:50:19 GMT</pubDate></item><item><title><![CDATA[Reply to Programmieraufgabe: Functions, Templates, etc. on Sun, 06 Nov 2011 16:12:51 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">float getMinimumValue(const vector&lt;Point&gt;&amp; aPointCollection, char xy)
{
    float Min;

    if (xy == 'x')
		for (std::vector&lt;Point&gt;::const_iterator iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++)
				Min = MinimumValue(iter-&gt;xCoordinate, iter-&gt;xCoordinate); // If check is true calculate the min of x
    else
		for (std::vector&lt;Point&gt;::const_iterator iter = aPointCollection.begin(); iter != aPointCollection.end(); iter++)
				Min = MinimumValue(iter-&gt;yCoordinate, iter-&gt;yCoordinate); // If check is false calculate the min of y

	return Min;
}
</code></pre>
<p>Jetzt kommt bei mir statt nan <s>60</s> eine Zahl...</p>
<p>Edit: schalt mal -fpermissive an, dann dürfte das garnicht kompilieren<br />
Edit²: ..., was <em>du</em> hast <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2141168</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2141168</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 06 Nov 2011 16:12:51 GMT</pubDate></item><item><title><![CDATA[Reply to Programmieraufgabe: Functions, Templates, etc. on Sun, 06 Nov 2011 17:49:29 GMT]]></title><description><![CDATA[<p>@ Hacker: ich danke dir wirklich sehr für deine Hilfe, leider bekomme ich es irgendwie nicht hin. Werde es jetzt wohl so abgeben.</p>
<p>Danke aber nochmals!<br />
LG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2141255</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2141255</guid><dc:creator><![CDATA[MyMaus]]></dc:creator><pubDate>Sun, 06 Nov 2011 17:49:29 GMT</pubDate></item></channel></rss>