<?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[Jenkins akzeptiert Quellcode nicht.]]></title><description><![CDATA[<p>Die Entwicklungsumgebung Jenkings meckert. Sie sagt, meine Startbedingung für &quot;i&quot; in der Schleife ist fehlerhaft. (In Visual Studio funktioniert der Code, er scheint aber nicht korrekt zu sein) Der zeite Fehler ist, er gibt nichts aus, visual Studio schon.</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;

using namespace std;
int main() {
	string eingabe;
	string ausgabe;
	cout &lt;&lt; &quot;Bitte geben Sie die Zeichenkette ein: &quot;;
	getline(cin, eingabe);

	cout &lt;&lt; &quot;Die umgekehrte Zeichenkette lautet:&quot;;

	for (int i = eingabe.length(); i&gt;= 0; i--)
	{

		ausgabe += eingabe[i];
	}
	cout &lt;&lt; ausgabe;
	cout &lt;&lt; endl;
	system(&quot;PAUSE&quot;);
	return 0;

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/340235/jenkins-akzeptiert-quellcode-nicht</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 08:35:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/340235.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Oct 2016 10:54:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 10:54:28 GMT]]></title><description><![CDATA[<p>Die Entwicklungsumgebung Jenkings meckert. Sie sagt, meine Startbedingung für &quot;i&quot; in der Schleife ist fehlerhaft. (In Visual Studio funktioniert der Code, er scheint aber nicht korrekt zu sein) Der zeite Fehler ist, er gibt nichts aus, visual Studio schon.</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;

using namespace std;
int main() {
	string eingabe;
	string ausgabe;
	cout &lt;&lt; &quot;Bitte geben Sie die Zeichenkette ein: &quot;;
	getline(cin, eingabe);

	cout &lt;&lt; &quot;Die umgekehrte Zeichenkette lautet:&quot;;

	for (int i = eingabe.length(); i&gt;= 0; i--)
	{

		ausgabe += eingabe[i];
	}
	cout &lt;&lt; ausgabe;
	cout &lt;&lt; endl;
	system(&quot;PAUSE&quot;);
	return 0;

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2513044</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513044</guid><dc:creator><![CDATA[SvenJungwird]]></dc:creator><pubDate>Thu, 27 Oct 2016 10:54:28 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 10:56:01 GMT]]></title><description><![CDATA[<p>schau doch mal in der Doku, welchen Rückgabetyp std::string::length hat.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513045</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513045</guid><dc:creator><![CDATA[daddy_felix]]></dc:creator><pubDate>Thu, 27 Oct 2016 10:56:01 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 11:24:34 GMT]]></title><description><![CDATA[<p>Ein int.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513053</guid><dc:creator><![CDATA[SvenJungwird]]></dc:creator><pubDate>Thu, 27 Oct 2016 11:24:34 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 11:26:07 GMT]]></title><description><![CDATA[<p>Int? Falls die Länge mal -42 sein sollte?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513054</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513054</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Thu, 27 Oct 2016 11:26:07 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 11:43:20 GMT]]></title><description><![CDATA[<p>SvenJungwird schrieb:</p>
<blockquote>
<p>Ein int.</p>
</blockquote>
<p>In welcher Doku hast Du das gefunden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513059</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513059</guid><dc:creator><![CDATA[Belli]]></dc:creator><pubDate>Thu, 27 Oct 2016 11:43:20 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 12:07:25 GMT]]></title><description><![CDATA[<p>SvenJungwird schrieb:</p>
<blockquote>
<p>Entwicklungsumgebung Jenkings</p>
</blockquote>
<p>Was ist das?</p>
<p>SvenJungwird schrieb:</p>
<blockquote>
<p>Sie sagt, meine Startbedingung für &quot;i&quot; in der Schleife ist fehlerhaft.</p>
</blockquote>
<p>Niemand will wissen, ob du die indirekte Rede beherrschst. Copy&amp;Paste</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513066</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Thu, 27 Oct 2016 12:07:25 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 12:08:45 GMT]]></title><description><![CDATA[<p>SvenJungwird schrieb:</p>
<blockquote>
<p>Die Entwicklungsumgebung Jenkings meckert. Sie sagt, meine Startbedingung für &quot;i&quot; in der Schleife ist fehlerhaft.</p>
</blockquote>
<p>Poste mal die exacte fehlermeldung und keine interpretation!<br />
Jenkinst selbst kann keinen C++ code übersetzten dafür braucht es einen C++ compiler, welcher im jenkins projekt entsprechend konfiguriert wird.<br />
Jenkins kann auch mit visualstuio projekt files arbeiten. Dafür wird eine passende visualstudio version auf dem build server benötigt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513067</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513067</guid><dc:creator><![CDATA[firefly]]></dc:creator><pubDate>Thu, 27 Oct 2016 12:08:45 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 12:43:28 GMT]]></title><description><![CDATA[<p>Da length() das Äquivalent zu sizeof() ist wird auch auch size_t der Rückgabewert sein. Und es ist auch immer doof uninitialisiert Strings zu verwenden, das kann auch in die Hose gehen, besser Wert überschreiben. Ein guter Tip, nicht nur für Strings.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513069</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513069</guid><dc:creator><![CDATA[VollInDieHose]]></dc:creator><pubDate>Thu, 27 Oct 2016 12:43:28 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 12:47:43 GMT]]></title><description><![CDATA[<p>VollInDieHose schrieb:</p>
<blockquote>
<p>Und es ist auch immer doof uninitialisiert Strings zu verwenden, das kann auch in die Hose gehen, besser Wert überschreiben.</p>
</blockquote>
<p>Erklär mal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513070</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513070</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Thu, 27 Oct 2016 12:47:43 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 13:37:48 GMT]]></title><description><![CDATA[<p>Das hier</p>
<pre><code>i = eingabe.length()
</code></pre>
<p>ist als Startwert auch eher schlecht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513080</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513080</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 27 Oct 2016 13:37:48 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 13:45:15 GMT]]></title><description><![CDATA[<p>SvenJungwird schrieb:</p>
<blockquote>
<p>...</p>
</blockquote>
<p>FH Aachen zufällig? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Versuch mal</p>
<pre><code>for (int i = eingabe.length()-1; i&gt;= 0; i--)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2513082</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513082</guid><dc:creator><![CDATA[DaTaCrAsH]]></dc:creator><pubDate>Thu, 27 Oct 2016 13:45:15 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 14:05:00 GMT]]></title><description><![CDATA[<p>DaTaCrAsH schrieb:</p>
<blockquote>
<p>Versuch mal</p>
<pre><code>for (int i = eingabe.length()-1; i&gt;= 0; i--)
</code></pre>
</blockquote>
<p>Rückwärts in u.U. leere Arrays/Strings indizieren:</p>
<pre><code class="language-cpp">for(int i = eingabe.length(); i!=0; )
  --i;
  ...
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2513085</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513085</guid><dc:creator><![CDATA[Furble Wurble]]></dc:creator><pubDate>Thu, 27 Oct 2016 14:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 16:39:23 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Jenkins erwartet:</p>
<p>Eingabe: hi jo</p>
<p>Ausgabe: Die umgekehrte Zeichenkette lautet: oj ih</p>
<p>Tatsächlich gibt mein programm aber gar nicht oj ih aus.</p>
<p>Deshalb error</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513109</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513109</guid><dc:creator><![CDATA[SvenJungwird]]></dc:creator><pubDate>Thu, 27 Oct 2016 16:39:23 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 17:04:39 GMT]]></title><description><![CDATA[<p>er möchte keine fehler preisgeben</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513115</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513115</guid><dc:creator><![CDATA[sinterbad]]></dc:creator><pubDate>Thu, 27 Oct 2016 17:04:39 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 17:36:04 GMT]]></title><description><![CDATA[<p>SvenJungwird schrieb:</p>
<blockquote>
<p>Hallo,</p>
<p>Jenkins erwartet:</p>
<p>Eingabe: hi jo</p>
<p>Ausgabe: Die umgekehrte Zeichenkette lautet: oj ih</p>
<p>Tatsächlich gibt mein programm aber gar nicht oj ih aus.</p>
<p>Deshalb error</p>
</blockquote>
<p>Das ist nicht weiter überraschend. Vergleich doch mal die Länge von Ein- und Ausgabestring.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513122</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513122</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Thu, 27 Oct 2016 17:36:04 GMT</pubDate></item><item><title><![CDATA[Reply to Jenkins akzeptiert Quellcode nicht. on Thu, 27 Oct 2016 19:01:33 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>vielen Dank! Es war tatsächlich die Länge. Ein und Ausgabe hatte eine unterschiedliche Länge. VIELEN DANK an alle!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513150</guid><dc:creator><![CDATA[SvenJungwird]]></dc:creator><pubDate>Thu, 27 Oct 2016 19:01:33 GMT</pubDate></item></channel></rss>