<?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 bedeutet inf?]]></title><description><![CDATA[<p>Hi, ich habe versucht ein Programm zur Kalkulation von 3 Variablen zu schreiben.</p>
<p>Dabi bekomme ich immer als Ergebnis &quot;Zahl und #inf&quot; oder &quot;Zahl und #ind&quot;.<br />
Könnt ihr mit weiterhelfen?</p>
<pre><code class="language-cpp">//Programm: Gauss_3.cpp
//zuletzt geaendert am: 09.10.2009

#include &lt;iostream&gt;
#include &lt;conio.h&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
  int i=1;
  float xw1, xw2, xw3, yw1, yw2, yw3, zw1, zw2, zw3, s1, s2, s3;
  float xx, yy, ss, zz, x1a, x2a, y1a, y2a, z1a, z2a, s1a, s2a, xraus, yraus, zraus;
  std::string x, y, z;                          //Variablennamen

  //Wertabfragen
  //Variablennamen
  cout&lt;&lt;endl&lt;&lt;endl&lt;&lt;&quot;1. Variable (Buchstabe oder Wort) eingeben: &quot;;
  cin&gt;&gt;x;
  cout&lt;&lt;&quot;2. Variable (Buchstabe oder Wort) eingeben: &quot;;
  cin&gt;&gt;y;
  cout&lt;&lt;&quot;3. Variable (Buchstabe oder Wort) eingeben: &quot;;
  cin&gt;&gt;z;
  //1. Gleichung
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;xw1;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;yw1;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;zw1;
  cout&lt;&lt;&quot;Summe der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;s1;
  //2. Gleichung
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;xw2;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;yw2;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;zw2;
  cout&lt;&lt;&quot;Summe der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;s2;
  //3. Gleichung
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;xw3;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;yw3;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;zw3;
  cout&lt;&lt;&quot;Summe der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;s3;

  //Berechnung 
  x1a=(xw1*xw2)-(xw2*xw1);
  y1a=(yw1*xw2)-(yw2*xw1);
  z1a=(zw1*xw2)-(zw2*xw1);
  s1a=(s1*xw2)-(s2*xw1);

  x2a=(xw3*xw2)-(xw2*xw3);
  y2a=(yw3*xw2)-(yw2*xw3);
  z2a=(zw3*xw2)-(zw2*xw3);
  s2a=(s3*xw2)-(s2*xw3);

  yy=(y1a*y2a)-(y2a*y1a);
  zz=(z1a*y2a)-(z2a*y1a);
  ss=(s1a*y2a)-(s2a*y1a);

  xraus=(s2a-zraus*z2a-yraus*y2a)/x2a;
  yraus=(s2a-zraus*z2a)/y2a;
  zraus=ss/zz;

  //Ausgabe
  cout&lt;&lt;x&lt;&lt;&quot; = &quot;&lt;&lt;xraus&lt;&lt;endl;
  cout&lt;&lt;y&lt;&lt;&quot; = &quot;&lt;&lt;yraus&lt;&lt;endl;
  cout&lt;&lt;z&lt;&lt;&quot; = &quot;&lt;&lt;zraus&lt;&lt;endl;
  cout&lt;&lt;endl&lt;&lt;&quot;Zum Beenden Taste bet&quot;&lt;&lt;char(132)&lt;&lt;&quot;tigen...&quot;;

  getch();
  return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/251739/was-bedeutet-inf</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 20:27:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/251739.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Oct 2009 15:20:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Was bedeutet inf? on Fri, 09 Oct 2009 15:20:22 GMT]]></title><description><![CDATA[<p>Hi, ich habe versucht ein Programm zur Kalkulation von 3 Variablen zu schreiben.</p>
<p>Dabi bekomme ich immer als Ergebnis &quot;Zahl und #inf&quot; oder &quot;Zahl und #ind&quot;.<br />
Könnt ihr mit weiterhelfen?</p>
<pre><code class="language-cpp">//Programm: Gauss_3.cpp
//zuletzt geaendert am: 09.10.2009

#include &lt;iostream&gt;
#include &lt;conio.h&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
  int i=1;
  float xw1, xw2, xw3, yw1, yw2, yw3, zw1, zw2, zw3, s1, s2, s3;
  float xx, yy, ss, zz, x1a, x2a, y1a, y2a, z1a, z2a, s1a, s2a, xraus, yraus, zraus;
  std::string x, y, z;                          //Variablennamen

  //Wertabfragen
  //Variablennamen
  cout&lt;&lt;endl&lt;&lt;endl&lt;&lt;&quot;1. Variable (Buchstabe oder Wort) eingeben: &quot;;
  cin&gt;&gt;x;
  cout&lt;&lt;&quot;2. Variable (Buchstabe oder Wort) eingeben: &quot;;
  cin&gt;&gt;y;
  cout&lt;&lt;&quot;3. Variable (Buchstabe oder Wort) eingeben: &quot;;
  cin&gt;&gt;z;
  //1. Gleichung
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;xw1;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;yw1;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;zw1;
  cout&lt;&lt;&quot;Summe der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;s1;
  //2. Gleichung
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;xw2;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;yw2;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;zw2;
  cout&lt;&lt;&quot;Summe der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;s2;
  //3. Gleichung
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;xw3;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;yw3;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;zw3;
  cout&lt;&lt;&quot;Summe der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;s3;

  //Berechnung 
  x1a=(xw1*xw2)-(xw2*xw1);
  y1a=(yw1*xw2)-(yw2*xw1);
  z1a=(zw1*xw2)-(zw2*xw1);
  s1a=(s1*xw2)-(s2*xw1);

  x2a=(xw3*xw2)-(xw2*xw3);
  y2a=(yw3*xw2)-(yw2*xw3);
  z2a=(zw3*xw2)-(zw2*xw3);
  s2a=(s3*xw2)-(s2*xw3);

  yy=(y1a*y2a)-(y2a*y1a);
  zz=(z1a*y2a)-(z2a*y1a);
  ss=(s1a*y2a)-(s2a*y1a);

  xraus=(s2a-zraus*z2a-yraus*y2a)/x2a;
  yraus=(s2a-zraus*z2a)/y2a;
  zraus=ss/zz;

  //Ausgabe
  cout&lt;&lt;x&lt;&lt;&quot; = &quot;&lt;&lt;xraus&lt;&lt;endl;
  cout&lt;&lt;y&lt;&lt;&quot; = &quot;&lt;&lt;yraus&lt;&lt;endl;
  cout&lt;&lt;z&lt;&lt;&quot; = &quot;&lt;&lt;zraus&lt;&lt;endl;
  cout&lt;&lt;endl&lt;&lt;&quot;Zum Beenden Taste bet&quot;&lt;&lt;char(132)&lt;&lt;&quot;tigen...&quot;;

  getch();
  return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1790227</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790227</guid><dc:creator><![CDATA[Phisherman]]></dc:creator><pubDate>Fri, 09 Oct 2009 15:20:22 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet inf? on Fri, 09 Oct 2009 15:25:01 GMT]]></title><description><![CDATA[<p>inf bedeutet infinite, also Unendlich (∞), kommt meißtens dann, wenn du irgendwo durch 0 teilst bei fließkommezahlen (bei Integern stürzt das Programm ab).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1790229</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790229</guid><dc:creator><![CDATA[Krux]]></dc:creator><pubDate>Fri, 09 Oct 2009 15:25:01 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet inf? on Fri, 09 Oct 2009 16:31:16 GMT]]></title><description><![CDATA[<p>Hier die verbesserte Version, die auch, zumindest mathematisch, korrekt ist:<br />
Wieso solche skurillen Zahlen angezeigt werden, wüsste ich noch gern.<br />
Kann man die Ergebnisse so kürzen, dass keine Zehnerpotenz mehr dargestellt wird?</p>
<p>Mit den Gleichungen<br />
I. 2x+z=6<br />
II. 4x+2y=12<br />
III. 3x+2y+5z=10</p>
<p>bekomme ich auf Papier die Werte x=2,909091, y=0,181818 und z=0,181818.<br />
Diese stimmen auch hundertprozentig.</p>
<pre><code class="language-cpp">//Programm: Gauss_3.cpp
//zuletzt geaendert am: 09.10.2009

#include &lt;iostream&gt;
#include &lt;conio.h&gt;
#include &lt;windows.h&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
  int i=1;
  float xw1, xw2, xw3, yw1, yw2, yw3, zw1, zw2, zw3, s1, s2, s3;
  float xx, yy, ss, zz, x1a, x2a, y1a, y2a, z1a, z2a, s1a, s2a, xraus, yraus, zraus;
  std::string x, y, z;                          //Variablennamen

  //Wertabfragen
  //Variablennamen
  cout&lt;&lt;endl&lt;&lt;endl&lt;&lt;&quot;1. Variable (Buchstabe oder Wort) eingeben: &quot;;
  cin&gt;&gt;x;
  cout&lt;&lt;&quot;2. Variable (Buchstabe oder Wort) eingeben: &quot;;
  cin&gt;&gt;y;
  cout&lt;&lt;&quot;3. Variable (Buchstabe oder Wort) eingeben: &quot;;
  cin&gt;&gt;z;
  //1. Gleichung
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;xw1;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;yw1;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;zw1;
  cout&lt;&lt;&quot;Summe der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;s1;
  //2. Gleichung
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;xw2;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;yw2;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;zw2;
  cout&lt;&lt;&quot;Summe der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;s2;
  //3. Gleichung
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;xw3;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;yw3;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;zw3;
  cout&lt;&lt;&quot;Summe der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;s3;

  //Berechnung 
  x1a=(xw1*xw2)-(xw2*xw1);
  y1a=(yw1*xw2)-(yw2*xw1);
  z1a=(zw1*xw2)-(zw2*xw1);
  s1a=(s1*xw2)-(s2*xw1);

  x2a=(xw3*xw2)-(xw2*xw3);
  y2a=(yw3*xw2)-(yw2*xw3);
  z2a=(zw3*xw2)-(zw2*xw3);
  s2a=(s3*xw2)-(s2*xw3);

  yy=(y1a*y2a)-(y2a*y1a);
  zz=(z1a*y2a)-(z2a*y1a);
  ss=(s1a*y2a)-(s2a*y1a);

  xraus=(s2a-zraus*z2a-yraus*y2a)/x2a;
  yraus=(s2a-zraus*z2a)/y2a;
  zraus=ss/zz;

  //Ausgabe
  cout&lt;&lt;x&lt;&lt;&quot; = &quot;&lt;&lt;xraus&lt;&lt;endl;
  cout&lt;&lt;y&lt;&lt;&quot; = &quot;&lt;&lt;yraus&lt;&lt;endl;
  cout&lt;&lt;z&lt;&lt;&quot; = &quot;&lt;&lt;zraus&lt;&lt;endl;
  cout&lt;&lt;endl&lt;&lt;&quot;Zum Beenden Taste bet&quot;&lt;&lt;char(132)&lt;&lt;&quot;tigen...&quot;;

  getch();
  return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1790258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790258</guid><dc:creator><![CDATA[Phisherman]]></dc:creator><pubDate>Fri, 09 Oct 2009 16:31:16 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet inf? on Fri, 09 Oct 2009 16:32:14 GMT]]></title><description><![CDATA[<p>Upps, das war der falsche Code.<br />
Ich meine diesen hier:</p>
<pre><code class="language-cpp">//Programm: Gauss_3_1.cpp
//zuletzt geaendert am: 09.10.2009

#include &lt;iostream&gt;
#include &lt;conio.h&gt;
#include &lt;windows.h&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
  int i=1;
  float x1,x2,x3,x1a,x2a,xx, y1,y2,y3,y1a,y2a,yy, z1,z2,z3,z1a,z2a,zz, s1,s2,s3,s1a,s2a,ss;
  float xraus, yraus, zraus;
  std::string x, y, z;                          //Variablennamen

  //Intro
  while (i&lt;=17)
     {
      cout&lt;&lt;char(178);
      Sleep(10);
      i++;
     }
  cout&lt;&lt;&quot;&gt; Phisherman Apps. &lt;&quot;;
  while (i&lt;=34)
     {
      cout&lt;&lt;char(178);
      Sleep(10);
      i++;
     }
  cout&lt;&lt;endl&lt;&lt;&quot;  Programm zur Kalkulation von 3 Variablen per Gauss&quot;&lt;&lt;endl;
  while (i&lt;=88)
     {
      cout&lt;&lt;char(178);
      Sleep(10);
      i++;
     }

  //Wertabfragen
  //Variablennamen
  cout&lt;&lt;endl&lt;&lt;endl&lt;&lt;&quot;1. Variable (Buchstabe oder Wort) eingeben: &quot;;
  cin&gt;&gt;x;
  cout&lt;&lt;&quot;2. Variable (Buchstabe oder Wort) eingeben: &quot;;
  cin&gt;&gt;y;
  cout&lt;&lt;&quot;3. Variable (Buchstabe oder Wort) eingeben: &quot;;
  cin&gt;&gt;z;
  //1. Gleichung
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;x1;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;y1;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;z1;
  cout&lt;&lt;&quot;Summe der 1. Gleichung eingeben: &quot;;
  cin&gt;&gt;s1;
  //2. Gleichung
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;x2;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;y2;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;z2;
  cout&lt;&lt;&quot;Summe der 2. Gleichung eingeben: &quot;;
  cin&gt;&gt;s2;
  //3. Gleichung
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;x3;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;y3;
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;z3;
  cout&lt;&lt;&quot;Summe der 3. Gleichung eingeben: &quot;;
  cin&gt;&gt;s3;

  //Berechnung 
  y1a=(y1*x2)-(y2*x1);
  z1a=(z1*x2)-(z2*x1);
  s1a=(s1*x2)-(s2*x1);

  y2a=(y3*x2)-(y2*x3);
  z2a=(z3*x2)-(z2*x3);
  s2a=(s3*x2)-(s2*x3);

  yy=(y1a*y2a)-(y2a*y1a);
  zz=(z1a*y2a)-(z2a*y1a);
  ss=(s1a*y2a)-(s2a*y1a);

  xraus=(s1-yraus*y1-zraus*z1)/x1;
  yraus=(s2a-zraus*z2a)/y2a;
  zraus=ss/zz;

  //Ausgabe
  cout&lt;&lt;x&lt;&lt;&quot; = &quot;&lt;&lt;xraus&lt;&lt;endl;
  cout&lt;&lt;y&lt;&lt;&quot; = &quot;&lt;&lt;yraus&lt;&lt;endl;
  cout&lt;&lt;z&lt;&lt;&quot; = &quot;&lt;&lt;zraus&lt;&lt;endl;
  cout&lt;&lt;endl&lt;&lt;&quot;Zum Beenden Taste bet&quot;&lt;&lt;char(132)&lt;&lt;&quot;tigen...&quot;;

  getch();
  return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1790259</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790259</guid><dc:creator><![CDATA[Phisherman]]></dc:creator><pubDate>Fri, 09 Oct 2009 16:32:14 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet inf? on Sat, 10 Oct 2009 15:10:59 GMT]]></title><description><![CDATA[<p>Kann mir keiner helfen <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/1790615</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790615</guid><dc:creator><![CDATA[Phisherman]]></dc:creator><pubDate>Sat, 10 Oct 2009 15:10:59 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet inf? on Sat, 10 Oct 2009 15:15:37 GMT]]></title><description><![CDATA[<p>Bestimmt. Aber sicher hat niemand Lust hier 100 Zeilen Code zu lesen. Versuch entweder den Code auf das wesentliche zu reduzieren oder noch besser, lass dir mehr Zwischenergebnisse aussuchen.</p>
<p><a href="http://en.wikipedia.org/wiki/Floating_Point#Infinities" rel="nofollow">http://en.wikipedia.org/wiki/Floating_Point#Infinities</a><br />
<a href="http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.22.6768" rel="nofollow">http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.22.6768</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1790620</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790620</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Sat, 10 Oct 2009 15:15:37 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet inf? on Sat, 10 Oct 2009 16:07:20 GMT]]></title><description><![CDATA[<p>ich hab den thread sofort wieder geschlossen gehabt, weil der code einfach mal unter aller sau ist...<br />
aber hauptsache, du postest irgend nen 20-zeilen-super-tolle-werbung-anzeige-bla mit.</p>
<pre><code class="language-cpp">int main() 
{ 
  int i=1; 
  float x1,x2,x3,x1a,x2a,xx, y1,y2,y3,y1a,y2a,yy, z1,z2,z3,z1a,z2a,zz, s1,s2,s3,s1a,s2a,ss; 
  float xraus, yraus, zraus; 
  std::string x, y, z;                          //Variablennamen
</code></pre>
<p>aha... super idee... und super namen<br />
der kommentar ist auch klasse...</p>
<pre><code class="language-cpp">//Intro 
  while (i&lt;=17) 
     { 
      cout&lt;&lt;char(178); 
      Sleep(10); 
      i++; 
     } 
  cout&lt;&lt;&quot;&gt; Phisherman Apps. &lt;&quot;; 
  while (i&lt;=34) 
     { 
      cout&lt;&lt;char(178); 
      Sleep(10); 
      i++; 
     } 
  cout&lt;&lt;endl&lt;&lt;&quot;  Programm zur Kalkulation von 3 Variablen per Gauss&quot;&lt;&lt;endl; 
  while (i&lt;=88) 
     { 
      cout&lt;&lt;char(178); 
      Sleep(10); 
      i++; 
     }
</code></pre>
<p>wieso postest du son dreck mit, wenn du nen fehler suchst?</p>
<pre><code class="language-cpp">//Wertabfragen 
  //Variablennamen
</code></pre>
<p>Jz versteh ich auch den Kommentar von oben - allerdings für sich allein gesehen sollten Kommentare da sein, um Code zu verstehen und nicht der Code soll die Kommentare erklären xD<br />
Wie wärs, einfach buchstaben für variablen zu nehmen?<br />
Kann man bei x anfangen und bis z gehen und wenns noch mehr geben sollte fängt man halt bei a an - oder fängst gleich von a an...</p>
<pre><code class="language-cpp">cout&lt;&lt;endl&lt;&lt;endl&lt;&lt;&quot;1. Variable (Buchstabe oder Wort) eingeben: &quot;; 
  cin&gt;&gt;x; 
  cout&lt;&lt;&quot;2. Variable (Buchstabe oder Wort) eingeben: &quot;; 
  cin&gt;&gt;y; 
  cout&lt;&lt;&quot;3. Variable (Buchstabe oder Wort) eingeben: &quot;; 
  cin&gt;&gt;z;
</code></pre>
<p>Wie wärs mit &quot;Bezeichnung&quot; oder &quot;Variablenname&quot; eingeben?</p>
<pre><code class="language-cpp">//1. Gleichung 
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;; 
  cin&gt;&gt;x1; 
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;; 
  cin&gt;&gt;y1; 
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 1. Gleichung eingeben: &quot;; 
  cin&gt;&gt;z1; 
  cout&lt;&lt;&quot;Summe der 1. Gleichung eingeben: &quot;; 
  cin&gt;&gt;s1; 
  //2. Gleichung 
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;; 
  cin&gt;&gt;x2; 
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;; 
  cin&gt;&gt;y2; 
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 2. Gleichung eingeben: &quot;; 
  cin&gt;&gt;z2; 
  cout&lt;&lt;&quot;Summe der 2. Gleichung eingeben: &quot;; 
  cin&gt;&gt;s2; 
  //3. Gleichung 
  cout&lt;&lt;endl&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;x&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;; 
  cin&gt;&gt;x3; 
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;y&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;; 
  cin&gt;&gt;y3; 
  cout&lt;&lt;&quot;Wert von \&quot;&quot;&lt;&lt;z&lt;&lt;&quot;\&quot; der 3. Gleichung eingeben: &quot;; 
  cin&gt;&gt;z3; 
  cout&lt;&lt;&quot;Summe der 3. Gleichung eingeben: &quot;; 
  cin&gt;&gt;s3;
</code></pre>
<p>stichwort wäre hier wohl array + schleife - wenn man sich nen kleines struct für variablen baut, würde das noch viel mehr vereinfachen...</p>
<pre><code class="language-cpp">//Berechnung 
  y1a=(y1*x2)-(y2*x1); 
  z1a=(z1*x2)-(z2*x1); 
  s1a=(s1*x2)-(s2*x1); 

  y2a=(y3*x2)-(y2*x3); 
  z2a=(z3*x2)-(z2*x3); 
  s2a=(s3*x2)-(s2*x3); 

  yy=(y1a*y2a)-(y2a*y1a); 
  zz=(z1a*y2a)-(z2a*y1a); 
  ss=(s1a*y2a)-(s2a*y1a);
</code></pre>
<p>wie wäre es, die variablen auch erst hier zu deklarieren?<br />
bis jz hast du sie noch nicht gebraucht...</p>
<pre><code class="language-cpp">xraus=(s1-yraus*y1-zraus*z1)/x1; 
  yraus=(s2a-zraus*z2a)/y2a; 
  zraus=ss/zz; 

  //Ausgabe 
  cout&lt;&lt;x&lt;&lt;&quot; = &quot;&lt;&lt;xraus&lt;&lt;endl; 
  cout&lt;&lt;y&lt;&lt;&quot; = &quot;&lt;&lt;yraus&lt;&lt;endl; 
  cout&lt;&lt;z&lt;&lt;&quot; = &quot;&lt;&lt;zraus&lt;&lt;endl; 
  cout&lt;&lt;endl&lt;&lt;&quot;Zum Beenden Taste bet&quot;&lt;&lt;char(132)&lt;&lt;&quot;tigen...&quot;;
</code></pre>
<p>ae &gt; char(132) !</p>
<pre><code class="language-cpp">getch(); 
  return 0; 
}
</code></pre>
<p>return 0; ist bei der main-fkt nicht notwendig - aber ansonsten hab ich zumindest an dem stück code nichts aussetzen^^</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1790644</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790644</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Sat, 10 Oct 2009 16:07:20 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet inf? on Sat, 10 Oct 2009 16:42:56 GMT]]></title><description><![CDATA[<p>unskilled schrieb:</p>
<blockquote>
<p>wie wäre es, die variablen auch erst hier zu deklarieren?</p>
</blockquote>
<p>das würde auch das gesuchte Problem in einen Fehler beim Compilieren umwandeln...</p>
<blockquote>
<p>- aber ansonsten hab ich zumindest an dem stück code nichts aussetzen^^</p>
</blockquote>
<p>abgesehen von dem getch(), dass ich nicht kenne und unbekannten headern wie conio.h und windows.h: entweder sind diese relevant, dann ist das im falschen Forum, oder überflüssig und haben hier nichts zu suchen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1790660</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790660</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Sat, 10 Oct 2009 16:42:56 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet inf? on Sat, 10 Oct 2009 17:34:49 GMT]]></title><description><![CDATA[<p>camper schrieb:</p>
<blockquote>
<p>unskilled schrieb:</p>
<blockquote>
<p>wie wäre es, die variablen auch erst hier zu deklarieren?</p>
</blockquote>
<p>das würde auch das gesuchte Problem in einen Fehler beim Compilieren umwandeln...</p>
</blockquote>
<p>kA - gut möglich, aber ich werds mir nicht angucken^^</p>
<p>camper schrieb:</p>
<blockquote>
<p>unskilled schrieb:</p>
<blockquote>
<p>- aber ansonsten hab ich zumindest an dem stück code nichts aussetzen^^</p>
</blockquote>
<p>abgesehen von dem getch(), dass ich nicht kenne und unbekannten headern wie conio.h und windows.h: entweder sind diese relevant, dann ist das im falschen Forum, oder überflüssig und haben hier nichts zu suchen.</p>
</blockquote>
<p>conio.h ^^<br />
und ja, ist überflüssig (funktionalität sollte &quot;einfach auf nen (beliebigen) tastendruck warten&quot; sein)<br />
und hab doch was auszusetzen <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="😃"
    /><br />
getch() ist ja deprecated und das sagt einem MSVC -zumindest auf W4- auch... der sagt so gar, wie man das behebt: _getch() nehmen... ist mir nur gerade wieder eingefallen^^</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1790683</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790683</guid><dc:creator><![CDATA[unskilled @logged-off]]></dc:creator><pubDate>Sat, 10 Oct 2009 17:34:49 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet inf? on Sat, 10 Oct 2009 19:41:42 GMT]]></title><description><![CDATA[<p>Ich habe doch geschrieben, dass ich aus Versehen den falschen Code gepostet habe.</p>
<p>Ich konnte es eben nicht editieren, nachdem ich den Code mit &quot;Werbung&quot; gepostet habe, weil ich mich eben erst angemeldet habe...</p>
<p>Ich habe if-Anweisungen benutzt, weil ich noch nicht mehr im Informatikunterricht erlernt habe. Dort haben wir IMMER <strong>conio.h</strong> eingebunden.<br />
<strong>windows.h</strong> ist für die Werbung (Sleep).</p>
<p>Es ist eben nicht jeder so ein super Programmierer oder hockt den ganzen Tag vorm Kasten und lernt die Sprache.</p>
<p>Könnt ihr mir jetzt noch sagen, wie ich die Werte abrunde oder bin ich euch nicht Geek genug? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Hier habe ich noch eine Wertetabelle. FALLS es jemandem was bringen sollte:<br />
<a href="http://www.loaditup.de/files/411960.pdf" rel="nofollow">http://www.loaditup.de/files/411960.pdf</a></p>
<p>Meiner Meinung nach ist der ganze Code wichtig, dass man überhaupt erstmal versteht, was die Berechnungen bedeuten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1790708</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790708</guid><dc:creator><![CDATA[Phisherman]]></dc:creator><pubDate>Sat, 10 Oct 2009 19:41:42 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet inf? on Sat, 10 Oct 2009 19:38:12 GMT]]></title><description><![CDATA[<p>Phisherman schrieb:</p>
<blockquote>
<p>Könnt ihr mir jetzt noch sagen, wie ich die Werte abrunde oder bin ich euch nicht Geek genug? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
</blockquote>
<p>Ich hab dir x Dinge gegeben, die du zu erst verbessern solltest und danach kannst du noch mal fragen...<br />
Im übrigen hat das auch nichts mit nicht Geek genug zu tun - es ist für uns auch arbeit, den fehler zu suchen - und zumindest ich seh das auch nicht auf anhieb und würde den debugger nutzen müssen...<br />
das könntest du genau so tun<br />
du kommst eben iwie extrem faul rüber - und faulen leuten hilft man auch nicht so gerne wie den fleißigen - zumindest ist das bei mir so... der hauptgrund bleibt aber die qualität deines codes... änder das und versuchs dann noch mal...</p>
<p>um das noch mal klar zu stellen:</p>
<blockquote>
<p>Upps, das war der falsche Code.<br />
Ich meine diesen hier:</p>
<p>[HIER IST DER CODE MIT WERBUNG - davor war die noch nicht dabei<br />
und es ist nun mal der letzte quellcode... das es bei den anderen nicht mit drin steht, ist mir gerad erst aufgefallen - aber war nur 1 von x Gründen, wieso dir keiner hilft]</p>
</blockquote>
<p>aber hast du die erste antwort mal gelesen? vll hat er ja recht...</p>
<p>bb</p>
<p>edit:<br />
es gibt übrigens auch url-tags - dann können faule leute wie ich es auch bin viele klicks/tastendrücke sparen ;o)<br />
habs mir zugegebenermaßen auch erst kurz angeguckt - mal gucken, ob ich geduldig genug bin, das nachzuvollziehen^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1790710</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790710</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Sat, 10 Oct 2009 19:38:12 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet inf? on Sat, 10 Oct 2009 19:52:39 GMT]]></title><description><![CDATA[<p>du hast z.bsp. nicht bedacht, was passiert, wenn einer der variablen 0 ist...<br />
ne zeile mit 0 multiplizieren ist verboten...</p>
<blockquote>
<p>(z1a*y2a)-(z2a*y1a)=zz ; (s1a*y2a)-(s2a*y1a)=ss<br />
[...]<br />
zraus=ss/zz</p>
</blockquote>
<p>hier ist der fehler, wenn ich jz nicht selbst nen denkfehler hab^^</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1790719</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790719</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Sat, 10 Oct 2009 19:52:39 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet inf? on Sat, 17 Oct 2009 10:27:07 GMT]]></title><description><![CDATA[<p>Danke, das war der Fehler...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1793725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1793725</guid><dc:creator><![CDATA[Phisherman]]></dc:creator><pubDate>Sat, 17 Oct 2009 10:27:07 GMT</pubDate></item></channel></rss>