<?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[struct mit Innereien die wie Methoden aussehen]]></title><description><![CDATA[<p>Servus, was ist denn das für ein Aufbau für ein struct, ich dachte immer struct sind nur Attribute und sonst nichts?! Beispiel-Code ist ein Teil aus Numerical Recipes ...</p>
<pre><code class="language-cpp">// Kolmogorov-Smirnov cumulative distribution functions and their inverses.
struct KSdist 
{
	double pks(Doub z) 
	{
		// Return cumulative distribution function.
		if (z &lt; 0.) throw(&quot;bad z in KSdist&quot;);
		if (z == 0.) return 0.;
		if (z &lt; 1.18) 
		{
			double y = exp(-1.23370055013616983/SQR(z));
			return 2.25675833419102515*sqrt(-log(y))*(y + pow(y,9) + pow(y,25) + pow(y,49));
		} else {
			double x = exp(-2.*SQR(z));
			return 1. - 2.*(x - pow(x,4) + pow(x,9));
		}
	}
	...
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/290286/struct-mit-innereien-die-wie-methoden-aussehen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 16:04:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/290286.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Jul 2011 12:38:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to struct mit Innereien die wie Methoden aussehen on Sat, 23 Jul 2011 12:38:26 GMT]]></title><description><![CDATA[<p>Servus, was ist denn das für ein Aufbau für ein struct, ich dachte immer struct sind nur Attribute und sonst nichts?! Beispiel-Code ist ein Teil aus Numerical Recipes ...</p>
<pre><code class="language-cpp">// Kolmogorov-Smirnov cumulative distribution functions and their inverses.
struct KSdist 
{
	double pks(Doub z) 
	{
		// Return cumulative distribution function.
		if (z &lt; 0.) throw(&quot;bad z in KSdist&quot;);
		if (z == 0.) return 0.;
		if (z &lt; 1.18) 
		{
			double y = exp(-1.23370055013616983/SQR(z));
			return 2.25675833419102515*sqrt(-log(y))*(y + pow(y,9) + pow(y,25) + pow(y,49));
		} else {
			double x = exp(-2.*SQR(z));
			return 1. - 2.*(x - pow(x,4) + pow(x,9));
		}
	}
	...
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2096795</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096795</guid><dc:creator><![CDATA[Jay1980]]></dc:creator><pubDate>Sat, 23 Jul 2011 12:38:26 GMT</pubDate></item><item><title><![CDATA[Reply to struct mit Innereien die wie Methoden aussehen on Sat, 23 Jul 2011 12:49:55 GMT]]></title><description><![CDATA[<p>Jay1980 schrieb:</p>
<blockquote>
<p>Servus, was ist denn das für ein Aufbau für ein struct, ich dachte immer struct sind nur Attribute und sonst nichts?!</p>
</blockquote>
<p>Wie kommst du denn darauf?<br />
struct und class sind absolut identisch, ausser dass struct per default öffentliche member hat (public) und class private (private).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2096797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096797</guid><dc:creator><![CDATA[inter2k3]]></dc:creator><pubDate>Sat, 23 Jul 2011 12:49:55 GMT</pubDate></item><item><title><![CDATA[Reply to struct mit Innereien die wie Methoden aussehen on Sat, 23 Jul 2011 13:14:14 GMT]]></title><description><![CDATA[<p>inter2k3 schrieb:</p>
<blockquote>
<p>Jay1980 schrieb:</p>
<blockquote>
<p>Servus, was ist denn das für ein Aufbau für ein struct, ich dachte immer struct sind nur Attribute und sonst nichts?!</p>
</blockquote>
<p>Wie kommst du denn darauf?</p>
</blockquote>
<p>Wahrscheinlich kennt er struct aus C. <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/2096800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096800</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sat, 23 Jul 2011 13:14:14 GMT</pubDate></item><item><title><![CDATA[Reply to struct mit Innereien die wie Methoden aussehen on Sat, 23 Jul 2011 13:18:12 GMT]]></title><description><![CDATA[<p>drakon schrieb:</p>
<blockquote>
<p>Wahrscheinlich kennt er struct aus C. <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>Oder aus einem C/C++-Buch.</p>
<p>AUßerdem scheint mir dieses struct nur in Ermangelung des namespaces geschehen zu sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2096804</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096804</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sat, 23 Jul 2011 13:18:12 GMT</pubDate></item><item><title><![CDATA[Reply to struct mit Innereien die wie Methoden aussehen on Sat, 23 Jul 2011 13:44:28 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<p>AUßerdem scheint mir dieses struct nur in Ermangelung des namespaces geschehen zu sein.</p>
</blockquote>
<p>Was wohl mit C zusammenhängt <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/2096811</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096811</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Sat, 23 Jul 2011 13:44:28 GMT</pubDate></item></channel></rss>