<?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 mit Microsoft Datei (Anschein)]]></title><description><![CDATA[<p>Was die Methode bezwecken soll:<br />
1. Sie soll die längste Länge der Strings aus dem Vector item_labels herauslesen.<br />
2. a<br />
Sie soll dann deb String +&quot; &quot;+ item_value mal ein Zeichen ausgeben, wenn der String's Länge die längste Länge entspricht.<br />
2. b<br />
Andernfalls soll sie erstmal so viele leerzeichen einfügen, bis der String die Länge von der längsten Länge hat.<br />
Und danach dasselbe machen wie oben beschrieben (siehe 2.a)</p>
<p>Vorraussetzungen:<br />
Stellt euch vor das c println u.s.w. sind was wie cout &lt;&lt; ok?</p>
<pre><code class="language-cpp">void Diagram::printDiagram(Console c)
{
	c.println(title+&quot; :&quot;);

	int length = 0;
	// Look for bigest Item Label Length
	for(int i = 0;i&lt;items;i++)
	{
		if(item_labels[i].length()&gt;length)
		{
			length = item_labels[i].length();
		}
	}

	for(int i = 0;i&lt;items;i++)
	{
		c.print(item_labels[i]);

	//	Asks for enough Space, so that all diagrams are at the same start
		if(item_labels[i].length()==length)
		{
		}
		else if(item_labels[i].length()&lt;=length)
		{
			while(item_labels[i].length()&lt;length)
			{
				c.print(&quot; &quot;);
				item_labels[i] += &quot; &quot;;
			}
		}

		c.print(&quot;: &quot;);
		for(int j = 0;j&lt;item_values[i];j++)
		{
			c.print(diagramChar);
		}

		c.nextLine();
	}

	c.paragraph();
}
</code></pre>
<p>Ich bekomme das hier als Fehler:</p>
<pre><code>onsole Library.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
The program '[9268] Console Library.exe: Native' has exited with code 3 (0x3).
</code></pre>
<p>Und noch mal ein passendes Fenster :<br />
<a href="http://www.imperatorclan.kilu.de/myUploads/Error%20Message.PNG" rel="nofollow">www.imperatorclan.kilu.de/myUploads/Error Message.PNG</a></p>
<p>Und wenn man auf continue klickt, kommt genau dasselbe fenster noch mal, und im code editor öffnet sich sogar der code von der datei, die ich nicht programmiert habe:</p>
<pre><code class="language-cpp">/***
*dbgnew.cpp - defines C++ scalar delete routine, debug version
*
*       Copyright (c) Microsoft Corporation.  All rights reserved.
*
*Purpose:
*       Defines C++ scalar delete() routine.
*
*******************************************************************************/

#ifdef _DEBUG

#include &lt;cruntime.h&gt;
#include &lt;malloc.h&gt;
#include &lt;mtdll.h&gt;
#include &lt;dbgint.h&gt;
#include &lt;rtcsup.h&gt;

/***
*void operator delete() - delete a block in the debug heap
*
*Purpose:
*       Deletes any type of block.
*
*Entry:
*       void *pUserData - pointer to a (user portion) of memory block in the
*                         debug heap
*
*Return:
*       &lt;void&gt;
*
*******************************************************************************/

void operator delete(
        void *pUserData
        )
{
        _CrtMemBlockHeader * pHead;

        RTCCALLBACK(_RTC_Free_hook, (pUserData, 0));

        if (pUserData == NULL)
            return;

        _mlock(_HEAP_LOCK);  /* block other threads */
        __TRY

            /* get a pointer to memory block header */
            pHead = pHdr(pUserData);

             /* verify block type */
            _ASSERTE(_BLOCK_TYPE_IS_VALID(pHead-&gt;nBlockUse));

            _free_dbg( pUserData, pHead-&gt;nBlockUse );

        __FINALLY
            _munlock(_HEAP_LOCK);  /* release other threads */
        __END_TRY_FINALLY

        return;
}

#endif  /* _DEBUG */
</code></pre>
<p>Und Breakpoint ist auf zeile 52 gesetzt.</p>
<p>Ich glaube damit habe ich nichts zu tun oder?</p>
<p>die methoden c.paragraph und c.nextLine, habe ich auch weggelassen, und da kam trotzdem der Fehler. Kann mir einer helfen?</p>
<p><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="😞"
    /> Developer_X <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/topic/267876/fehler-mit-microsoft-datei-anschein</link><generator>RSS for Node</generator><lastBuildDate>Wed, 02 Sep 2026 05:12:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/267876.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 31 May 2010 16:50:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler mit Microsoft Datei (Anschein) on Mon, 31 May 2010 16:51:47 GMT]]></title><description><![CDATA[<p>Was die Methode bezwecken soll:<br />
1. Sie soll die längste Länge der Strings aus dem Vector item_labels herauslesen.<br />
2. a<br />
Sie soll dann deb String +&quot; &quot;+ item_value mal ein Zeichen ausgeben, wenn der String's Länge die längste Länge entspricht.<br />
2. b<br />
Andernfalls soll sie erstmal so viele leerzeichen einfügen, bis der String die Länge von der längsten Länge hat.<br />
Und danach dasselbe machen wie oben beschrieben (siehe 2.a)</p>
<p>Vorraussetzungen:<br />
Stellt euch vor das c println u.s.w. sind was wie cout &lt;&lt; ok?</p>
<pre><code class="language-cpp">void Diagram::printDiagram(Console c)
{
	c.println(title+&quot; :&quot;);

	int length = 0;
	// Look for bigest Item Label Length
	for(int i = 0;i&lt;items;i++)
	{
		if(item_labels[i].length()&gt;length)
		{
			length = item_labels[i].length();
		}
	}

	for(int i = 0;i&lt;items;i++)
	{
		c.print(item_labels[i]);

	//	Asks for enough Space, so that all diagrams are at the same start
		if(item_labels[i].length()==length)
		{
		}
		else if(item_labels[i].length()&lt;=length)
		{
			while(item_labels[i].length()&lt;length)
			{
				c.print(&quot; &quot;);
				item_labels[i] += &quot; &quot;;
			}
		}

		c.print(&quot;: &quot;);
		for(int j = 0;j&lt;item_values[i];j++)
		{
			c.print(diagramChar);
		}

		c.nextLine();
	}

	c.paragraph();
}
</code></pre>
<p>Ich bekomme das hier als Fehler:</p>
<pre><code>onsole Library.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
The program '[9268] Console Library.exe: Native' has exited with code 3 (0x3).
</code></pre>
<p>Und noch mal ein passendes Fenster :<br />
<a href="http://www.imperatorclan.kilu.de/myUploads/Error%20Message.PNG" rel="nofollow">www.imperatorclan.kilu.de/myUploads/Error Message.PNG</a></p>
<p>Und wenn man auf continue klickt, kommt genau dasselbe fenster noch mal, und im code editor öffnet sich sogar der code von der datei, die ich nicht programmiert habe:</p>
<pre><code class="language-cpp">/***
*dbgnew.cpp - defines C++ scalar delete routine, debug version
*
*       Copyright (c) Microsoft Corporation.  All rights reserved.
*
*Purpose:
*       Defines C++ scalar delete() routine.
*
*******************************************************************************/

#ifdef _DEBUG

#include &lt;cruntime.h&gt;
#include &lt;malloc.h&gt;
#include &lt;mtdll.h&gt;
#include &lt;dbgint.h&gt;
#include &lt;rtcsup.h&gt;

/***
*void operator delete() - delete a block in the debug heap
*
*Purpose:
*       Deletes any type of block.
*
*Entry:
*       void *pUserData - pointer to a (user portion) of memory block in the
*                         debug heap
*
*Return:
*       &lt;void&gt;
*
*******************************************************************************/

void operator delete(
        void *pUserData
        )
{
        _CrtMemBlockHeader * pHead;

        RTCCALLBACK(_RTC_Free_hook, (pUserData, 0));

        if (pUserData == NULL)
            return;

        _mlock(_HEAP_LOCK);  /* block other threads */
        __TRY

            /* get a pointer to memory block header */
            pHead = pHdr(pUserData);

             /* verify block type */
            _ASSERTE(_BLOCK_TYPE_IS_VALID(pHead-&gt;nBlockUse));

            _free_dbg( pUserData, pHead-&gt;nBlockUse );

        __FINALLY
            _munlock(_HEAP_LOCK);  /* release other threads */
        __END_TRY_FINALLY

        return;
}

#endif  /* _DEBUG */
</code></pre>
<p>Und Breakpoint ist auf zeile 52 gesetzt.</p>
<p>Ich glaube damit habe ich nichts zu tun oder?</p>
<p>die methoden c.paragraph und c.nextLine, habe ich auch weggelassen, und da kam trotzdem der Fehler. Kann mir einer helfen?</p>
<p><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="😞"
    /> Developer_X <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/1905098</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1905098</guid><dc:creator><![CDATA[Developer_X]]></dc:creator><pubDate>Mon, 31 May 2010 16:51:47 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler mit Microsoft Datei (Anschein) on Mon, 31 May 2010 17:10:23 GMT]]></title><description><![CDATA[<p>Der Code sieht erstmal in Ordnung aus, angenommen, dass es mit Console, item_labels &amp; Co. jeweils seine Richtigkeit hat. Ist Console eine kopierbare Klasse? Kann ich mir irgendwie nicht vorstellen...</p>
<p>Übrigens möchte ich dir den vorletzten Stringkonstruktor auf dieser Seite vorstellen:<br />
<a href="http://www.cplusplus.com/reference/string/string/string/" rel="nofollow">http://www.cplusplus.com/reference/string/string/string/</a></p>
<p>Damit reduzierst du den Codeausschnitt leicht auf die Hälfte der Zeilen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1905108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1905108</guid><dc:creator><![CDATA[Athar]]></dc:creator><pubDate>Mon, 31 May 2010 17:10:23 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler mit Microsoft Datei (Anschein) on Mon, 31 May 2010 17:12:49 GMT]]></title><description><![CDATA[<p>Da ich mal davon ausgehe, dass MS keine schwerwiegenden Fehler in ihrer Stanardbibliothek eingebaut hat, wird das schon an deinem Programm liegen. Guck mal weiter oben im Callstack, welche Zeile aus deinem Programm letztendlich den operator delete aufgerufen hat. Dann kannst du uns den Übeltäter nennen und wir können weiter gucken.<br />
Der Fehler mit den fehlenden PDB-Dateien hat erstmal nichts direkt mit deinem Programm zu tun. Der Debugger sucht Debugsymbole zu einigen Bibliotheken und findet sie nicht. Er sollte trotzdem in der Lage sein zu sagen, an welcher Stelle in <strong>deinem</strong> Programmcode es hackt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1905112</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1905112</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 31 May 2010 17:12:49 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler mit Microsoft Datei (Anschein) on Mon, 31 May 2010 17:17:02 GMT]]></title><description><![CDATA[<p>Es handelt sich um einen konflikt zwischen Debug und Release new/delete funktionen.</p>
<p>suchmal ob du irgendwo bei dir was findest aller:</p>
<p>#define new ...</p>
<p>früher stand das mal oben in den headern.</p>
<p>Benutzt du Biblotheken die evtl als Debugversion kompeliert wurden (Sofern dein Programm nicht debugversion ist kommt es je nach verlinkung zu Problemen)</p>
<p>Auch kann das Problem auf eine Speicherbeschädigung hindeuten. (du machst was nicht richtig). Die fehlenden PDB Dateien sind jedenfalls nicht die problemursache.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1905113</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1905113</guid><dc:creator><![CDATA[DaRpH]]></dc:creator><pubDate>Mon, 31 May 2010 17:17:02 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler mit Microsoft Datei (Anschein) on Mon, 31 May 2010 18:27:15 GMT]]></title><description><![CDATA[<p>Ok, danke erstmal für die Tipps, also, erstmal habe ich hier codes euch mal gegeben. Vielleicht seht ihrs schon, die Headerdateien hab ich nicht angezeigt, weil die wirklich laufen.</p>
<p>1. Der Code läuft ohne Probleme<br />
2. Erst wenn das Programm fertig ist, gibts den Fehler.</p>
<p>3.Gesamte Ausgabe des &quot;Output&quot;</p>
<pre><code>'Console Library.exe': Loaded 'F:\C++ Projekte\Console Library\Debug\Console Library.exe', Symbols loaded.
'Console Library.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
'Console Library.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
'Console Library.exe': Loaded 'C:\Program Files\Common Files\LogiShrd\LVMVFM\LVPrcInj.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Program Files\Google\Google Desktop Search\GoogleDesktopNetwork3.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\nsi.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x2ecc) has exited with code 262144 (0x40000).
'Console Library.exe': Unloaded 'C:\Program Files\Google\Google Desktop Search\GoogleDesktopNetwork3.dll'
'Console Library.exe': Unloaded 'C:\Windows\System32\ws2_32.dll'
'Console Library.exe': Unloaded 'C:\Windows\System32\nsi.dll'
The thread 'Win32 Thread' (0x21cc) has exited with code 0 (0x0).
'Console Library.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'Console Library.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
The program '[12212] Console Library.exe: Native' has exited with code 3 (0x3).
</code></pre>
<p>4. Code von Diagram</p>
<pre><code class="language-cpp">#include &quot;StdAfx.h&quot;
#include &lt;stdio.h&gt;
#include &lt;string&gt;
#include &lt;vector&gt;
#include &quot;Console.h&quot;
#include &quot;Diagram.h&quot;

/*
* Author Kevin Riehl
*/
//	Attributes
string title;
char diagramChar = '|';
int items = 0;
vector&lt;string&gt; item_labels;
vector&lt;int&gt; item_values;

//	Constructor and Destructor
Diagram::~Diagram(void)
{
	delete &amp;item_labels;
	delete &amp;item_values;
	delete &amp;diagramChar;
	delete &amp;title;
	delete &amp;items;
}
Diagram::Diagram()
{
}

//	Methods
void Diagram::addItem(string item, int value)
{
	item_labels.push_back(item);
	item_values.push_back(value);

	items++;
}
void Diagram::printDiagram(Console c)
{
	c.println(title+&quot; :&quot;);

	int length = 0;
	// Look for bigest Item Label Length
	for(int i = 0;i&lt;items;i++)
	{
		if(item_labels[i].length()&gt;length)
		{
			length = item_labels[i].length();
		}
	}

	for(int i = 0;i&lt;items;i++)
	{
		c.print(item_labels[i]);

	//	Asks for enough Space, so that all diagrams are at the same start
		if(item_labels[i].length()==length)
		{
		}
		else if(item_labels[i].length()&lt;=length)
		{
			while(item_labels[i].length()&lt;length)
			{
				c.print(&quot; &quot;);
				item_labels[i] += &quot; &quot;;
			}
		}
		string chars (item_values[i],diagramChar);

		c.print(&quot;: &quot;+chars);

		c.nextLine();
	}

	c.paragraph();
}

//	Setters
void Diagram::setDiagramChar(char c)
{
	diagramChar = c;
}
void Diagram::setTitle(string s)
{
	title = s;
}

//	Getters
string Diagram::getTitle()
{
	return title;
}
char Diagram::getDiagramChar()
{
	return diagramChar;
}
vector&lt;string&gt; Diagram::getItems()
{
	return item_labels;
}
</code></pre>
<p>(Die Headerdateien zeige ich jetzt mal nicht an, weil die gehen wirklich)</p>
<p>5. Console</p>
<pre><code class="language-cpp">#include &quot;StdAfx.h&quot;
#include &lt;stdio.h&gt;
#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;time.h&gt;
#include &lt;windows.h&gt; 
#include &quot;Diagram.h&quot;
#include &quot;Console.h&quot;
/*
*Author Kevin Riehl
*/
//	Attributes
	int waitTime;

//	Constructor
	Console::Console()
	{
		waitTime = 100;
	}

//	Methods
//	Setters &amp; Getters
	void Console::setWaitTime(int msecs)
	{
		waitTime = msecs;
	}
	int Console::getWaitTime()
	{
		return waitTime;
	}

//	Waiting Methods
	void Console::wait ( int seconds )
	{
		Sleep(seconds*1000);
	}
	void Console::wait_sec ( int seconds )
	{
		Sleep(seconds*1000);
	}
		void Console::wait_msec ( int seconds )
	{
		Sleep(seconds);
	}
//	Line-Jump Methods
	void Console::nextLine()
	{
		cout &lt;&lt; &quot;\n&quot;;
	}
	void Console::paragraph()
	{
		nextLine();
		nextLine();
	}
//	Basic Printing Methods
//	Variations of Basic Method, which tokes the text, and print every char
 // String
	void Console::print(string text)
	{
		char* s = const_cast&lt;char*&gt;(text.c_str());

		for(int i = 0;i&lt;text.length();i++)
		{
			cout &lt;&lt; s[i];
			wait_msec(waitTime);
		}
	}
	void Console::println(string text)
	{
		char* s = const_cast&lt;char*&gt;(text.c_str());

		for(int i = 0;i&lt;text.length();i++)
		{
			cout &lt;&lt; s[i];
			wait_msec(waitTime);
		}
		nextLine();
	}
	void Console::print(string text,int sec)
	{
		char* s = const_cast&lt;char*&gt;(text.c_str());

		for(int i = 0;i&lt;text.length();i++)
		{
			cout &lt;&lt; s[i];
			wait_sec(sec);
		}
	}
	void Console::println(string text,int sec)
	{
		char* s = const_cast&lt;char*&gt;(text.c_str());

		for(int i = 0;i&lt;text.length();i++)
		{
			cout &lt;&lt; s[i];
			wait_sec(sec);
		}
		nextLine();
	}
 // Char
	void Console::print(char c)
	{
		cout &lt;&lt; c;
		wait_msec(waitTime);
	}
	void Console::println(char c)
	{
		cout &lt;&lt; c;
		wait_msec(waitTime);
		nextLine();
	}
	void Console::print(char c,int sec)
	{
		cout &lt;&lt; c;
		wait_sec(sec);
	}
	void Console::println(char c,int sec)
	{
		cout &lt;&lt; c;
		wait_sec(sec);
		nextLine();
	}
 // Double
	void Console::print(double d)
	{
		cout &lt;&lt; d;
		wait_msec(waitTime);
	}
	void Console::println(double d)
	{
		cout &lt;&lt; d;
		wait_msec(waitTime);
		nextLine();
	}
	void Console::print(double d,int sec)
	{
		cout &lt;&lt; d;
		wait_sec(sec);
	}
	void Console::println(double d,int sec)
	{
		cout &lt;&lt; d;
		wait_sec(sec);
		nextLine();
	}
 // Float
	void Console::print(float f)
	{
		cout &lt;&lt; f;
		wait_msec(waitTime);
	}
	void Console::println(float f)
	{
		cout &lt;&lt; f;
		wait_msec(waitTime);
		nextLine();
	}
	void Console::print(float f,int sec)
	{
		cout &lt;&lt; f;
		wait_sec(sec);
	}
	void Console::println(float f,int sec)
	{
		cout &lt;&lt; f;
		wait_sec(sec);
		nextLine();
	}
 // Int
	void Console::print(int n)
	{
		cout &lt;&lt; n;
		wait_msec(waitTime);
	}
	void Console::println(int n)
	{
		cout &lt;&lt; n;
		wait_msec(waitTime);
		nextLine();
	}
	void Console::print(int n,int sec)
	{
		cout &lt;&lt; n;
		wait_sec(sec);
	}
	void Console::println(int n,int sec)
	{
		cout &lt;&lt; n;
		wait_sec(sec);
		nextLine();
	}
//	Creative Printing Methods with Graphical Effects
	void Console::drawLine()
	{
		for(int i = 1;i&lt;20;i++)
		{
			print(&quot;-&quot;);
		}
		nextLine();
	}
	void Console::drawLine(int n)
	{
		for(int i = 1;i&lt;n;i++)
		{
			print(&quot;-&quot;);
		}
		nextLine();
	}
	void Console::drawArrow()
	{
		print(&quot;-&gt; &quot;);
		nextLine();
	}
	void Console::drawArrow(string text)
	{
		print(&quot;-&gt; &quot;+text);
		nextLine();
	}
</code></pre>
<p>Ich hoffe es ist nicht zu primitif für euch, ich bin nömlich noch anfänger.</p>
<p>Ich bin dankbar für alle eure Hilfen.<br />
M.f.G. Developer_X</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1905144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1905144</guid><dc:creator><![CDATA[Developer_X]]></dc:creator><pubDate>Mon, 31 May 2010 18:27:15 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler mit Microsoft Datei (Anschein) on Mon, 31 May 2010 18:53:26 GMT]]></title><description><![CDATA[<p>Da muss man nicht lange suchen <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>
<pre><code class="language-cpp">Diagram::~Diagram(void)
{
    delete &amp;item_labels;
    delete &amp;item_values;
    delete &amp;diagramChar;
    delete &amp;title;
    delete &amp;items;
}
</code></pre>
<p>Du löschst da im Destruktor von Diagram Objekte, die nicht zur Klasse gehören, sondern global sind (!) und zudem nicht einmal mit new angelegt worden sind (!!) - und deswegen knallt es auch.</p>
<p>Übrigens: Stringobjekte per konstanter Referenz übergeben, sonst wird jedesmal kopiert. Ebenso in getItems(): wenn du nichts lokales zurückgibst, ebenfalls eine konstante Referenz zurückgeben. Sonst kopierst du den ganzen Vektor, obwohl der Benutzer ja vielleicht nur mal size() aufrufen wollte.</p>
<p>Edit:<br />
Und was ist das denn: <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 class="language-cpp">char* s = const_cast&lt;char*&gt;(text.c_str());
</code></pre>
<p>Um const_cast einzusetzen, muss man schon einen <em>sehr</em> guten Grund haben und der liegt hier nicht vor. Schnell weg damit.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1905154</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1905154</guid><dc:creator><![CDATA[Athar]]></dc:creator><pubDate>Mon, 31 May 2010 18:53:26 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler mit Microsoft Datei (Anschein) on Mon, 31 May 2010 19:25:52 GMT]]></title><description><![CDATA[<p>Das Problem war doch schon bei <a href="http://c-plusplus.net/forum/viewtopic-var-t-is-267862.html" rel="nofollow">http://c-plusplus.net/forum/viewtopic-var-t-is-267862.html</a>, du scheinst hier einen Denkfehler zu haben, Developer_X:<br />
Objekte, die nicht dynamisch (per <code>new</code> ) angefordert werden, werden <strong>automatisch</strong> zerstört und dürfen nicht explizit freigegeben werden.<br />
Insbesondere darf <code>delete</code> ausschließlich auf Objekte angewendet werden, die per <code>new</code> angefordert und nicht schon freigegeben wurden. Generell vermeidet man aber in C++ Fälle, wo explizites Speichermanagment notwendig ist, sondern regelt das in dafür ausgelegten Klassen (Beispiel: dynamisches Array -&gt; <code>vector</code> statt <code>new[]</code> und <code>delete[]</code> ).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1905168</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1905168</guid><dc:creator><![CDATA[ipsec]]></dc:creator><pubDate>Mon, 31 May 2010 19:25:52 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler mit Microsoft Datei (Anschein) on Mon, 31 May 2010 19:31:30 GMT]]></title><description><![CDATA[<p>Hab mir die Fragen, etc. gar nicht angeguckt, aber dein Code ist mal total redundant. Du könntest verdammt viel Code vermeiden. Beispiel:</p>
<pre><code class="language-cpp">void Console::drawLine()
    {
        for(int i = 1;i&lt;20;i++)
        {
            print(&quot;-&quot;);
        }
        nextLine();
    }
    void Console::drawLine(int n)
    {
        for(int i = 1;i&lt;n;i++)
        {
            print(&quot;-&quot;);
        }
        nextLine();
    }
</code></pre>
<p>Wie wäre es damit?</p>
<pre><code class="language-cpp">void Console::drawLine()
    {
        drawLine(20);
    }
    void Console::drawLine(int n)
    {
        for(int i = 1;i&lt;n;i++)
        {
            print(&quot;-&quot;);
        }
        nextLine();
    }
</code></pre>
<p>Und wenn wir schon dabei sind...</p>
<pre><code class="language-cpp">void Console::drawLine(int n = 20)
    {
        for(int i = 1;i&lt;n;i++)
        {
            print(&quot;-&quot;);
        }
        nextLine();
    }
</code></pre>
<p>Fertig. Na ja, egal <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/1905172</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1905172</guid><dc:creator><![CDATA[jkljkl]]></dc:creator><pubDate>Mon, 31 May 2010 19:31:30 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler mit Microsoft Datei (Anschein) on Mon, 31 May 2010 20:09:51 GMT]]></title><description><![CDATA[<p>Außerdem zeichnet die Funktion n-1 Striche. Absicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1905186</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1905186</guid><dc:creator><![CDATA[Athar]]></dc:creator><pubDate>Mon, 31 May 2010 20:09:51 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler mit Microsoft Datei (Anschein) on Tue, 01 Jun 2010 16:30:25 GMT]]></title><description><![CDATA[<p>Och danke, ich bin noch ein sehr starker Anfänger in C++. Ihr habt wirklich mit allem Recht, ich könnte viel Platzt sparen.</p>
<p>Danke sehr, Developer_X</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1905586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1905586</guid><dc:creator><![CDATA[Developer_X]]></dc:creator><pubDate>Tue, 01 Jun 2010 16:30:25 GMT</pubDate></item></channel></rss>