<?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[C++ While Fehler]]></title><description><![CDATA[<p>Hey!</p>
<p>Ich bin Anfänger auf dem Gebiet C++ und fleißig am Lernen. Ich hab gestern mich ein bisschen versucht mit While-Schleifen und ein naja etwas sinnloses Testprogramm dazu geschrieben. Auch Strukturen sind drinnen vertreten. Doch immer wenn ich es debuggen will, bricht er in der hälfte circa ab. Errors oder Warnings gibt es jedoch vor dem compilen nicht.</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &lt;iostream&gt;
#include &lt;Windows.h&gt;
#include &lt;string&gt;
using namespace std;

struct konto
{
	string name;
	int kontonummer;
	double kontostand;
};

int _tmain(int argc, _TCHAR* argv[])
{
	konto konto;
	double eingabe = konto.kontostand;

	cout &lt;&lt; &quot;Herzlich Willkommen bei dem Kontoverwalter&quot; &lt;&lt; endl;
	cout &lt;&lt; endl;
	cout &lt;&lt; endl;
	cout &lt;&lt; endl;
	cout &lt;&lt; endl;

	printf(&quot;Ihr Name: &quot;);
	cin &gt;&gt; konto.name;
	getchar();
	cout &lt;&lt; endl;

	printf(&quot;Wunschkontonummer: &quot;);
	cin &gt;&gt; konto.kontonummer;
	getchar();
	cout &lt;&lt; endl;

	cout &lt;&lt; &quot;Wieviel wollen sie einlegen? (Maximal 20000): &quot;;
	cin &gt;&gt; konto.kontostand;
	getchar();

	while(eingabe &gt; 20000.00)
	{
		cout &lt;&lt; &quot;So viel Geld haben Sie nicht. Bitte geben Sie eine neue Summe ein: &quot; ;
		cin &gt;&gt; konto.kontostand;
		getchar();
	}

	cout &lt;&lt; endl;

	//printf(&quot;Konto (%i) wurde erstellt mit %d Euro wurde auf den Namen %s erstellt&quot;, konto.kontonummer, konto.kontostand, konto.name);
	cout &lt;&lt; endl;
	getchar();
	return 0;
}
</code></pre>
<p>bin mir sicher es ist irgendein anfängerfehler</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/294327/c-while-fehler</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 22:38:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/294327.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Oct 2011 07:59:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 07:59:20 GMT]]></title><description><![CDATA[<p>Hey!</p>
<p>Ich bin Anfänger auf dem Gebiet C++ und fleißig am Lernen. Ich hab gestern mich ein bisschen versucht mit While-Schleifen und ein naja etwas sinnloses Testprogramm dazu geschrieben. Auch Strukturen sind drinnen vertreten. Doch immer wenn ich es debuggen will, bricht er in der hälfte circa ab. Errors oder Warnings gibt es jedoch vor dem compilen nicht.</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &lt;iostream&gt;
#include &lt;Windows.h&gt;
#include &lt;string&gt;
using namespace std;

struct konto
{
	string name;
	int kontonummer;
	double kontostand;
};

int _tmain(int argc, _TCHAR* argv[])
{
	konto konto;
	double eingabe = konto.kontostand;

	cout &lt;&lt; &quot;Herzlich Willkommen bei dem Kontoverwalter&quot; &lt;&lt; endl;
	cout &lt;&lt; endl;
	cout &lt;&lt; endl;
	cout &lt;&lt; endl;
	cout &lt;&lt; endl;

	printf(&quot;Ihr Name: &quot;);
	cin &gt;&gt; konto.name;
	getchar();
	cout &lt;&lt; endl;

	printf(&quot;Wunschkontonummer: &quot;);
	cin &gt;&gt; konto.kontonummer;
	getchar();
	cout &lt;&lt; endl;

	cout &lt;&lt; &quot;Wieviel wollen sie einlegen? (Maximal 20000): &quot;;
	cin &gt;&gt; konto.kontostand;
	getchar();

	while(eingabe &gt; 20000.00)
	{
		cout &lt;&lt; &quot;So viel Geld haben Sie nicht. Bitte geben Sie eine neue Summe ein: &quot; ;
		cin &gt;&gt; konto.kontostand;
		getchar();
	}

	cout &lt;&lt; endl;

	//printf(&quot;Konto (%i) wurde erstellt mit %d Euro wurde auf den Namen %s erstellt&quot;, konto.kontonummer, konto.kontostand, konto.name);
	cout &lt;&lt; endl;
	getchar();
	return 0;
}
</code></pre>
<p>bin mir sicher es ist irgendein anfängerfehler</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134569</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134569</guid><dc:creator><![CDATA[ULLLIIK]]></dc:creator><pubDate>Sun, 23 Oct 2011 07:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:46:12 GMT]]></title><description><![CDATA[<p>1. Bei der Zuweisung in Zeile 17 hat kontostand überhaupt keinen Wert.<br />
Schreib einen Default-Konstruktor für die Struktur.</p>
<p>2. Desweiteren wolltest du vielleicht eine Referenz statt einer Variablen.<br />
Ersetz Zeile 17 durch</p>
<pre><code class="language-cpp">double &amp;eingabe = konto.kontostand;
</code></pre>
<p>Trotzdem brauchst du eingabe garnicht. Ersetz eingabe einfach durch konto.kontostand.</p>
<p>Außerdem <s>heißt es</s> könnte es main() statt _tmain(), und char* statt _TCHAR* sein.<br />
Statt endl nimm '\n';<br />
Und getchar() kannst du weglassen.</p>
<p>P.S.: Der Benutzer könnte statt höher 20000 auch kleiner 0 angeben.</p>
<p>Und wieso nimmst du printf ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134572</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134572</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:46:12 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 08:09:35 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>Außerdem heißt es main() statt _tmain(), und char* statt _TCHAR*.</p>
</blockquote>
<p>Nö, _tmain ist schon ok (VC++).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134574</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134574</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Sun, 23 Oct 2011 08:09:35 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 08:28:21 GMT]]></title><description><![CDATA[<p>Was ist ein Default-Konstruktor?</p>
<p>jo eingabe ist jetzt raus.</p>
<pre><code class="language-cpp">while(konto.kontostand &gt; 20000.00 &amp;&amp; konto.kontostand &gt; 0)
	{
		cout &lt;&lt; &quot;So viel Geld haben Sie nicht. Bitte geben Sie eine neue Summe ein: &quot; ;
		cin &gt;&gt; konto.kontostand;
		getchar();
	}
</code></pre>
<p>wäre das dann die richtige while Schleife?</p>
<p>warum sollte ich das getchar weglassen? dann würde das programm ja abbrechen, oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134577</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134577</guid><dc:creator><![CDATA[ULLLIIK]]></dc:creator><pubDate>Sun, 23 Oct 2011 08:28:21 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:21:55 GMT]]></title><description><![CDATA[<p>Mach doch gleich lieber sowas:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;

struct konto
{
    std::string name;
    unsigned kontonummer;
    float kontostand;//Man könnte auch ein int nehmen, und in Cent rechnen

    konto():
    name(&quot;Unbekannt&quot;)//Konstruktor für name wird aufgerufen;
    {
        kontonummer = 0;
        kontostand = 0; //Kein Startguthaben ;)
    }
};

int main()
{
    using std::cout;//Kannst in diesem Beispiel auch ganz normal using namespace std; verwenden,
    using std::cin;//einige sagen aber, man soll einzelne Bezeichner (Namen für variablen,Funktionen,Klassen) einzeln inmportieren um namenskonflikte zu vermeiden.

    konto Konto;

    cout &lt;&lt; &quot;Herzlich Willkommen bei dem Kontoverwalter !\n\n&quot;
             &quot;Ihr Name: &quot;;
    std::getline(cin, Konto.name);

    cout &lt;&lt; &quot;\nWunschkontonummer: &quot;;
    cin &gt;&gt; Konto.kontonummer;

    cout &lt;&lt; &quot;\nWieviel wollen sie einlegen? (max. 20000, min 1): &quot;;
    cin &gt;&gt; Konto.kontostand;

    while(Konto.kontostand &gt; 20000.00 || Konto.kontostand &lt;= 0)
    {
        cout &lt;&lt; &quot;Die Summe liegt außerhalb des g\201ltigen Wertebereichs. Bitte geben Sie eine neue Summe ein: &quot; ;
        cin &gt;&gt; Konto.kontostand;
    }

    cout &lt;&lt; &quot;\nKonto (&quot;&lt;&lt; Konto.kontonummer &lt;&lt;&quot;) wurde mit &quot;&lt;&lt; Konto.kontostand &lt;&lt;&quot; Euro auf den Namen &quot;&lt;&lt; Konto.name &lt;&lt; &quot; erstellt !\n&quot;;

    cin.ignore();
    cin.get();//Guck dir solche Sachen umbedingt nochmal an, das ist jetzt nur flüchtig eine Lösung
}
</code></pre>
<p>In diesem Fall ist vielleicht auch empfehlenswert, eine Abfrage bei den Eingaben einzubauen, um<br />
Fehlern vorzubeugen.</p>
<p>Edit: Das Problem war garnicht die while-Schleife.<br />
Sag mal, wie lernst du eigentlich? Buch, Tutorial, etc.?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134581</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134581</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:21:55 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 08:42:55 GMT]]></title><description><![CDATA[<p>_matze schrieb:</p>
<blockquote>
<p>Hacker schrieb:</p>
<blockquote>
<p>Außerdem heißt es main() statt _tmain(), und char* statt _TCHAR*.</p>
</blockquote>
<p>Nö, _tmain ist schon ok (VC++).</p>
</blockquote>
<p>Wozu compilerabhängig programmieren? _tmain wird ohnehin zu main bzw wmain aufgelöst, je nachdem ob _UNICODE gesetzt ist.<br />
Als absoluter Anfänger sollte man sich das MS-Zeugs erst garnicht gewöhnen - das kann man später immernoch nutzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134586</guid><dc:creator><![CDATA[lieber doch main]]></dc:creator><pubDate>Sun, 23 Oct 2011 08:42:55 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 08:52:34 GMT]]></title><description><![CDATA[<p>ULLLIIK schrieb:</p>
<blockquote>
<p>warum sollte ich das getchar weglassen? dann würde das programm ja abbrechen, oder?</p>
</blockquote>
<p>Und das ist gut so. Denn man Konsolenprogramme allgemein auch aus Scripts raus starten können.</p>
<p>Du startest das Programm aus der IDE aus einfach mit Strg+F5 statt nur mit F5, dann wird die Konsole von der IDE aufgehalten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134589</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134589</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 23 Oct 2011 08:52:34 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 09:57:18 GMT]]></title><description><![CDATA[<p>@Hacker: mit diesem Quellcode kann ich leider noch wenig anfangen. außerdem gibt er bei mir einige Errors. also ist dieses kleine Programm nicht so leicht programmierbar wie ich gedacht habe? weil ich bin ja noch am basics lernen.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/106">@volkard</a>: ah danke</p>
<p>PS: gehört jetzt nicht hier zum Topic, aber welche C++ Lernbücher sind denn empfehlenswert? gibts einen Thread?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134615</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134615</guid><dc:creator><![CDATA[ULLLIIK]]></dc:creator><pubDate>Sun, 23 Oct 2011 09:57:18 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:04:50 GMT]]></title><description><![CDATA[<p>ULLLIIK schrieb:</p>
<blockquote>
<p>PS: gehört jetzt nicht hier zum Topic, aber welche C++ Lernbücher sind denn empfehlenswert? gibts einen Thread?</p>
</blockquote>
<p>Empfehlung: C++ Primer oder Der C++ Programmierer<br />
Link: <a href="http://www.c-plusplus.net/forum/251551" rel="nofollow">http://www.c-plusplus.net/forum/251551</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134617</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134617</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:04:50 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:20:04 GMT]]></title><description><![CDATA[<p>ULLLIIK schrieb:</p>
<blockquote>
<p>@Hacker: mit diesem Quellcode kann ich leider noch wenig anfangen. außerdem gibt er bei mir einige Errors.</p>
</blockquote>
<p>Hmmm... ? Kenn mich <em>gar</em> nicht mit Visual C++ aus, bei mir kompiliert und funktioniert es allerdings problemlos.</p>
<p>Edit²: <a href="https://ideone.com/1z5hy#view_edit_box" rel="nofollow">Hier</a> is es jetz richtig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134620</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134620</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:20:04 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:14:17 GMT]]></title><description><![CDATA[<p>@Hacker: Man kann ein bisschen erkennen, dass du was dazugelernt hast, dennoch sind mir da viele Sachen aufgefallen.</p>
<p>1)Wenn du schon eine Initialisierungsliste verwendest, dann bitte auch für alle Member, wenn möglich. Im Falle der Kontonummer ist das sogar erforderlich.<br />
2)Wenn schon float, dann vergleiche auch bitte mit float-Literalen.<br />
3)Der Name einer Person kann sich sehr wohl ändern. Denke nur mal an transsexuelle. Du schließt diese Gruppe von Menschen von der Benutzung des Programms aus. Das findet PI nicht besonders nett.<br />
4)Wieso initialisierst du den Namen mit &quot;Unbekannt&quot;? Völlig unnötig.</p>
<p>Stilmäßig:<br />
5)PI findet const nach dem Datentypen viel schöner, weil PI von rechts nach links liest.<br />
6)PI findet es komisch, dass Hacker die Klasse &quot;konto&quot; nennt und die Instanz &quot;Konto&quot;. PI fände es schöner, wenn Hacker das entweder umgekehrt machte, oder die Instanz z.B. &quot;k&quot;, &quot;ko&quot; oder &quot;knt&quot; nannte.<br />
7)PI mag deine Art zu kommentieren nicht. PI findet sowohl vor, als auch nach den zwei Slahes einen Abstand schöner.<br />
8)PI hat bemerkt, dass Hacker schon wieder das 'ü' unter Zuhilfenahme einer Escape-Sequenz ausgegeben hat. PI mag Konstanten lieber.<br />
9)PI findet es unschön, dass du bei der letzten Ausgabe Abstände gespart hast.<br />
10)PI findet es doof, dass du dem Benutzer nicht erlauben willst, 0 Euro einzulegen oder im Einlegevorgang etwas abzuheben.</p>
<p>Und natürlich: Hör auf zu plenken !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134624</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:14:17 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:33:31 GMT]]></title><description><![CDATA[<p>Hab ein paar Fehler schon vor dir erkannt und verbessert.<br />
Natürlich sind die Konstanten nicht mal Kompilierbar. Der Name wird hier ja nach dem Aufruf des D.Konstruktors initialisiert.<br />
Hacker findet alle Kommentare zum Stil etwas abgehackt:</p>
<p>5. Du liest von rechts nach links? Krank. Ich finde das const dahinter eigentlich auch schöner, da man erkennt das der Wert der Variablen Konstant bleibt. const dahinter liest sich, so denkt Hacker, besser.<br />
2. Versteht Hacker nicht. Macht das überhaupt einen Unterschied (wenn ich 'Literale' richtig versteh) ?<br />
4.Soll ich ihn &quot;Transsexueller Behinderter&quot; nennen ? Oder (jetz ernst gemeint) &quot;Kein Name vorhanden&quot;?</p>
<p>Dazu möchte der Hacker noch an die für ihn und PI erstellte Spielwiese erinnern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134628</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134628</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:33:31 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:31:45 GMT]]></title><description><![CDATA[<p>Wohl eher verschlechtbessert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134630</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134630</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:31:45 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:32:58 GMT]]></title><description><![CDATA[<p>lieber doch main schrieb:</p>
<blockquote>
<p>_matze schrieb:</p>
<blockquote>
<p>Hacker schrieb:</p>
<blockquote>
<p>Außerdem heißt es main() statt _tmain(), und char* statt _TCHAR*.</p>
</blockquote>
<p>Nö, _tmain ist schon ok (VC++).</p>
</blockquote>
<p>Wozu compilerabhängig programmieren? _tmain wird ohnehin zu main bzw wmain aufgelöst, je nachdem ob _UNICODE gesetzt ist.<br />
Als absoluter Anfänger sollte man sich das MS-Zeugs erst garnicht gewöhnen - das kann man später immernoch nutzen.</p>
</blockquote>
<p>Gegen so eine Erklärung wie deine habe ich nichts (ich benutze übrigens auch nie _tmain). Aber Hackers Beitrag hörte sich so an, als sei es ein Fehler (es heißt main statt _tmain!), und das ist es nicht.</p>
<p>Btw, ich glaube, vielen Anfängern und auch vielen Fortgeschrittenen ist Unabhängigkeit vom Compiler, vom OS usw. ziemlich egal. Viele schießen sich auf ein System ein und bleiben für eine ganze Weile dabei. Und dann ist es wirklich nicht tragisch, die eine oder andere compilerspezifische Erweiterung zu nutzen (kann ja durchaus von Vorteil sein).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134631</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134631</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:32:58 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:36:52 GMT]]></title><description><![CDATA[<p>EDIT: Hat sich erledigt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134632</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134632</guid><dc:creator><![CDATA[Jonas OSDever]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:36:52 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:34:17 GMT]]></title><description><![CDATA[<p>Jonas OSDever schrieb:</p>
<blockquote>
<p>Hacker schrieb:</p>
<blockquote>
<p>ULLLIIK schrieb:</p>
<blockquote>
<p>@Hacker: mit diesem Quellcode kann ich leider noch wenig anfangen. außerdem gibt er bei mir einige Errors.</p>
</blockquote>
<p>Hmmm... ? Kenn mich <em>gar</em> nicht mit Visual C++ aus, bei mir kompiliert und funktioniert es allerdings problemlos.</p>
<p>Edit²: <a href="https://ideone.com/1z5hy#view_edit_box" rel="nofollow">Hier</a> is es jetz richtig.</p>
</blockquote>
<p>Visual C++ (genauer VS 2010 Prof.) frisst es anstandslos...<br />
<a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/27869">@ULLLIIK</a>: Poste mal die Fehlermeldungen.</p>
</blockquote>
<p>Ne, das waren Fehlermeldungen vor den Edits am QuellCode, der war vorher klar falsch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134634</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:34:17 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:36:03 GMT]]></title><description><![CDATA[<p>Achso, Sorry...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134636</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134636</guid><dc:creator><![CDATA[Jonas OSDever]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:36:03 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:43:45 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>5. Du liest von rechts nach links? Krank.</p>
</blockquote>
<p>Ich find es auch durchaus sinnvoll, von rechts nach links zu lesen. Oder wie fasst du z.B. das in Worte, wenn du von links nach rechts ließt?</p>
<pre><code class="language-cpp">int*** p;
</code></pre>
<p>edit: @Hacker ok <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134638</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134638</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:43:45 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:42:33 GMT]]></title><description><![CDATA[<p>_matze schrieb:</p>
<blockquote>
<p>lieber doch main schrieb:</p>
<blockquote>
<p>_matze schrieb:</p>
<blockquote>
<p>Hacker schrieb:</p>
<blockquote>
<p>Außerdem heißt es main() statt _tmain(), und char* statt _TCHAR*.</p>
</blockquote>
<p>Nö, _tmain ist schon ok (VC++).</p>
</blockquote>
<p>Wozu compilerabhängig programmieren? _tmain wird ohnehin zu main bzw wmain aufgelöst, je nachdem ob _UNICODE gesetzt ist.<br />
Als absoluter Anfänger sollte man sich das MS-Zeugs erst garnicht gewöhnen - das kann man später immernoch nutzen.</p>
</blockquote>
<p>Gegen so eine Erklärung wie deine habe ich nichts (ich benutze übrigens auch nie _tmain). Aber Hackers Beitrag hörte sich so an, als sei es ein Fehler (es heißt main statt _tmain!), und das ist es nicht.</p>
</blockquote>
<p>Nope, ich wusst ja nicht, dass es bei VisualC++ genutzt werden kann.</p>
<p>Edit: @Gugelmoser, das ist jetzt absolut non-Topic (und dazu noch Geschmacksache). Lassen wirs.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134639</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134639</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:42:33 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:56:52 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>5. Du liest von rechts nach links? Krank.</p>
</blockquote>
<p>Ich lese Datentypen von rechts nach links <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>
<p>Hacker schrieb:</p>
<blockquote>
<p>2. Versteht Hacker nicht. Macht das überhaupt einen Unterschied (wenn ich 'Literale' richtig versteh) ?</p>
</blockquote>
<p>Für das Programm macht das wohl keinen Unterschied. Ich finde es aber &quot;korrekter&quot;.</p>
<p>Hacker schrieb:</p>
<blockquote>
<p>4.Soll ich ihn &quot;Transsexueller Behinderter&quot; nennen ? Oder (jetz ernst gemeint) &quot;Kein Name vorhanden&quot;?</p>
</blockquote>
<p>Gibt auch Leute, die sich umtaufen lassen, wenn dir das besser gefällt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134645</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134645</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:56:52 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 10:58:58 GMT]]></title><description><![CDATA[<p>Aber wie soll er jetzt den Default-Namen nennnen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134647</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134647</guid><dc:creator><![CDATA[Transexueller]]></dc:creator><pubDate>Sun, 23 Oct 2011 10:58:58 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 11:05:42 GMT]]></title><description><![CDATA[<p>Eigentlich würd ich es ja wirklich logischer finden, wenn Kontonummer und Name konstant wären. IRL wird ja auch von Anfang an festgelegt, wie diese Sachen heißen.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/22268">@PI</a>: Du liest datentypen von rechts nach links?</p>
<p>tni, taolf, elbuod, rotcev, testib. Hört sich nach viel spaß an <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /></p>
<p>2,3&amp;4 deiner Punkte gehören also noch zum Stilistischen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134649</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 23 Oct 2011 11:05:42 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 11:05:52 GMT]]></title><description><![CDATA[<p>Ich iteriere Gedanklich mit einem token_reverse_iterator über die Datentypen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134651</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134651</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Sun, 23 Oct 2011 11:05:52 GMT</pubDate></item><item><title><![CDATA[Reply to C++ While Fehler on Sun, 23 Oct 2011 11:11:15 GMT]]></title><description><![CDATA[<p>314159265358979 schrieb:</p>
<blockquote>
<p>Ich iteriere Gedanklich mit einem token_reverse_iterator über die Datentypen.</p>
</blockquote>
<p>Den gibt es nicht.<br />
Hacker empfiehlt einen output bzw. forward_iterator.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134654</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134654</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 23 Oct 2011 11:11:15 GMT</pubDate></item></channel></rss>