<?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[Gleichungen true&#x2F;false]]></title><description><![CDATA[<p>Hallo ! Ich will mir gerne ein Programm machen das gucken kann ob eine gleichung richtig ist oder nicht ! Mein bisheriger Ansatz ist so :</p>
<pre><code>int main()
{
	ofstream fout( &quot;C:\Text.txt&quot; );

	for(double x=-999999;x&lt;999999;x=x+0.1)
	{
	    for(double y=999999;x&gt;-999999;x=x-0.1)
		{
		   if((-2*x+5*y=3)==true)
		   {
             fout &lt;&lt; ergebnis;
             fout &lt;&lt; endl;
		   }
	    }

     }
}
</code></pre>
<p>doch mein Compiler meckert : Fehler 2 error C2106: '=': Linker Operand muss ein L-Wert sein c:\dokumente und einstellungen\simon\eigene dateien\visual studio 2008\projects\mathe\mathe\main.cpp 14</p>
<p>Was habe ich falsch gemacht ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/228087/gleichungen-true-false</link><generator>RSS for Node</generator><lastBuildDate>Tue, 29 Sep 2026 17:29:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/228087.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Nov 2008 20:50:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Gleichungen true&#x2F;false on Sun, 23 Nov 2008 20:50:30 GMT]]></title><description><![CDATA[<p>Hallo ! Ich will mir gerne ein Programm machen das gucken kann ob eine gleichung richtig ist oder nicht ! Mein bisheriger Ansatz ist so :</p>
<pre><code>int main()
{
	ofstream fout( &quot;C:\Text.txt&quot; );

	for(double x=-999999;x&lt;999999;x=x+0.1)
	{
	    for(double y=999999;x&gt;-999999;x=x-0.1)
		{
		   if((-2*x+5*y=3)==true)
		   {
             fout &lt;&lt; ergebnis;
             fout &lt;&lt; endl;
		   }
	    }

     }
}
</code></pre>
<p>doch mein Compiler meckert : Fehler 2 error C2106: '=': Linker Operand muss ein L-Wert sein c:\dokumente und einstellungen\simon\eigene dateien\visual studio 2008\projects\mathe\mathe\main.cpp 14</p>
<p>Was habe ich falsch gemacht ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1619626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1619626</guid><dc:creator><![CDATA[FedoX]]></dc:creator><pubDate>Sun, 23 Nov 2008 20:50:30 GMT</pubDate></item><item><title><![CDATA[Reply to Gleichungen true&#x2F;false on Sun, 23 Nov 2008 20:55:13 GMT]]></title><description><![CDATA[<p>Der Fehler dürfte hier liegen:</p>
<pre><code class="language-cpp">if((-2*x+5*y=3)==true)
</code></pre>
<p>und sollte wohl so lauten:</p>
<pre><code class="language-cpp">if(-2*x+5*y==3)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1619627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1619627</guid><dc:creator><![CDATA[Mizar]]></dc:creator><pubDate>Sun, 23 Nov 2008 20:55:13 GMT</pubDate></item><item><title><![CDATA[Reply to Gleichungen true&#x2F;false on Sun, 23 Nov 2008 20:58:42 GMT]]></title><description><![CDATA[<p>Die Bedingung wird aufgrund der Fliesskomma-Ungenauigkeiten kaum jemals <code>true</code> sein. Führe Toleranzbereiche um 3 ein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1619629</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1619629</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sun, 23 Nov 2008 20:58:42 GMT</pubDate></item><item><title><![CDATA[Reply to Gleichungen true&#x2F;false on Sun, 23 Nov 2008 21:02:40 GMT]]></title><description><![CDATA[<p>Jo danke ! Mein Programm startet und läuft auch fröhlich durch nur wie du gesagt hast landet es kaum treffer und ist (verhältnismäßig) EXTREM langsam ! Wie führe ich diese Toleranzbereiche ein ? Code :</p>
<pre><code>#include &lt;fstream&gt;

using std::ofstream;
using std::endl;
#include &lt;iostream&gt;
using namespace std;

int main()
{

	ofstream fout( &quot;C:\Text.txt&quot; );

	for(double x=-999999;x&lt;999999;x=x+0.1)
	{
	    for(double y=999999;y&gt;-999999;y=y-0.1)
		{
			cout &lt;&lt; &quot;(&quot; &lt;&lt; x &lt;&lt; &quot;|&quot; &lt;&lt; y &lt;&lt; &quot;)&quot;;
		   if(-2*x+5*y==3)
		   {
             fout &lt;&lt; &quot;(&quot; &lt;&lt; x &lt;&lt; &quot;|&quot; &lt;&lt; y &lt;&lt; &quot;)&quot;;
             fout &lt;&lt; endl;
		   }
	    }

     }
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1619631</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1619631</guid><dc:creator><![CDATA[FedoX]]></dc:creator><pubDate>Sun, 23 Nov 2008 21:02:40 GMT</pubDate></item><item><title><![CDATA[Reply to Gleichungen true&#x2F;false on Sun, 23 Nov 2008 21:10:19 GMT]]></title><description><![CDATA[<p>Oder de multiplizierst einfach alles mit 10. Dann fallen die Kommata ganz weg und du kannst Integers nehmen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1619635</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1619635</guid><dc:creator><![CDATA[sdfsdfsdfdsf]]></dc:creator><pubDate>Sun, 23 Nov 2008 21:10:19 GMT</pubDate></item><item><title><![CDATA[Reply to Gleichungen true&#x2F;false on Sun, 23 Nov 2008 21:11:24 GMT]]></title><description><![CDATA[<p>Die Toleranzbereiche machst du, indem du jeweils prüfst, ob das Resultat nur um einen kleinen Wert von 3 abweicht.</p>
<p>BruteForce ist meistens sehr langsam. Was willst du mit diesem Code überhaupt bezwecken?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1619636</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1619636</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sun, 23 Nov 2008 21:11:24 GMT</pubDate></item><item><title><![CDATA[Reply to Gleichungen true&#x2F;false on Sun, 23 Nov 2008 21:21:27 GMT]]></title><description><![CDATA[<p>ja das merk ich auhc gerade ! Also die aufgabe ist so :</p>
<p>Nenne Zahlenpaare , die Lösung der Gleichung -2x+5y=3 sind.</p>
<p>Damit ist sowas gemeint : (-99|-39).Mir ist klar das man diese Aufgabe auch mit einem hübschen Koordinaten Kreuz lösen könnte aber da ich nciht weis wie man dieses in c++ macht habe ich die try and error methode versucht xD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1619639</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1619639</guid><dc:creator><![CDATA[FedoX]]></dc:creator><pubDate>Sun, 23 Nov 2008 21:21:27 GMT</pubDate></item><item><title><![CDATA[Reply to Gleichungen true&#x2F;false on Sun, 23 Nov 2008 21:27:25 GMT]]></title><description><![CDATA[<p>Ich habe es gerade mit Zahlen zwischen -99 und 99 probiert und festgestellt das in meine text.txt nichts geschrieben wird ! Fehler : Cannot create a file when that file already exists. Nachdem löschen der Datei = selber Fehler ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1619646</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1619646</guid><dc:creator><![CDATA[FedoX]]></dc:creator><pubDate>Sun, 23 Nov 2008 21:27:25 GMT</pubDate></item><item><title><![CDATA[Reply to Gleichungen true&#x2F;false on Sun, 23 Nov 2008 21:32:40 GMT]]></title><description><![CDATA[<p>Was soll das für ein Fehler sein? Ist er während der Laufzeit mit einer Popup-Meldung aufgetaucht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1619652</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1619652</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sun, 23 Nov 2008 21:32:40 GMT</pubDate></item><item><title><![CDATA[Reply to Gleichungen true&#x2F;false on Sun, 23 Nov 2008 21:34:41 GMT]]></title><description><![CDATA[<p>Nein ! Die Übersetzung meines Error Codes nach GetLastError()</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1619655</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1619655</guid><dc:creator><![CDATA[FedoX]]></dc:creator><pubDate>Sun, 23 Nov 2008 21:34:41 GMT</pubDate></item><item><title><![CDATA[Reply to Gleichungen true&#x2F;false on Sun, 23 Nov 2008 21:39:43 GMT]]></title><description><![CDATA[<p>Bin ich dumm ! Ich habs ! (statt C:\.txt hatte ich C:\.txt geschrien) DANKE ! an alle die mir geholfen haben !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1619656</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1619656</guid><dc:creator><![CDATA[FedoX]]></dc:creator><pubDate>Sun, 23 Nov 2008 21:39:43 GMT</pubDate></item></channel></rss>