<?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[Fehler im VS 6.0?]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>mein Problem ist das das VS immer abstürzt!?<br />
Macht mal folgendes:<br />
Erstellt ein neues Konsolenprojekt mit main Funktion.<br />
Kopiert folgenden Code in das Projekt:</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;

void reverseTable() {
	double h=0;
	int j=0;
	int i=0;
	double delta=0, abweichung=0;

	double d[]={0.1,	0.25,	0.5,	0.75,	1,	1.5,	2,	4,	6,	8,	10,	15,	20,	30,	40,	50,	60,	80,	100,	120,	150,	200,	300,	400,	500};
	double e[]={0,	100,	192,	270,	300,	338,	383,	417,	466,	503,	601,	669,	719,	760,	838,	906,	1000,	1086,	1100,	1146,	1204,	1293,	1399,	1464,	1500,	1548,	1600,	1700,	1743,	1800,	1900,	2000,	2100,	2200,	2300,	2400,	2500,	2584,	2617,	2645,	2647,	2653,	2662,	2676,	2695,	2709,	2740,	2745,	2763,	2766,	2774,	2782,	2789,	2793,	2807,	2812,	2815,	2831,	2900,	3000,	3100,	3200,	3300,	3400,	3500,	3600,	3700,	3800,	3900,	4000,	4100,	4200,	4300,	4400};

}

int main(int argc, char* argv[]){
	reverseTable();
	return 0;
}
</code></pre>
<p>Geht mit F11 durch das Projekt. Ihr werdet sehen das der Debugger in reverseTable abstürzt. Ist das normal? Hattet Ihr schon ähnlich schräge Fehler?</p>
<p>Mike</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/69328/fehler-im-vs-6-0</link><generator>RSS for Node</generator><lastBuildDate>Sat, 02 May 2026 02:06:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/69328.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Mar 2004 12:34:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler im VS 6.0? on Fri, 26 Mar 2004 12:34:04 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>mein Problem ist das das VS immer abstürzt!?<br />
Macht mal folgendes:<br />
Erstellt ein neues Konsolenprojekt mit main Funktion.<br />
Kopiert folgenden Code in das Projekt:</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;

void reverseTable() {
	double h=0;
	int j=0;
	int i=0;
	double delta=0, abweichung=0;

	double d[]={0.1,	0.25,	0.5,	0.75,	1,	1.5,	2,	4,	6,	8,	10,	15,	20,	30,	40,	50,	60,	80,	100,	120,	150,	200,	300,	400,	500};
	double e[]={0,	100,	192,	270,	300,	338,	383,	417,	466,	503,	601,	669,	719,	760,	838,	906,	1000,	1086,	1100,	1146,	1204,	1293,	1399,	1464,	1500,	1548,	1600,	1700,	1743,	1800,	1900,	2000,	2100,	2200,	2300,	2400,	2500,	2584,	2617,	2645,	2647,	2653,	2662,	2676,	2695,	2709,	2740,	2745,	2763,	2766,	2774,	2782,	2789,	2793,	2807,	2812,	2815,	2831,	2900,	3000,	3100,	3200,	3300,	3400,	3500,	3600,	3700,	3800,	3900,	4000,	4100,	4200,	4300,	4400};

}

int main(int argc, char* argv[]){
	reverseTable();
	return 0;
}
</code></pre>
<p>Geht mit F11 durch das Projekt. Ihr werdet sehen das der Debugger in reverseTable abstürzt. Ist das normal? Hattet Ihr schon ähnlich schräge Fehler?</p>
<p>Mike</p>
]]></description><link>https://www.c-plusplus.net/forum/post/489392</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/489392</guid><dc:creator><![CDATA[Mike Fudd]]></dc:creator><pubDate>Fri, 26 Mar 2004 12:34:04 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler im VS 6.0? on Fri, 26 Mar 2004 13:14:49 GMT]]></title><description><![CDATA[<p>So spontan würde ich mal sagen, das du die werte dem array falsch zuweist.<br />
d[] ist nämlich das selbe wie d[0], was heißt das du hiermit versuchst, 25 werte aufeinmal einer einzigen adresse (nämlich dem ersten element des arrays) zuzuweisen, welches nunmal unmöglich ist und deinen Compiler zum absturz bringt.</p>
<pre><code>double d[]={0.1,    0.25,    0.5,    0.75,    1,    1.5,    2,    4,    6,
            8,    10,    15,    20,    30,    40,    50,    60,    80, 100,
            120,    150,    200,    300,    400,    500};
</code></pre>
<p>Ich habe den VC++ Compiler gerade nicht installiert, da ich Windows gleich neu hochziehen werde, von daher kann ich es nicht ausprobieren, aber versuche es mal so:</p>
<pre><code>double d[24]={0.1,    0.25,    0.5,    0.75,    1,    1.5,    2,    4,    6,
            8,    10,    15,    20,    30,    40,    50,    60,    80, 100,
            120,    150,    200,    300,    400,    500};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/489432</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/489432</guid><dc:creator><![CDATA[Perner]]></dc:creator><pubDate>Fri, 26 Mar 2004 13:14:49 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler im VS 6.0? on Fri, 26 Mar 2004 14:25:18 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/1475">@Perner</a> die Syntax ist richtig. Der Kompiler errechnet wie groß das Array sein muß. Eine Zahl braucht nicht angegeben werden. Und wenn ich es tue passiert der Fehler immer noch.</p>
<p>Hat jemand eine Idee woran das liegt? Früher (beim gcc) hat diese Art der Variableninitialisierung funktioniert...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/489485</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/489485</guid><dc:creator><![CDATA[Mike Fudd]]></dc:creator><pubDate>Fri, 26 Mar 2004 14:25:18 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler im VS 6.0? on Fri, 26 Mar 2004 15:25:03 GMT]]></title><description><![CDATA[<p>Hallo Mike,</p>
<p>das dürfte an den Compiler-Optionen liegen (/Ze einschalten), ich suche aber auch noch nach einer Möglichkeit das zu tun, die MSDN ist so unverständlich zu diesem Problem.</p>
<p>MarioS <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/489537</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/489537</guid><dc:creator><![CDATA[S204]]></dc:creator><pubDate>Fri, 26 Mar 2004 15:25:03 GMT</pubDate></item></channel></rss>