<?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[Fehlersuchen]]></title><description><![CDATA[<p>Hi, ich hab hier ab deb keydown ereigns nen fehler und kann ihn nicht finden -.-<br />
[C++Fehler] Unit1.cpp(53): Statement missing ;.</p>
<p>ich will endlich dasss mein prog. funzt, vllt. findet ihr dne fehler ja.</p>
<p>mfg</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------
#include &lt;vcl.h&gt;
#include &lt;stdlib.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
randomize();
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
    : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Ende1Click(TObject *Sender)
{
Close();    
}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction &amp;Action)
{
Action=caFree;
}
//---------------------------------------------------------------------------

void __fastcall TForm1::NeuerTipp1Click(TObject *Sender)
{
Panel1-&gt;Visible=true;
StringGrid1-&gt;Visible=true;
StringGrid1-&gt;Cells[0] [0]=&quot;Spiel&quot;;
StringGrid1-&gt;Cells[1] [0]=&quot;Tipp&quot;;
}

//---------------------------------------------------------------------------

void __fastcall TForm1::Edit1KeyDown(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
int i,j,zufall,anzahl;
if (Key==13)
 {

 StringGrid1-&gt;Width=StrToInt(Edit1-&gt;Text);
 anzahl=StrToInt(Edit1-&gt;Text);
 StringGrid1-&gt;ColCount=anzahl+1;
 StringGrid1-&gt;Width=41&quot;anzahl+3&quot;anzahl+StringGrid1-&gt;Colwidth(0);
 for(i=1;1&lt;=anzahl;i++)
 {
 StringGrid1-&gt;ColWidths[i]=40;

  }
   Panel1-&gt;Visible=false;
   for (j=1;j&lt;=anzahl;j++)
   {
     StringGrid1-&gt;Cells[j][0]=IntToStr(j)+&quot;.Tipp&quot;;
     for (i=1;i&lt;13;i++)
     {
     zufall=random(3);
        if (zufall==0)
         {
        StringGrid1-&gt;Cells[j][1]=&quot;1&quot;;
         }
          else
         {
         StringGrid1-&gt;Cells[j][i]=IntToStr(zufall);
         }
     }
  }

  }
 }

//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/178149/fehlersuchen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 08:50:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/178149.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 08 Apr 2007 08:50:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehlersuchen on Sun, 08 Apr 2007 08:50:28 GMT]]></title><description><![CDATA[<p>Hi, ich hab hier ab deb keydown ereigns nen fehler und kann ihn nicht finden -.-<br />
[C++Fehler] Unit1.cpp(53): Statement missing ;.</p>
<p>ich will endlich dasss mein prog. funzt, vllt. findet ihr dne fehler ja.</p>
<p>mfg</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------
#include &lt;vcl.h&gt;
#include &lt;stdlib.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
randomize();
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
    : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Ende1Click(TObject *Sender)
{
Close();    
}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction &amp;Action)
{
Action=caFree;
}
//---------------------------------------------------------------------------

void __fastcall TForm1::NeuerTipp1Click(TObject *Sender)
{
Panel1-&gt;Visible=true;
StringGrid1-&gt;Visible=true;
StringGrid1-&gt;Cells[0] [0]=&quot;Spiel&quot;;
StringGrid1-&gt;Cells[1] [0]=&quot;Tipp&quot;;
}

//---------------------------------------------------------------------------

void __fastcall TForm1::Edit1KeyDown(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
int i,j,zufall,anzahl;
if (Key==13)
 {

 StringGrid1-&gt;Width=StrToInt(Edit1-&gt;Text);
 anzahl=StrToInt(Edit1-&gt;Text);
 StringGrid1-&gt;ColCount=anzahl+1;
 StringGrid1-&gt;Width=41&quot;anzahl+3&quot;anzahl+StringGrid1-&gt;Colwidth(0);
 for(i=1;1&lt;=anzahl;i++)
 {
 StringGrid1-&gt;ColWidths[i]=40;

  }
   Panel1-&gt;Visible=false;
   for (j=1;j&lt;=anzahl;j++)
   {
     StringGrid1-&gt;Cells[j][0]=IntToStr(j)+&quot;.Tipp&quot;;
     for (i=1;i&lt;13;i++)
     {
     zufall=random(3);
        if (zufall==0)
         {
        StringGrid1-&gt;Cells[j][1]=&quot;1&quot;;
         }
          else
         {
         StringGrid1-&gt;Cells[j][i]=IntToStr(zufall);
         }
     }
  }

  }
 }

