<?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[was ist daran nur falsch?]]></title><description><![CDATA[<pre><code class="language-cpp">class convert
{
	private:
        char* string;

        long table_length;
        char** extra;       /* [zeichen][nummer im original] */
        char** letters;
        char** numbers;

	public:	
        convert(char* string);
        ~convert();

        void convert_str(char* string);
        char* get_conv_str();
};

inline convert::convert(char* str) : string(str) 
{
	while( *str++ != '\0' ) table_length++; //achtung '\0' nicht vergessen

	extra = new char*[table_length];
	for( int i = 0 ; table_length &gt;= i; i++ ) extra = new char[2];

	letters = new char*[table_length];
	for( int i = 0 ; table_length &gt;= i; i++ ) letters = new char[2];

	numbers = new char*[table_length];
	for( int i = 0 ; table_length &gt;= i; i++ ) numbers = new char[2];
}
</code></pre>
<pre><code>error C2440: '=' : cannot convert from 'char *' to 'char **'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/123407/was-ist-daran-nur-falsch</link><generator>RSS for Node</generator><lastBuildDate>Sun, 23 Aug 2026 15:46:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/123407.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Oct 2005 15:50:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to was ist daran nur falsch? on Sun, 16 Oct 2005 15:50:40 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">class convert
{
	private:
        char* string;

        long table_length;
        char** extra;       /* [zeichen][nummer im original] */
        char** letters;
        char** numbers;

	public:	
        convert(char* string);
        ~convert();

        void convert_str(char* string);
        char* get_conv_str();
};

inline convert::convert(char* str) : string(str) 
{
	while( *str++ != '\0' ) table_length++; //achtung '\0' nicht vergessen

	extra = new char*[table_length];
	for( int i = 0 ; table_length &gt;= i; i++ ) extra = new char[2];

	letters = new char*[table_length];
	for( int i = 0 ; table_length &gt;= i; i++ ) letters = new char[2];

	numbers = new char*[table_length];
	for( int i = 0 ; table_length &gt;= i; i++ ) numbers = new char[2];
}
</code></pre>
<pre><code>error C2440: '=' : cannot convert from 'char *' to 'char **'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/893538</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893538</guid><dc:creator><![CDATA[bilbao]]></dc:creator><pubDate>Sun, 16 Oct 2005 15:50:40 GMT</pubDate></item><item><title><![CDATA[Reply to was ist daran nur falsch? on Sun, 16 Oct 2005 15:59:51 GMT]]></title><description><![CDATA[<p>extra = new char[2] geht so nicht<br />
obendrüber hast du doch schon extra = new char*[tablelength]<br />
wieso willst du den zeiger dann erstezen?<br />
ich denk ma es muss heißen extra[i] = new char[2]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893550</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893550</guid><dc:creator><![CDATA[Maxi]]></dc:creator><pubDate>Sun, 16 Oct 2005 15:59:51 GMT</pubDate></item></channel></rss>