<?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[Roulett-Problem]]></title><description><![CDATA[<p>Hallo,<br />
ich bin noch ein Anfänger, habe mir ein Roulettspiel geschrieben. Es klappt auch alles so wie es klappen soll aber der Quelltext gefällt mir nicht. Also schreibe ich es neu und da ist das Problem. Nachdem ich den groeßten Teil geschrieben hatte bombadierte mich der Compiler mit Fehlermeldungen und ich weiß nicht was ich falsch gemacht habe. Folgende Fehler traten auf:</p>
<p>C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp: In member function <code>void roulett::zahl()': 52 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:52: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp: In member function <code>void roulett::gerade()': 93 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:93: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp: In member function <code>void roulett::farbe()': 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the `&amp;' ?)</p>
<p>148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the `&amp;' ?)</p>
<p>148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the `&amp;' ?)</p>
<p>C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp: In member function <code>void roulett::reihe()': 192 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:192: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
192 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:192: error: invalid use of member (did you forget the <code>&amp;' ?) 192 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:192: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
192 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:192: error: invalid use of member (did you forget the <code>&amp;' ?) 192 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:192: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>192 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:192: error: invalid use of member (did you forget the <code>&amp;' ?) 192 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:192: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
192 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:192: error: invalid use of member (did you forget the <code>&amp;' ?) 192 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:192: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
192 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:192: error: invalid use of member (did you forget the <code>&amp;' ?) 192 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:192: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
204 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:192: error: invalid use of member (did you forget the <code>&amp;' ?) 204 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:204: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>204 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:204: error: invalid use of member (did you forget the <code>&amp;' ?) 204 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:204: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
204 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:204: error: invalid use of member (did you forget the <code>&amp;' ?) 204 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:204: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
204 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:204: error: invalid use of member (did you forget the <code>&amp;' ?) 204 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:204: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
204 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:204: error: invalid use of member (did you forget the <code>&amp;' ?) 204 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:204: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>204 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:204: error: invalid use of member (did you forget the <code>&amp;' ?) 204 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:204: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:204: error: invalid use of member (did you forget the <code>&amp;' ?) 216 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:216: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:216: error: invalid use of member (did you forget the <code>&amp;' ?) 216 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:216: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:216: error: invalid use of member (did you forget the <code>&amp;' ?) 216 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:216: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:216: error: invalid use of member (did you forget the <code>&amp;' ?) 216 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:216: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:216: error: invalid use of member (did you forget the <code>&amp;' ?) 216 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:216: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:216: error: invalid use of member (did you forget the <code>&amp;' ?) 216 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:216: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:216: error: invalid use of member (did you forget the <code>&amp;' ?) C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp: In function</code>int main()':<br />
273 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:273: error: invalid use of member (did you forget the <code>&amp;' ?) 274 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:274: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
350 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:350: error: no match for 'operator&lt;&lt;' in 'std::operator&lt;&lt; [with _Traits = std::char_traits&lt;char&gt;](((std::basic_ostream&lt;char, std::char_traits&lt;char&gt; &gt;&amp;)(&amp;std::cout)), ((const char*)&quot;\nZahl ist: &quot;)) &lt;&lt; spielera.roulett::zahl'<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:63: note: candidates are: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(std::basic_ostream&lt;_CharT, _Traits&gt;&amp;(<em>)(std::basic_ostream&lt;_CharT, _Traits&gt;&amp;)) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:74: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(std::basic_ios&lt;_CharT, _Traits&gt;&amp;(</em>)(std::basic_ios&lt;_CharT, _Traits&gt;&amp;)) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:86: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(std::ios_base&amp;(*)(std::ios_base&amp;)) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:121: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(long int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:155: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(long unsigned int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:98: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(bool) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:178: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(short int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:189: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(short unsigned int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:193: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:204: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(unsigned int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:179: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(long long int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:214: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(long long unsigned int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]</p>
<p>note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:238: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(double) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:219: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(float) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:261: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(long double) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:284: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(const void*) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]</p>
<p>note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:307: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(std::basic_streambuf&lt;_CharT, _Traits&gt;<em>) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:449: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;_CharT, _Traits&gt;&amp;, char) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:505: note: std::basic_ostream&lt;char, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;char, _Traits&gt;&amp;, char) [with _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:460: note: std::basic_ostream&lt;char, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;char, _Traits&gt;&amp;, signed char) [with _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:465: note: std::basic_ostream&lt;char, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;char, _Traits&gt;&amp;, unsigned char) [with _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:567: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;_CharT, _Traits&gt;&amp;, const char</em>) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:612: note: std::basic_ostream&lt;char, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;char, _Traits&gt;&amp;, const char*) [with _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:499: note: std::basic_ostream&lt;char, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;char, _Traits&gt;&amp;, const signed char*) [with _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:504: note: std::basic_ostream&lt;char, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;char, _Traits&gt;&amp;, const unsigned char*) [with _Traits = std::char_traits&lt;char&gt;]</p>
<p>Ich weis absolut nicht was mit (did you forget the `&amp;' ?) gemeint ist.<br />
Bitte helft mir hier ist derr Quellcode zum Programm:</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;fstream&gt;
#include &lt;cstdio&gt;
using namespace std;

/*  Lehren des Bildschirms mit Struktur erzwingen   */
struct leer
{
       char* leer;
}my_leer={&quot;CLS&quot;};

/*   Klasse Roulett   */
class roulett
{
      public:
             int geld, einsatz, tipp, game ;
             char name[25] ;
             fstream score;
             string hscore ;

             void zahl();
             void gerade();
             void farbe();
             void reihe();
             void save();
};

/*   Tipp auf Zahl   */
void roulett::zahl(void)
{
     try
     {

     cout &lt;&lt; &quot;\nBitte tippen sie auf eine Zahl:  &quot; ;
     cin &gt;&gt; tipp ;

     cout &lt;&lt; &quot;\nIhr Einsatz:  &quot; ;
     cin &gt;&gt; einsatz ;

     if( tipp &lt; 0 || tipp &gt; 36 )
     {
         cout &lt;&lt; &quot;\nSie duerfen nur Zahlen zwischen 0 und 36 eingeben\n&quot; ;
         throw &quot;Fehleingabe&quot;;
     }

     if( einsatz &gt; geld )
     {
         cout &lt;&lt; &quot;Ihr Einsatz ist groesser als ihr Guthaben !\n&quot; ;
         throw &quot;Fehleingabe&quot;;
     }

     if( tipp == zahl )
     {
         geld += einsatz * 35 ;
     }
     else
     {
         geld -= einsatz ;
     }

     }
     catch(const char*)
     {
     cin.clear();
     zahl();
     }
}

/*   Tipp auf gerade   */
void roulett::gerade(void)
{
     try
     {

     cout &lt;&lt; &quot;\n1 fuer ungerade zahl, 2 fuer gerade Zahl:  &quot; ;
     cin &gt;&gt; tipp ;

     if( tipp != 1 &amp;&amp; tipp != 2 )
     {
         cout &lt;&lt; &quot;\nSie duerfen nur die Zahlen 1 oder 2 eingeben!\n&quot; ;
         throw &quot;Fehleingabe&quot;;
     }

     cout &lt;&lt; &quot;Ihr Einsatz:  &quot; ;
     cin &gt;&gt; einsatz ;

     if( einsatz &gt; geld )
     {
         cout &lt;&lt; &quot;Ihr Einsatz ist groesser als ihr Guthaben !\n&quot; ;
         throw &quot;Fehleingabe&quot;;
     }

     if( tipp % 2 == zahl % 2 ) 
     {
         geld += einsatz ;
     }
     else
     {
         geld -= einsatz ;
     }

     }
     catch(const char*)
     {
     cin.clear();
     gerade();
     }
}

/*   Tipp auf Farbe   */
void roulett::farbe(void)
{
     try
     {

     cout &lt;&lt; &quot;\nAuf welche Farbe wollen sie setzen?\nBitte geben sie 1 (fuer rot) oder 2 (fuer schwarz) ein:  &quot;;
     cin &gt;&gt; tipp ;

     if( tipp != 1 &amp;&amp; tipp != 2 )
     {
         cout &lt;&lt; &quot;Falsche Eingabe: Sie duerfen nur 1 (fuer rot)oder 2 (fuer schwarz) eingeben !&quot; ;
         throw &quot;Fehleingabe&quot;;
     }

     cout &lt;&lt; &quot;Ihr Einsatz:  &quot; ;
     cin &gt;&gt; einsatz ;

     if( einsatz &gt; geld )
     {
         cout &lt;&lt; &quot;Ihr Einsatz ist groesser als ihr Guthaben !\n&quot; ;
         throw &quot;Fehleingabe&quot;;
     }

     if( tipp == 1 )
     {
         if( zahl ==  1 || zahl == 3 || zahl == 5 || zahl == 7 || zahl == 9 || zahl == 12 || zahl == 14 || zahl == 16 || zahl == 19 ||zahl == 21 || zahl == 23 || zahl == 25 || zahl == 27 || zahl == 30 || zahl == 32 || zahl == 34  || zahl == 36 )
         {
             geld += einsatz ;
         }
         else
         {
             geld -= einsatz ;
         }
     }

     if( tipp == 2 )
     {
         if( zahl == 2 || zahl == 4 || zahl == 6 || zahl == 8 || zahl == 10 || zahl == 11 || zahl == 13 || zahl == 15 || zahl == 17 || zahl == 18 || zahl == 20 || zahl == 22 || zahl == 24 || zahl == 26 || zahl == 28 || zahl == 29 || zahl == 31 || zahl == 33 || zahl == 35 )
         {
             geld += einsatz ;
         }
         else
         {
             geld -= einsatz ;
         }
     }

     }
     catch(const char*)
     {
     cin.clear();
     farbe(); 
     }

}

/*   Tipp auf Reihe   */
void roulett::reihe(void)
{
     try
     {
         cout &lt;&lt; &quot;Bitte tippen sie auf eine Reihe (von 1 bis 3)\n&quot; ;
         cin &gt;&gt; tipp ;

         if( tipp &lt; 1 || tipp &gt; 3 )
         {
             cout &lt;&lt; &quot;\nEs gibt nur 3 Reihen !!!\n&quot; ;
             throw &quot;Fehleingabe&quot; ;
         }

         cout &lt;&lt; &quot;Ihr Einsatz:  &quot; ;
         cin &gt;&gt; einsatz ;

         if( einsatz &gt; geld )
         {
             cout &lt;&lt; &quot;Ihr Einsatz ist groesser als ihr Guthaben !\n&quot; ;
             throw &quot;Fehleingabe&quot;;
         }

         if( tipp == 1 )
         {
             if( zahl == 1 || zahl == 4 || zahl == 7 || zahl == 10 || zahl == 13 || zahl == 16 || zahl == 19 || zahl == 22 || zahl == 25 || zahl == 28 || zahl == 31 || zahl == 34 )
             {
                 geld += einsatz ;
             }
             else
             {
                 geld -= einsatz ;
             }
         }

         if( tipp == 2 )
         {
             if( zahl == 2 || zahl == 5 || zahl == 8 || zahl == 11 || zahl == 14 || zahl == 17 || zahl == 20 || zahl == 23 || zahl == 26 || zahl == 29 || zahl == 32 || zahl == 35 )
             {
                 geld += einsatz ;
             }
             else
             {
                 geld -= einsatz ;
             }
         }

         if( tipp == 3 )
         {
             if( zahl == 3 || zahl == 6 || zahl == 9 || zahl == 12 || zahl == 15 || zahl == 18 || zahl == 21 || zahl == 24 || zahl == 27 || zahl == 30 || zahl == 33 || zahl == 36 )
             {
                 geld += einsatz ;
             }
             else
             {
                 geld -= einsatz ;
             }
         }

     }
     catch(const char*)
     {
     cin.clear();
     reihe(); 
     }
}

/*   Speichern   */
void roulett::save(void)
{
     cout &lt;&lt; &quot;Dein Name: &quot;;
     cin &gt;&gt; name;

     score.open(&quot;c:\\Roulettscore.sc&quot;, ios::binary | ios::out | ios::app);
     score &lt;&lt; name &lt;&lt; &quot;:&quot; &lt;&lt; geld &lt;&lt; &quot;/&quot;;
     score.close();

     system(my_leer.leer);

     cout &lt;&lt; &quot;\n\n\n\tRoulett 2 Multiplayer\n\n\t(C) 2006 Norman Hansen\n\n&quot; ;

     system(&quot;PAUSE&quot;);
     system(my_leer.leer);

     game = 0 ;
}

/*   Hauptprogramm   */
int main()
{
    int x, n ;
    char wahl;
    roulett spielera, spielerb ;

    /*   Startparameter festlegen   */
    srand((unsigned) time(NULL));

    spielera.geld = 50 ;
    spielerb.geld = 50 ;

    cout &lt;&lt; &quot;\nJede Eingabe muss mit Enter bestaetigt werden !&quot; ;

    for(;;)
    {

       /*   Zahl generieren    */
       spielera.zahl = rand() % 37 ;
       spielerb.zahl = spielera.zahl ;

       /*   Nur zum Testen     */
       //cout &lt;&lt; &quot;\n&quot; &lt;&lt; spielera.zahl &lt;&lt; \n ;

       cout &lt;&lt; &quot;Spieler 1\n\n&quot; ;
       cout &lt;&lt; &quot;\nWie oft wollen sie setzen?   &quot; ;
       cin &gt;&gt; x ;

       for( n = 0 ; n &lt; x ; n++ )
       {
                 cout &lt;&lt; &quot;&lt;z&gt; auf Zahl tippen\n&lt;g&gt; auf gerade oder ungrade Zahl tippen\n&quot;
                      &lt;&lt; &quot;&lt;r&gt; auf eine verikale Reihe tippen\n&lt;f&gt; auf Farbe tippen\n&quot; ;
                 cin &gt;&gt; wahl ;

                 if( wahl != 'z' &amp;&amp; wahl != 'Z' &amp;&amp; wahl != 'g' &amp;&amp; wahl != 'G' &amp;&amp; wahl != 'r' &amp;&amp; wahl != 'R' &amp;&amp; wahl != 'f' &amp;&amp; wahl != 'F' &amp;&amp; wahl != 'c' &amp;&amp; wahl != 'C' &amp;&amp; wahl != 's' &amp;&amp; wahl != 'S')
                 {
                     cout &lt;&lt; &quot;\nFalsche Eingabe !!!\n\n&quot; ;
                     n-- ;
                 }

                 switch(wahl){
                              case 'z' : spielera.zahl() ;
                              case 'g' : spielera.gerade() ;
                              case 'r' : spielera.reihe() ;
                              case 'f' : spielera.farbe() ;
                              case 's' : spielera.save() ;
                             }
       }
       /*   Bildschirm leeren   */
       system(my_leer.leer);

       cout &lt;&lt; &quot;Spieler 2\n\n&quot; ;
       cout &lt;&lt; &quot;\nWie oft wollen sie setzen?   &quot; ;
       cin &gt;&gt; x ;

       for( n = 0 ; n &lt; x ; n++ )
       {
                 cout &lt;&lt; &quot;&lt;z&gt; auf Zahl tippen\n&lt;g&gt; auf gerade oder ungrade Zahl tippen\n&quot;
                      &lt;&lt; &quot;&lt;r&gt; auf eine verikale Reihe tippen\n&lt;f&gt; auf Farbe tippen\n&quot; ;
                 cin &gt;&gt; wahl ;

                 if( wahl != 'z' &amp;&amp; wahl != 'Z' &amp;&amp; wahl != 'g' &amp;&amp; wahl != 'G' &amp;&amp; wahl != 'r' &amp;&amp; wahl != 'R' &amp;&amp; wahl != 'f' &amp;&amp; wahl != 'F' &amp;&amp; wahl != 'c' &amp;&amp; wahl != 'C' &amp;&amp; wahl != 's' &amp;&amp; wahl != 'S')
                 {
                     cout &lt;&lt; &quot;\nFalsche Eingabe !!!\n\n&quot; ;
                     n-- ;
                 }

                 switch(wahl){
                              case 'z' : spielerb.zahl() ;
                              case 'g' : spielerb.gerade() ;
                              case 'r' : spielerb.reihe() ;
                              case 'f' : spielerb.farbe() ;
                              case 's' : spielerb.save() ;
                             }

       if( spielera.geld &lt; 1 ) break ;
       if( spielerb.geld &lt; 1 ) break ;

       }
       /*   Bildschirm leeren   */
       system(my_leer.leer);

       if( spielera.geld &lt; 1 )
       {
           cout &lt;&lt; &quot;\nSpieler 1 sie haben verloren !!\n\nGewinner ist Spieler 2 !\n\n&quot; ;
           spielera.game = 0 ;
       }

       if( spielerb.geld &lt; 1 )
       {
           cout &lt;&lt; &quot;\nSpieler 2 sie haben verloren !!\n\nGewinner ist Spieler 1 !\n\n&quot; ;
           spielerb.game = 0 ;
       }

        cout &lt;&lt; &quot;\nZahl ist: &quot; &lt;&lt; spielera.zahl &lt;&lt; &quot;\n&quot; ;
        cout &lt;&lt; &quot;Guthaben Spieler 1 : &quot; &lt;&lt; spielera.geld &lt;&lt; &quot;\n&quot; ;
        cout &lt;&lt; &quot;Guthaben Spieler 2 : &quot; &lt;&lt; spielerb.geld &lt;&lt; &quot;\n\n&quot; ;

       if( spielera.game == 0 || spielerb.game == 0 ) break ;

}
return 0 ;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/137770/roulett-problem</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 22:57:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/137770.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 Feb 2006 16:16:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Roulett-Problem on Mon, 20 Feb 2006 16:16:33 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich bin noch ein Anfänger, habe mir ein Roulettspiel geschrieben. Es klappt auch alles so wie es klappen soll aber der Quelltext gefällt mir nicht. Also schreibe ich es neu und da ist das Problem. Nachdem ich den groeßten Teil geschrieben hatte bombadierte mich der Compiler mit Fehlermeldungen und ich weiß nicht was ich falsch gemacht habe. Folgende Fehler traten auf:</p>
<p>C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp: In member function <code>void roulett::zahl()': 52 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:52: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp: In member function <code>void roulett::gerade()': 93 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:93: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp: In member function <code>void roulett::farbe()': 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>136 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:136: error: invalid use of member (did you forget the <code>&amp;' ?) 136 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:136: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the `&amp;' ?)</p>
<p>148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the `&amp;' ?)</p>
<p>148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the <code>&amp;' ?) 148 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:148: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
148 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:148: error: invalid use of member (did you forget the `&amp;' ?)</p>
<p>C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp: In member function <code>void roulett::reihe()': 192 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:192: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
192 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:192: error: invalid use of member (did you forget the <code>&amp;' ?) 192 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:192: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
192 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:192: error: invalid use of member (did you forget the <code>&amp;' ?) 192 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:192: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>192 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:192: error: invalid use of member (did you forget the <code>&amp;' ?) 192 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:192: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
192 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:192: error: invalid use of member (did you forget the <code>&amp;' ?) 192 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:192: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
192 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:192: error: invalid use of member (did you forget the <code>&amp;' ?) 192 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:192: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
204 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:192: error: invalid use of member (did you forget the <code>&amp;' ?) 204 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:204: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>204 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:204: error: invalid use of member (did you forget the <code>&amp;' ?) 204 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:204: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
204 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:204: error: invalid use of member (did you forget the <code>&amp;' ?) 204 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:204: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
204 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:204: error: invalid use of member (did you forget the <code>&amp;' ?) 204 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:204: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
204 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:204: error: invalid use of member (did you forget the <code>&amp;' ?) 204 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:204: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>204 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:204: error: invalid use of member (did you forget the <code>&amp;' ?) 204 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:204: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:204: error: invalid use of member (did you forget the <code>&amp;' ?) 216 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:216: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:216: error: invalid use of member (did you forget the <code>&amp;' ?) 216 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:216: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:216: error: invalid use of member (did you forget the <code>&amp;' ?) 216 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:216: error: invalid use of member (did you forget the</code>&amp;' ?)</p>
<p>216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:216: error: invalid use of member (did you forget the <code>&amp;' ?) 216 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:216: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:216: error: invalid use of member (did you forget the <code>&amp;' ?) 216 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:216: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:216: error: invalid use of member (did you forget the <code>&amp;' ?) 216 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:216: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
216 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:216: error: invalid use of member (did you forget the <code>&amp;' ?) C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp: In function</code>int main()':<br />
273 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:273: error: invalid use of member (did you forget the <code>&amp;' ?) 274 C:\\Dokumente und Einstellungen\\as\\Desktop\\roulettx2.cpp:274: error: invalid use of member (did you forget the</code>&amp;' ?)<br />
350 C:\Dokumente und Einstellungen\as\Desktop\roulettx2.cpp:350: error: no match for 'operator&lt;&lt;' in 'std::operator&lt;&lt; [with _Traits = std::char_traits&lt;char&gt;](((std::basic_ostream&lt;char, std::char_traits&lt;char&gt; &gt;&amp;)(&amp;std::cout)), ((const char*)&quot;\nZahl ist: &quot;)) &lt;&lt; spielera.roulett::zahl'<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:63: note: candidates are: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(std::basic_ostream&lt;_CharT, _Traits&gt;&amp;(<em>)(std::basic_ostream&lt;_CharT, _Traits&gt;&amp;)) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:74: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(std::basic_ios&lt;_CharT, _Traits&gt;&amp;(</em>)(std::basic_ios&lt;_CharT, _Traits&gt;&amp;)) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:86: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(std::ios_base&amp;(*)(std::ios_base&amp;)) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:121: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(long int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:155: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(long unsigned int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:98: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(bool) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:178: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(short int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:189: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(short unsigned int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:193: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:204: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(unsigned int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:179: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(long long int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:214: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(long long unsigned int) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]</p>
<p>note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:238: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(double) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:219: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(float) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:261: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(long double) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:284: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(const void*) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]</p>
<p>note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:307: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, _Traits&gt;::operator&lt;&lt;(std::basic_streambuf&lt;_CharT, _Traits&gt;<em>) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:449: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;_CharT, _Traits&gt;&amp;, char) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:505: note: std::basic_ostream&lt;char, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;char, _Traits&gt;&amp;, char) [with _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:460: note: std::basic_ostream&lt;char, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;char, _Traits&gt;&amp;, signed char) [with _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:465: note: std::basic_ostream&lt;char, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;char, _Traits&gt;&amp;, unsigned char) [with _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:567: note: std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;_CharT, _Traits&gt;&amp;, const char</em>) [with _CharT = char, _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:612: note: std::basic_ostream&lt;char, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;char, _Traits&gt;&amp;, const char*) [with _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:499: note: std::basic_ostream&lt;char, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;char, _Traits&gt;&amp;, const signed char*) [with _Traits = std::char_traits&lt;char&gt;]<br />
note C:/Programme/Dev-Cpp/include/c++/3.4.2/ostream:504: note: std::basic_ostream&lt;char, _Traits&gt;&amp; std::operator&lt;&lt;(std::basic_ostream&lt;char, _Traits&gt;&amp;, const unsigned char*) [with _Traits = std::char_traits&lt;char&gt;]</p>
<p>Ich weis absolut nicht was mit (did you forget the `&amp;' ?) gemeint ist.<br />
Bitte helft mir hier ist derr Quellcode zum Programm:</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;fstream&gt;
#include &lt;cstdio&gt;
using namespace std;

/*  Lehren des Bildschirms mit Struktur erzwingen   */
struct leer
{
       char* leer;
}my_leer={&quot;CLS&quot;};

/*   Klasse Roulett   */
class roulett
{
      public:
             int geld, einsatz, tipp, game ;
             char name[25] ;
             fstream score;
             string hscore ;

             void zahl();
             void gerade();
             void farbe();
             void reihe();
             void save();
};

/*   Tipp auf Zahl   */
void roulett::zahl(void)
{
     try
     {

     cout &lt;&lt; &quot;\nBitte tippen sie auf eine Zahl:  &quot; ;
     cin &gt;&gt; tipp ;

     cout &lt;&lt; &quot;\nIhr Einsatz:  &quot; ;
     cin &gt;&gt; einsatz ;

     if( tipp &lt; 0 || tipp &gt; 36 )
     {
         cout &lt;&lt; &quot;\nSie duerfen nur Zahlen zwischen 0 und 36 eingeben\n&quot; ;
         throw &quot;Fehleingabe&quot;;
     }

     if( einsatz &gt; geld )
     {
         cout &lt;&lt; &quot;Ihr Einsatz ist groesser als ihr Guthaben !\n&quot; ;
         throw &quot;Fehleingabe&quot;;
     }

     if( tipp == zahl )
     {
         geld += einsatz * 35 ;
     }
     else
     {
         geld -= einsatz ;
     }

     }
     catch(const char*)
     {
     cin.clear();
     zahl();
     }
}

/*   Tipp auf gerade   */
void roulett::gerade(void)
{
     try
     {

     cout &lt;&lt; &quot;\n1 fuer ungerade zahl, 2 fuer gerade Zahl:  &quot; ;
     cin &gt;&gt; tipp ;

     if( tipp != 1 &amp;&amp; tipp != 2 )
     {
         cout &lt;&lt; &quot;\nSie duerfen nur die Zahlen 1 oder 2 eingeben!\n&quot; ;
         throw &quot;Fehleingabe&quot;;
     }

     cout &lt;&lt; &quot;Ihr Einsatz:  &quot; ;
     cin &gt;&gt; einsatz ;

     if( einsatz &gt; geld )
     {
         cout &lt;&lt; &quot;Ihr Einsatz ist groesser als ihr Guthaben !\n&quot; ;
         throw &quot;Fehleingabe&quot;;
     }

     if( tipp % 2 == zahl % 2 ) 
     {
         geld += einsatz ;
     }
     else
     {
         geld -= einsatz ;
     }

     }
     catch(const char*)
     {
     cin.clear();
     gerade();
     }
}

/*   Tipp auf Farbe   */
void roulett::farbe(void)
{
     try
     {

     cout &lt;&lt; &quot;\nAuf welche Farbe wollen sie setzen?\nBitte geben sie 1 (fuer rot) oder 2 (fuer schwarz) ein:  &quot;;
     cin &gt;&gt; tipp ;

     if( tipp != 1 &amp;&amp; tipp != 2 )
     {
         cout &lt;&lt; &quot;Falsche Eingabe: Sie duerfen nur 1 (fuer rot)oder 2 (fuer schwarz) eingeben !&quot; ;
         throw &quot;Fehleingabe&quot;;
     }

     cout &lt;&lt; &quot;Ihr Einsatz:  &quot; ;
     cin &gt;&gt; einsatz ;

     if( einsatz &gt; geld )
     {
         cout &lt;&lt; &quot;Ihr Einsatz ist groesser als ihr Guthaben !\n&quot; ;
         throw &quot;Fehleingabe&quot;;
     }

     if( tipp == 1 )
     {
         if( zahl ==  1 || zahl == 3 || zahl == 5 || zahl == 7 || zahl == 9 || zahl == 12 || zahl == 14 || zahl == 16 || zahl == 19 ||zahl == 21 || zahl == 23 || zahl == 25 || zahl == 27 || zahl == 30 || zahl == 32 || zahl == 34  || zahl == 36 )
         {
             geld += einsatz ;
         }
         else
         {
             geld -= einsatz ;
         }
     }

     if( tipp == 2 )
     {
         if( zahl == 2 || zahl == 4 || zahl == 6 || zahl == 8 || zahl == 10 || zahl == 11 || zahl == 13 || zahl == 15 || zahl == 17 || zahl == 18 || zahl == 20 || zahl == 22 || zahl == 24 || zahl == 26 || zahl == 28 || zahl == 29 || zahl == 31 || zahl == 33 || zahl == 35 )
         {
             geld += einsatz ;
         }
         else
         {
             geld -= einsatz ;
         }
     }

     }
     catch(const char*)
     {
     cin.clear();
     farbe(); 
     }

}

/*   Tipp auf Reihe   */
void roulett::reihe(void)
{
     try
     {
         cout &lt;&lt; &quot;Bitte tippen sie auf eine Reihe (von 1 bis 3)\n&quot; ;
         cin &gt;&gt; tipp ;

         if( tipp &lt; 1 || tipp &gt; 3 )
         {
             cout &lt;&lt; &quot;\nEs gibt nur 3 Reihen !!!\n&quot; ;
             throw &quot;Fehleingabe&quot; ;
         }

         cout &lt;&lt; &quot;Ihr Einsatz:  &quot; ;
         cin &gt;&gt; einsatz ;

         if( einsatz &gt; geld )
         {
             cout &lt;&lt; &quot;Ihr Einsatz ist groesser als ihr Guthaben !\n&quot; ;
             throw &quot;Fehleingabe&quot;;
         }

         if( tipp == 1 )
         {
             if( zahl == 1 || zahl == 4 || zahl == 7 || zahl == 10 || zahl == 13 || zahl == 16 || zahl == 19 || zahl == 22 || zahl == 25 || zahl == 28 || zahl == 31 || zahl == 34 )
             {
                 geld += einsatz ;
             }
             else
             {
                 geld -= einsatz ;
             }
         }

         if( tipp == 2 )
         {
             if( zahl == 2 || zahl == 5 || zahl == 8 || zahl == 11 || zahl == 14 || zahl == 17 || zahl == 20 || zahl == 23 || zahl == 26 || zahl == 29 || zahl == 32 || zahl == 35 )
             {
                 geld += einsatz ;
             }
             else
             {
                 geld -= einsatz ;
             }
         }

         if( tipp == 3 )
         {
             if( zahl == 3 || zahl == 6 || zahl == 9 || zahl == 12 || zahl == 15 || zahl == 18 || zahl == 21 || zahl == 24 || zahl == 27 || zahl == 30 || zahl == 33 || zahl == 36 )
             {
                 geld += einsatz ;
             }
             else
             {
                 geld -= einsatz ;
             }
         }

     }
     catch(const char*)
     {
     cin.clear();
     reihe(); 
     }
}

/*   Speichern   */
void roulett::save(void)
{
     cout &lt;&lt; &quot;Dein Name: &quot;;
     cin &gt;&gt; name;

     score.open(&quot;c:\\Roulettscore.sc&quot;, ios::binary | ios::out | ios::app);
     score &lt;&lt; name &lt;&lt; &quot;:&quot; &lt;&lt; geld &lt;&lt; &quot;/&quot;;
     score.close();

     system(my_leer.leer);

     cout &lt;&lt; &quot;\n\n\n\tRoulett 2 Multiplayer\n\n\t(C) 2006 Norman Hansen\n\n&quot; ;

     system(&quot;PAUSE&quot;);
     system(my_leer.leer);

     game = 0 ;
}

/*   Hauptprogramm   */
int main()
{
    int x, n ;
    char wahl;
    roulett spielera, spielerb ;

    /*   Startparameter festlegen   */
    srand((unsigned) time(NULL));

    spielera.geld = 50 ;
    spielerb.geld = 50 ;

    cout &lt;&lt; &quot;\nJede Eingabe muss mit Enter bestaetigt werden !&quot; ;

    for(;;)
    {

       /*   Zahl generieren    */
       spielera.zahl = rand() % 37 ;
       spielerb.zahl = spielera.zahl ;

       /*   Nur zum Testen     */
       //cout &lt;&lt; &quot;\n&quot; &lt;&lt; spielera.zahl &lt;&lt; \n ;

       cout &lt;&lt; &quot;Spieler 1\n\n&quot; ;
       cout &lt;&lt; &quot;\nWie oft wollen sie setzen?   &quot; ;
       cin &gt;&gt; x ;

       for( n = 0 ; n &lt; x ; n++ )
       {
                 cout &lt;&lt; &quot;&lt;z&gt; auf Zahl tippen\n&lt;g&gt; auf gerade oder ungrade Zahl tippen\n&quot;
                      &lt;&lt; &quot;&lt;r&gt; auf eine verikale Reihe tippen\n&lt;f&gt; auf Farbe tippen\n&quot; ;
                 cin &gt;&gt; wahl ;

                 if( wahl != 'z' &amp;&amp; wahl != 'Z' &amp;&amp; wahl != 'g' &amp;&amp; wahl != 'G' &amp;&amp; wahl != 'r' &amp;&amp; wahl != 'R' &amp;&amp; wahl != 'f' &amp;&amp; wahl != 'F' &amp;&amp; wahl != 'c' &amp;&amp; wahl != 'C' &amp;&amp; wahl != 's' &amp;&amp; wahl != 'S')
                 {
                     cout &lt;&lt; &quot;\nFalsche Eingabe !!!\n\n&quot; ;
                     n-- ;
                 }

                 switch(wahl){
                              case 'z' : spielera.zahl() ;
                              case 'g' : spielera.gerade() ;
                              case 'r' : spielera.reihe() ;
                              case 'f' : spielera.farbe() ;
                              case 's' : spielera.save() ;
                             }
       }
       /*   Bildschirm leeren   */
       system(my_leer.leer);

       cout &lt;&lt; &quot;Spieler 2\n\n&quot; ;
       cout &lt;&lt; &quot;\nWie oft wollen sie setzen?   &quot; ;
       cin &gt;&gt; x ;

       for( n = 0 ; n &lt; x ; n++ )
       {
                 cout &lt;&lt; &quot;&lt;z&gt; auf Zahl tippen\n&lt;g&gt; auf gerade oder ungrade Zahl tippen\n&quot;
                      &lt;&lt; &quot;&lt;r&gt; auf eine verikale Reihe tippen\n&lt;f&gt; auf Farbe tippen\n&quot; ;
                 cin &gt;&gt; wahl ;

                 if( wahl != 'z' &amp;&amp; wahl != 'Z' &amp;&amp; wahl != 'g' &amp;&amp; wahl != 'G' &amp;&amp; wahl != 'r' &amp;&amp; wahl != 'R' &amp;&amp; wahl != 'f' &amp;&amp; wahl != 'F' &amp;&amp; wahl != 'c' &amp;&amp; wahl != 'C' &amp;&amp; wahl != 's' &amp;&amp; wahl != 'S')
                 {
                     cout &lt;&lt; &quot;\nFalsche Eingabe !!!\n\n&quot; ;
                     n-- ;
                 }

                 switch(wahl){
                              case 'z' : spielerb.zahl() ;
                              case 'g' : spielerb.gerade() ;
                              case 'r' : spielerb.reihe() ;
                              case 'f' : spielerb.farbe() ;
                              case 's' : spielerb.save() ;
                             }

       if( spielera.geld &lt; 1 ) break ;
       if( spielerb.geld &lt; 1 ) break ;

       }
       /*   Bildschirm leeren   */
       system(my_leer.leer);

       if( spielera.geld &lt; 1 )
       {
           cout &lt;&lt; &quot;\nSpieler 1 sie haben verloren !!\n\nGewinner ist Spieler 2 !\n\n&quot; ;
           spielera.game = 0 ;
       }

       if( spielerb.geld &lt; 1 )
       {
           cout &lt;&lt; &quot;\nSpieler 2 sie haben verloren !!\n\nGewinner ist Spieler 1 !\n\n&quot; ;
           spielerb.game = 0 ;
       }

        cout &lt;&lt; &quot;\nZahl ist: &quot; &lt;&lt; spielera.zahl &lt;&lt; &quot;\n&quot; ;
        cout &lt;&lt; &quot;Guthaben Spieler 1 : &quot; &lt;&lt; spielera.geld &lt;&lt; &quot;\n&quot; ;
        cout &lt;&lt; &quot;Guthaben Spieler 2 : &quot; &lt;&lt; spielerb.geld &lt;&lt; &quot;\n\n&quot; ;

       if( spielera.game == 0 || spielerb.game == 0 ) break ;

}
return 0 ;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/998731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/998731</guid><dc:creator><![CDATA[noha_391]]></dc:creator><pubDate>Mon, 20 Feb 2006 16:16:33 GMT</pubDate></item><item><title><![CDATA[Reply to Roulett-Problem on Mon, 20 Feb 2006 16:30:21 GMT]]></title><description><![CDATA[<p>hab nicht viel zeit, deshalb nur zur optimierung:</p>
<pre><code class="language-cpp">zahl == 1 || zahl == 4 || zahl == 7 || zahl == 10 || zahl == 13 || zahl == 16 || zahl == 19 || zahl == 22 || zahl == 25 || zahl == 28 || zahl == 31 || zahl == 34
</code></pre>
<p>ist nix anderes als &quot;zahl mod 3 == 1&quot;<br />
das kann man dann umsetzen:</p>
<pre><code class="language-cpp">if( fmod (zahl, 3) == 1 ) usw.
</code></pre>
<p>[EDIT:] und vergiss nicht &lt;math.h&gt; einzubinden!</p>
<p>tschüss<br />
chris90</p>
]]></description><link>https://www.c-plusplus.net/forum/post/998735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/998735</guid><dc:creator><![CDATA[chris90]]></dc:creator><pubDate>Mon, 20 Feb 2006 16:30:21 GMT</pubDate></item><item><title><![CDATA[Reply to Roulett-Problem on Mon, 20 Feb 2006 16:29:31 GMT]]></title><description><![CDATA[<p>Hab' mir mal die Mühe gemacht, Zeile 52 auszuzählen (weil dort der erste Fehler auftritt):</p>
<blockquote>
<pre><code class="language-cpp">if(tipp==zahl)
</code></pre>
</blockquote>
<p>'zahl' ist keine Variable, sondern eine Memberfunktion - du benötigst noch eine Methode, mit der du wirklich die Kugel rollen lässt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/998738</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/998738</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 20 Feb 2006 16:29:31 GMT</pubDate></item><item><title><![CDATA[Reply to Roulett-Problem on Mon, 20 Feb 2006 16:36:37 GMT]]></title><description><![CDATA[<p>In roulett::zahl() passiert folgendes:</p>
<pre><code class="language-cpp">if( tipp == zahl )
</code></pre>
<p>Warum vergleichst Du ein Integer (tipp) mit einer Methode (zahl) ? <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/998748</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/998748</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Mon, 20 Feb 2006 16:36:37 GMT</pubDate></item><item><title><![CDATA[Reply to Roulett-Problem on Wed, 22 Feb 2006 19:21:11 GMT]]></title><description><![CDATA[<p>Danke ich werds versuchen und wenn es nicht klappt poste ichs neu</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1000576</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1000576</guid><dc:creator><![CDATA[noha_391(offline)]]></dc:creator><pubDate>Wed, 22 Feb 2006 19:21:11 GMT</pubDate></item></channel></rss>