<?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[String Probleme]]></title><description><![CDATA[<p>hi,<br />
ich hab folgendes problem und zwar will ich mit der variable string einen namen eingeben lassen und der soll dann mit einer if anweisung überprüft werden. ich hab ein programm in c++ geschrieben aber es funktioniert nciht. vielleiht kann mir ja einer helfen:</p>
<p>#include &lt;iostream&gt; //neue C++ Headerdatei<br />
#include &lt;conio.h&gt; // fuer getch()<br />
#include &lt;string&gt;</p>
<p>using namespace std; //definiert Standard-Namensbereich</p>
<p>int main() //nach ISO-Standard<br />
{</p>
<p>string name, password;</p>
<p>cout&lt;&lt;&quot;Geben Sie Ihr Name ein: &quot;;<br />
cin&gt;&gt;name;<br />
cout&lt;&lt;&quot;Geben Sie Ihr Passwort ein: &quot;;<br />
cin&gt;&gt;password;</p>
<p>if (name==andreas)<br />
{<br />
cout&lt;&lt;&quot;ok&quot;;<br />
}<br />
else<br />
{<br />
cout&lt;&lt;&quot;nicht ok&quot;;<br />
}</p>
<p>getch();<br />
return 0; //nach ISO-Standard<br />
}</p>
<p>das íst ein beispiel. es gibt probleme beim kompilieren bei der if anweisung.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/128247/string-probleme</link><generator>RSS for Node</generator><lastBuildDate>Tue, 25 Aug 2026 12:59:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/128247.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Dec 2005 19:12:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String Probleme on Thu, 01 Dec 2005 19:12:18 GMT]]></title><description><![CDATA[<p>hi,<br />
ich hab folgendes problem und zwar will ich mit der variable string einen namen eingeben lassen und der soll dann mit einer if anweisung überprüft werden. ich hab ein programm in c++ geschrieben aber es funktioniert nciht. vielleiht kann mir ja einer helfen:</p>
<p>#include &lt;iostream&gt; //neue C++ Headerdatei<br />
#include &lt;conio.h&gt; // fuer getch()<br />
#include &lt;string&gt;</p>
<p>using namespace std; //definiert Standard-Namensbereich</p>
<p>int main() //nach ISO-Standard<br />
{</p>
<p>string name, password;</p>
<p>cout&lt;&lt;&quot;Geben Sie Ihr Name ein: &quot;;<br />
cin&gt;&gt;name;<br />
cout&lt;&lt;&quot;Geben Sie Ihr Passwort ein: &quot;;<br />
cin&gt;&gt;password;</p>
<p>if (name==andreas)<br />
{<br />
cout&lt;&lt;&quot;ok&quot;;<br />
}<br />
else<br />
{<br />
cout&lt;&lt;&quot;nicht ok&quot;;<br />
}</p>
<p>getch();<br />
return 0; //nach ISO-Standard<br />
}</p>
<p>das íst ein beispiel. es gibt probleme beim kompilieren bei der if anweisung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/931660</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/931660</guid><dc:creator><![CDATA[XAndreasX]]></dc:creator><pubDate>Thu, 01 Dec 2005 19:12:18 GMT</pubDate></item><item><title><![CDATA[Reply to String Probleme on Thu, 01 Dec 2005 19:18:13 GMT]]></title><description><![CDATA[<p>Dein code wäre ok wenn du irgendwo definiert hättest</p>
<pre><code>string andreas = &quot;andreas&quot;;
</code></pre>
<p>Da du das aber nicht getan hast wäre</p>
<pre><code class="language-cpp">if (name==&quot;andreas&quot;)
</code></pre>
<p>eine Alternative.<br />
Kurt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/931668</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/931668</guid><dc:creator><![CDATA[ZuK]]></dc:creator><pubDate>Thu, 01 Dec 2005 19:18:13 GMT</pubDate></item><item><title><![CDATA[Reply to String Probleme on Thu, 01 Dec 2005 19:19:01 GMT]]></title><description><![CDATA[<p>andreas ist nicht als Variable deklariert. Sieht aber wohl danach aus, als wenn es ein String sein sollte, also in doppelte Hochkommas packen <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="😉"
    /><br />
andres =&gt; &quot;andreas&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/931670</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/931670</guid><dc:creator><![CDATA[Vellas]]></dc:creator><pubDate>Thu, 01 Dec 2005 19:19:01 GMT</pubDate></item><item><title><![CDATA[Reply to String Probleme on Thu, 01 Dec 2005 19:38:34 GMT]]></title><description><![CDATA[<p>VIelen dank es hat geklappt. jetzt würde ich noch gerne wissen wie man macht das wenn der benutzer das passwort eingibt das es verschlüsselt in *** geschrieben wird.<br />
mein programm sieht nun so aus:</p>
<p>#include &lt;iostream&gt; //neue C++ Headerdatei<br />
#include &lt;conio.h&gt; // fuer getch()<br />
#include &lt;string&gt;</p>
<p>using namespace std; //definiert Standard-Namensbereich</p>
<p>int main() //nach ISO-Standard<br />
{</p>
<p>string name, password;<br />
double b;</p>
<p>cout&lt;&lt;&quot;Geben Sie Ihr Name ein: &quot;;<br />
cin&gt;&gt;name;<br />
cout&lt;&lt;&quot;Geben Sie Ihr Passwort ein: &quot;;<br />
cin&gt;&gt;password;</p>
<p>if (name==&quot;andreas&quot; &amp;&amp; password==&quot;test&quot;)<br />
{<br />
cout&lt;&lt;&quot;ok&quot;;<br />
}<br />
else<br />
{<br />
cout&lt;&lt;&quot;nicht ok&quot;;<br />
}</p>
<p>getch();<br />
return 0; //nach ISO-Standard<br />
}</p>
<p>wo und was muss ich zur verschlüsselung eingeben?<br />
danke schonma <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/931689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/931689</guid><dc:creator><![CDATA[XAndreasX]]></dc:creator><pubDate>Thu, 01 Dec 2005 19:38:34 GMT</pubDate></item><item><title><![CDATA[Reply to String Probleme on Thu, 01 Dec 2005 19:55:50 GMT]]></title><description><![CDATA[<p>Mit Standard C/C++ geht das nicht. Aber du hast ja schon den header &lt;conio.h&gt; eingebunden da gibts wahrscheinlich irgendwas mit dem das geht.<br />
Kurt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/931706</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/931706</guid><dc:creator><![CDATA[ZuK]]></dc:creator><pubDate>Thu, 01 Dec 2005 19:55:50 GMT</pubDate></item></channel></rss>