<?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[Probleme beim Ausführen]]></title><description><![CDATA[<p>Hi Leute<br />
ich versuch seit stunden diesen Fehler hier auszubessern aber ich weiß nicht was ich falsch mache.</p>
<p>Der Debugger gibt das hier aus:</p>
<pre><code class="language-cpp">#0 00000000	0x00422b92 in std::string::find() (??:??)
#1 00402F07	section(this=0x22ff1c, xini_sec=@0x22fe00, sec_name={static npos = 4294967295, _M_dataplus = {&lt;std::allocator&lt;char&gt;&gt; = {&lt;__gnu_cxx::new_allocator&lt;char&gt;&gt; = {&lt;No data fields&gt;}, &lt;No data fields&gt;}, _M_p = 0x22ff38 &quot;T&amp;&gt;&quot;}}) (E:/sicherung/ubuntu/Projekt/xini/xini.cpp:300)
#2 004041D3	main() (E:\sicherung\ubuntu\Projekt\xini\main.cpp:14)
</code></pre>
<p>xini.h:</p>
<pre><code class="language-cpp">class section;
class xini
{
    public:
    xini();
    xini(std::string path);
    ~xini();
/*...*/
    std::vector&lt;std::string&gt; data;

    private:
/*...*/
};

class section
{
    public:
    section(xini &amp;xini_sec, std::string sec_name);
/*...*/
    friend class xini;

    protected:
/*...*/
    std::vector&lt;std::string&gt; sec;
/*...*/

};
</code></pre>
<p>xini.cpp:</p>
<pre><code class="language-cpp">section::section(xini &amp;xini_sec, std::string sec_name)
{
    status=false;
    int an_kl, en_kl, an_pos=-1, en_pos=-1, j=-1, i=0;

    for(; i != xini_sec.data.size(); i++)
    {
        an_kl=xini_sec.data[i].find_first_of('[', 0);
        if(std::string::npos != an_kl)
        {
            en_kl = xini_sec.data[i].find_first_of(']', an_kl);
            if(std::string::npos != en_kl)
            {
/*
...
*/
            }
        }
    }
}
</code></pre>
<p>Das Problem liegt an <strong>xini_sec.data[i]</strong> aber ich weiß nicht was daran falsch seien sollte.<br />
Ich hoffe das ihr mir helfen könnt.</p>
<p>Grüße,<br />
gamebuntu</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/282814/probleme-beim-ausführen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 23 Aug 2026 02:46:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/282814.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Feb 2011 11:20:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme beim Ausführen on Sun, 27 Feb 2011 11:21:08 GMT]]></title><description><![CDATA[<p>Hi Leute<br />
ich versuch seit stunden diesen Fehler hier auszubessern aber ich weiß nicht was ich falsch mache.</p>
<p>Der Debugger gibt das hier aus:</p>
<pre><code class="language-cpp">#0 00000000	0x00422b92 in std::string::find() (??:??)
#1 00402F07	section(this=0x22ff1c, xini_sec=@0x22fe00, sec_name={static npos = 4294967295, _M_dataplus = {&lt;std::allocator&lt;char&gt;&gt; = {&lt;__gnu_cxx::new_allocator&lt;char&gt;&gt; = {&lt;No data fields&gt;}, &lt;No data fields&gt;}, _M_p = 0x22ff38 &quot;T&amp;&gt;&quot;}}) (E:/sicherung/ubuntu/Projekt/xini/xini.cpp:300)
#2 004041D3	main() (E:\sicherung\ubuntu\Projekt\xini\main.cpp:14)
</code></pre>
<p>xini.h:</p>
<pre><code class="language-cpp">class section;
class xini
{
    public:
    xini();
    xini(std::string path);
    ~xini();
/*...*/
    std::vector&lt;std::string&gt; data;

    private:
/*...*/
};

class section
{
    public:
    section(xini &amp;xini_sec, std::string sec_name);
/*...*/
    friend class xini;

    protected:
/*...*/
    std::vector&lt;std::string&gt; sec;
/*...*/

};
</code></pre>
<p>xini.cpp:</p>
<pre><code class="language-cpp">section::section(xini &amp;xini_sec, std::string sec_name)
{
    status=false;
    int an_kl, en_kl, an_pos=-1, en_pos=-1, j=-1, i=0;

    for(; i != xini_sec.data.size(); i++)
    {
        an_kl=xini_sec.data[i].find_first_of('[', 0);
        if(std::string::npos != an_kl)
        {
            en_kl = xini_sec.data[i].find_first_of(']', an_kl);
            if(std::string::npos != en_kl)
            {
/*
...
*/
            }
        }
    }
}
</code></pre>
<p>Das Problem liegt an <strong>xini_sec.data[i]</strong> aber ich weiß nicht was daran falsch seien sollte.<br />
Ich hoffe das ihr mir helfen könnt.</p>
<p>Grüße,<br />
gamebuntu</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2027170</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2027170</guid><dc:creator><![CDATA[CCodex]]></dc:creator><pubDate>Sun, 27 Feb 2011 11:21:08 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim Ausführen on Sun, 27 Feb 2011 11:30:54 GMT]]></title><description><![CDATA[<p>Da du nicht sagst, was der Fehler ist, und auch nur Programmfragmente lieferst: eher nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2027175</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2027175</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Sun, 27 Feb 2011 11:30:54 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim Ausführen on Sun, 27 Feb 2011 11:47:05 GMT]]></title><description><![CDATA[<p>Der Debugger zeigt an das der Fehler hier liegt:</p>
<p>an_kl = xini_sec.data[i].<strong>find_first_of('[', 0);</strong></p>
<p>Aber ich kann den Fehler daran nicht sehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2027182</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2027182</guid><dc:creator><![CDATA[CCodex]]></dc:creator><pubDate>Sun, 27 Feb 2011 11:47:05 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim Ausführen on Sun, 27 Feb 2011 11:53:49 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">for(; i &lt; xini_sec.data.size(); i++)
</code></pre>
<p>?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2027185</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2027185</guid><dc:creator><![CDATA[theliquidwave]]></dc:creator><pubDate>Sun, 27 Feb 2011 11:53:49 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim Ausführen on Sun, 27 Feb 2011 12:05:09 GMT]]></title><description><![CDATA[<p>Ja man kann auch so schreiben <strong>i</strong> ist hier :</p>
<p>int an_kl, en_kl, an_pos=-1, en_pos=-1, j=-1, <strong>i=0</strong>;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2027186</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2027186</guid><dc:creator><![CDATA[CCodex]]></dc:creator><pubDate>Sun, 27 Feb 2011 12:05:09 GMT</pubDate></item></channel></rss>