<?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[Martix Kasten]]></title><description><![CDATA[<p>Hallo kann mir nochmal einer helfen .... muss ein Matrix Kasten in C erstellen der die Spalten Zeilen und Zellenhöhe Zellenbreite abfragt.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/135676/martix-kasten</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 02:38:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/135676.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Feb 2006 00:39:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Martix Kasten on Sat, 04 Feb 2006 00:39:22 GMT]]></title><description><![CDATA[<p>Hallo kann mir nochmal einer helfen .... muss ein Matrix Kasten in C erstellen der die Spalten Zeilen und Zellenhöhe Zellenbreite abfragt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985412</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985412</guid><dc:creator><![CDATA[ICHDAS]]></dc:creator><pubDate>Sat, 04 Feb 2006 00:39:22 GMT</pubDate></item><item><title><![CDATA[Reply to Martix Kasten on Sat, 04 Feb 2006 00:47:51 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>ahja... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Falls du wirklich vernünftige Hilfe haben willst, dann schreib deine Frage nochmal präsize und verständlich.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985416</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985416</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 04 Feb 2006 00:47:51 GMT</pubDate></item><item><title><![CDATA[Reply to Martix Kasten on Sat, 04 Feb 2006 01:04:02 GMT]]></title><description><![CDATA[<p>kann ich dich per icq erreichen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985419</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985419</guid><dc:creator><![CDATA[ICHDAS]]></dc:creator><pubDate>Sat, 04 Feb 2006 01:04:02 GMT</pubDate></item><item><title><![CDATA[Reply to Martix Kasten on Sat, 04 Feb 2006 03:30:22 GMT]]></title><description><![CDATA[<p>Du sollst deine Frage hier stellen. Das will er damit sagen.<br />
Denn aus deiner Frage kann man nicht wirklich entnehmen wie das, was du machen willst/sollst, aussehen soll.</p>
<p>Das sollte dir beim stellen deiner Fragen helfen: <a href="http://www.lugbz.org/documents/smart-questions_de.html" rel="nofollow">http://www.lugbz.org/documents/smart-questions_de.html</a></p>
<p>BR<br />
evilissimo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985429</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985429</guid><dc:creator><![CDATA[evilissimo]]></dc:creator><pubDate>Sat, 04 Feb 2006 03:30:22 GMT</pubDate></item><item><title><![CDATA[Reply to Martix Kasten on Sat, 04 Feb 2006 10:19:01 GMT]]></title><description><![CDATA[<p><a href="http://turing.fh-landshut.de/~jamann/MatrixHtml/_matrix_8h-source.html" rel="nofollow">http://turing.fh-landshut.de/~jamann/MatrixHtml/_matrix_8h-source.html</a><br />
<a href="http://turing.fh-landshut.de/~jamann/MatrixTemplate.zip" rel="nofollow">http://turing.fh-landshut.de/~jamann/MatrixTemplate.zip</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/985490</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985490</guid><dc:creator><![CDATA[Vertexwahn]]></dc:creator><pubDate>Sat, 04 Feb 2006 10:19:01 GMT</pubDate></item><item><title><![CDATA[Reply to Martix Kasten on Sat, 04 Feb 2006 10:57:40 GMT]]></title><description><![CDATA[<p>#include &lt;stdio.h&gt;</p>
<p>int main()<br />
{<br />
int ObenLinks = 218,<br />
UntenLinks = 192,<br />
UntenRechts = 217,<br />
ObenRechts = 191,<br />
ObenUnten = 196,<br />
LinksRechts = 179,<br />
ObenSpalte = 194,<br />
LinksZeile = 195,<br />
MitteSpZe = 197,<br />
RechtZeile = 180,<br />
UntenSpalte = 193,<br />
Zeilen,<br />
Spalten,<br />
Breite,<br />
Hoehe;</p>
<p>printf(&quot;Geben Sie die Anzahle der Spalten ein: &quot;);<br />
scanf(&quot;%i&quot;, &amp;Spalten);<br />
printf(&quot;Geben Sie die Anzahl der Zeilen ein: &quot;);<br />
scanf(&quot;%i&quot;, &amp;Zeilen);<br />
printf(&quot;Geben Sie die Zellenbreite ein: &quot;);<br />
scanf(&quot;%i&quot;, &amp;Breite);<br />
printf(&quot;Geben Sie die Zellenhoehe ein: &quot;);<br />
scanf(&quot;%i&quot;, &amp;Hoehe);</p>
<p>printf(&quot;%c&quot;, ObenSpalte);<br />
for(int s = 0; s &lt; Spalten - 2; s++)<br />
{<br />
printf(&quot;%c&quot;, ObenUnten);<br />
}</p>
<p>printf(&quot;%c&quot;, LinksZeile);<br />
for(int d= 0; d &lt; Zeilen - 2; d++)</p>
<p>printf(&quot;%c&quot;, RechtZeile);<br />
for(int f = 0; f &lt; Breite - 2; f++)</p>
<p>printf(&quot;%c&quot;, UntenSpalte);<br />
for(int g = 0; g &lt; Hoehe - 2; g++)</p>
<p>printf(&quot;%c&quot;, ObenLinks);<br />
for(int j = 0; j &lt; Breite - 2; j++)<br />
{<br />
printf(&quot;%c&quot;, ObenUnten);<br />
}<br />
printf(&quot;%c\n&quot;, ObenRechts);<br />
Hoehe -= 2;<br />
for(int i = 0; i &lt; Hoehe; i++)<br />
{<br />
printf(&quot;%c&quot;, LinksRechts);<br />
for(int j = 0; j &lt; Breite - 2; j++)<br />
{<br />
printf(&quot; &quot;);<br />
}<br />
printf(&quot;%c\n&quot;, LinksRechts);<br />
}<br />
printf(&quot;%c&quot;, UntenLinks);<br />
for(j = 0; j &lt; Breite - 2; j++)<br />
{<br />
printf(&quot;%c&quot;, ObenUnten);<br />
}<br />
printf(&quot;%c&quot;, UntenRechts);<br />
printf(&quot;\n\n&quot;);<br />
return 0;<br />
}<br />
will das Programm irgendwie ändern damit ich einen Matrix Kasten mit n hor Spalten und n ver Zeilen erzeugt, die Zellenhöhe und Zellenbreite variable ist. Alle Parameter sollen vorher abgefragt werden.<br />
Ich blick da irgendwie nicht durch wie ich die for schleifen schreiben soll.<br />
DANKE</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985515</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985515</guid><dc:creator><![CDATA[DASICH]]></dc:creator><pubDate>Sat, 04 Feb 2006 10:57:40 GMT</pubDate></item><item><title><![CDATA[Reply to Martix Kasten on Sat, 04 Feb 2006 11:30:54 GMT]]></title><description><![CDATA[<p>da mußt du systematisch rangehen.</p>
<pre><code class="language-cpp">+-----+-----+-----+
  ^     ^     ^
  |     |     |
  |     |     Breite
  |    Breite
 Breite
</code></pre>
<p>du mußt Breite mal '-'-zeichen ausgeben. das mußt du dann Spalten mal wiederholen mit '+'-zeichen dazwischen. das erreicht du indem du die for-schleifen schachtelst:</p>
<pre><code class="language-cpp">cout&lt;&lt;&quot;+&quot;;
for(s=0; s&lt;Spalten; ++s)
{
  for(int b=0; b&lt;Breite; ++b)
  {
    cout&lt;&lt;&quot;-&quot;;
  }
  cout&lt;&lt;&quot;+&quot;;
}
cout&lt;&lt;endl;
</code></pre>
<p>nach dem selben prinzip baust du dann den rest des kastens.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985553</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985553</guid><dc:creator><![CDATA[Konfusius]]></dc:creator><pubDate>Sat, 04 Feb 2006 11:30:54 GMT</pubDate></item><item><title><![CDATA[Reply to Martix Kasten on Sat, 04 Feb 2006 11:53:57 GMT]]></title><description><![CDATA[<p>Das versteh ich nicht ganz ..... wie soll ich das genau machen.. soll ich dann die anderen Schleifen durch das cout ersetzen???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985568</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985568</guid><dc:creator><![CDATA[DASICH]]></dc:creator><pubDate>Sat, 04 Feb 2006 11:53:57 GMT</pubDate></item><item><title><![CDATA[Reply to Martix Kasten on Sat, 04 Feb 2006 12:45:16 GMT]]></title><description><![CDATA[<p>wenn das so reicht:<br />
kannst meine source codes haben, also als eine mögliche lösung...</p>
<pre><code>also so siehts bei mir aus im output...

-::matrix::-
(| 0.0000  |  4.000  |  8.000  |  12.00  |)
(|  1.000  |  5.000  |  9.000  |  13.00  |)
(|  2.000  |  6.000  |  10.00  |  14.00  |)
(|  3.000  |  7.000  |  11.00  |  15.00  |)
</code></pre>
<p>allerdings sind die klassen ansich vielleicht ein wenig kompliziert... weil die sind mit templates ein wenig optimiert...</p>
<p>ja gib mir ne email-addi und du bekommst sie gern...<br />
allerdings hab ich da ne maximal-länge eingebaut oder so... könntest natrülich auch eine dynamische spaltenlänge und breite machen... einfach mal berechenen wie viele stellen deine zahlen brauchen und dann schauen wieviele stellen maximal pro spalte benötigt werden und und und....</p>
<p>mfg Manuel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985599</guid><dc:creator><![CDATA[Manuelh87]]></dc:creator><pubDate>Sat, 04 Feb 2006 12:45:16 GMT</pubDate></item><item><title><![CDATA[Reply to Martix Kasten on Sat, 04 Feb 2006 12:48:13 GMT]]></title><description><![CDATA[<p><a href="mailto:danielscheibel@arcor.de" rel="nofollow">danielscheibel@arcor.de</a><br />
hast du icq oder ähnliches</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985600</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985600</guid><dc:creator><![CDATA[DASICH]]></dc:creator><pubDate>Sat, 04 Feb 2006 12:48:13 GMT</pubDate></item><item><title><![CDATA[Reply to Martix Kasten on Sat, 04 Feb 2006 14:05:30 GMT]]></title><description><![CDATA[<p>so... kann aber ein wenig dauern... yahoo ist irgendwie slow...</p>
<p>naja ich hoffe du kannst was damit anfangen, aber ist vielleicht ein wenig kompliziert.. schau dir halt vorallem den output an. einige header werden gar nicht verwendet, da hab ich nur einen unroll von einer normalen schleife, einer einfach geschachtelten und 2 fach geschachtelten gemacht, und dann erst nicht so benutzt... konzentrier dich halt auf die eine output funktion..</p>
<pre><code>template&lt;long dim&gt; std::ostream&amp; operator&lt;&lt;(std::ostream&amp; os, const sqrd_matrix&lt;dim&gt;&amp; rv)
</code></pre>
<p>wenn du generell ein objekt hast (matrix) dann kannst du einen operator&lt;&lt; für alle output stream dinge machen... also das sollte auch für files funktionieren.</p>
<p>einfach einen opertor&lt;&lt; mit diesen parametern machen und schon kannst deine objekte bequem mit cout ausgeben wie int's oder strings... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
<pre><code>std::ostream&amp; operator&lt;&lt;(std::ostream&amp; os, &lt;dein typ&gt;&amp; obj)
</code></pre>
<pre><code class="language-cpp">// bequeme ausgabe:
  ...
  ...
  &lt;dein type&gt; object;
  std::cout&lt;&lt;&quot;wert von meinem objekt: &quot;&lt;&lt;object&lt;&lt;std::endl;
  ...
  ...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/985677</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985677</guid><dc:creator><![CDATA[Manuelh87]]></dc:creator><pubDate>Sat, 04 Feb 2006 14:05:30 GMT</pubDate></item><item><title><![CDATA[Reply to Martix Kasten on Sat, 04 Feb 2006 14:46:09 GMT]]></title><description><![CDATA[<p>oh... sry... also wegen C</p>
<p>aber warum postest du das in c++??</p>
<p>in c gibts nat. kein cout... und templates und classen usw...<br />
mfg manuel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985734</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985734</guid><dc:creator><![CDATA[Manuelh87]]></dc:creator><pubDate>Sat, 04 Feb 2006 14:46:09 GMT</pubDate></item></channel></rss>