//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1261515</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1261515</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Sun, 08 Apr 2007 08:50:28 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlersuchen on Sun, 08 Apr 2007 08:52:57 GMT]]></title><description><![CDATA[<p>Der Compiler kann mit</p>
<pre><code class="language-cpp">41&quot;anzahl+3&quot;anzahl
</code></pre>
<p>nichts anfangen. Was soll das denn bewirken?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1261517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1261517</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sun, 08 Apr 2007 08:52:57 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlersuchen on Sun, 08 Apr 2007 10:41:15 GMT]]></title><description><![CDATA[<p>keine ahnung. ich versteh eh alles, bis auf das!<br />
ich hab den code auch nicht von mir. Ich hab den abgeschrieben und hab mich wohl verschrieben.</p>
<p>wie könnte das denn richtig lauten? wenn man das wegtut oder so ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1261563</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1261563</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Sun, 08 Apr 2007 10:41:15 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlersuchen on Wed, 11 Apr 2007 05:58:22 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>es könnte zum Beispiel so aussehen:</p>
<pre><code class="language-cpp">StringGrid1-&gt;Width = 41 + anzahl + 3 + anzahl + StringGrid1-&gt;Colwidth(0); 
//oder zusammengefasst
StringGrid1-&gt;Width = 41 + (anzahl*2) + 3 + StringGrid1-&gt;Colwidth(0); 
//oder noch weiter zusammengefasst
StringGrid1-&gt;Width = 44 + (anzahl*2) + StringGrid1-&gt;Colwidth(0);
</code></pre>
<p>Aber im allgemeinen sieht das auch sehr Individuell aus und müsste vielleicht angepasst werden...</p>
<p>mfg, Micha!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1263474</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1263474</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 11 Apr 2007 05:58:22 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlersuchen on Wed, 11 Apr 2007 17:37:12 GMT]]></title><description><![CDATA[<p>Danke!</p>
<p>[C++Fehler] Unit1.cpp(53): 'Colwidth' is not a member of 'Grids::TStringGrid'.</p>
<p>was nun?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264053</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Wed, 11 Apr 2007 17:37:12 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlersuchen on Wed, 11 Apr 2007 17:42:23 GMT]]></title><description><![CDATA[<p>Einfach mal ein bisschen nachdenken. Was könnte RandomAccess denn wohl gemeint haben? Nicht alles nur abschreiben, sondern auch hinterfragen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264057</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264057</guid><dc:creator><![CDATA[Rostfrei**]]></dc:creator><pubDate>Wed, 11 Apr 2007 17:42:23 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlersuchen on Wed, 11 Apr 2007 17:48:40 GMT]]></title><description><![CDATA[<p>ja ich muss dass erst zum TString machen, oder so ne?<br />
TString Colwidth; ??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264064</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264064</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Wed, 11 Apr 2007 17:48:40 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlersuchen on Wed, 11 Apr 2007 20:36:30 GMT]]></title><description><![CDATA[<p>Nein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264195</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264195</guid><dc:creator><![CDATA[Rostfrei**]]></dc:creator><pubDate>Wed, 11 Apr 2007 20:36:30 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlersuchen on Thu, 12 Apr 2007 11:27:38 GMT]]></title><description><![CDATA[<p>wie dann?<br />
ich weiß es nicht! du darfst mir helfen <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/1264541</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264541</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Thu, 12 Apr 2007 11:27:38 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlersuchen on Thu, 12 Apr 2007 11:57:44 GMT]]></title><description><![CDATA[<p>hola</p>
<p>LoSt schrieb:</p>
<blockquote>
<p>du darfst mir helfen <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>
</blockquote>
<p>auch ne netten formulierung.</p>
<p>'Colwidth' gibt es in TStringGrid nicht. dafuer aber ein 'ColWidths'<br />
guck in der hilfe nach wie es zu benutzen ist.</p>
<p>Meep Meep</p>
<p>PS:</p>
<p>LoSt schrieb:</p>
<blockquote>
<p>ich hab den code auch nicht von mir. Ich hab den abgeschrieben und hab mich wohl verschrieben.</p>
</blockquote>
<p>wo hast du den code dann abgeschrieben ? kannst da nicht nochmal nachgucken und richtig abschreiben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264568</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264568</guid><dc:creator><![CDATA[Meep Meep]]></dc:creator><pubDate>Thu, 12 Apr 2007 11:57:44 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlersuchen on Thu, 12 Apr 2007 12:21:58 GMT]]></title><description><![CDATA[<p>dankschen</p>
<pre><code class="language-cpp">StringGrid1-&gt;Width=41 + anzahl + 3 + anzahl + StringGrid1-&gt;ColWidths(0);
</code></pre>
<p>so hab ichs jetzt</p>
<p>[C++Fehler] Unit1.cpp(53): Call of nonfunction.</p>
<p>was heißt das und wie kann ich den neuen fehler beheben? -.-</p>
<p>Die Hilfe geht bei mir nicht. &quot; / von Windows kann nicht herundergeladen werden&quot;..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264608</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264608</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Thu, 12 Apr 2007 12:21:58 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlersuchen on Thu, 12 Apr 2007 12:41:51 GMT]]></title><description><![CDATA[<p>Du musst bei ColWidths eckige Klammern nutzen.</p>
<pre><code>Indicates the width (in pixels) of all the columns in the grid.

__property int ColWidths[int Index] = {read=GetColWidths, write
=SetColWidths};
</code></pre>
<p>Schreib doch am Besten gleich, dass Du keine Hilfe hast, sonst wird man Dich sehr oft darauf verweisen. Ich kann Dir aber nur raten, schnellstmöglich Deine Hilfe zum Laufen zu bekommen. Man braucht sie immer und immer wieder! <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/1264626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264626</guid><dc:creator><![CDATA[Rostfrei**]]></dc:creator><pubDate>Thu, 12 Apr 2007 12:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlersuchen on Thu, 12 Apr 2007 15:48:08 GMT]]></title><description><![CDATA[<p>Rostfrei[] schrieb:</p>
<blockquote>
<p>Schreib doch am Besten gleich, dass Du keine Hilfe hast</p>
</blockquote>
<p>Schreib das lieber nicht, sondern sieh zu, dass du die Hilfe in Gang bekommst. Das Forum ist <strong>nicht</strong> als Ersatz gedacht!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264788</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264788</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Thu, 12 Apr 2007 15:48:08 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlersuchen on Thu, 12 Apr 2007 16:47:34 GMT]]></title><description><![CDATA[<p>und wie kann ich das machen?</p>
<p>achja das prog. geht zwar aber IRGENTWIE..<br />
wer mir vllt. helfen kann, soll sich melden muha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264830</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264830</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Thu, 12 Apr 2007 16:47:34 GMT</pubDate></item></channel></rss>