<?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[Eine Art Translator schreiben!]]></title><description><![CDATA[<p>Hallo,<br />
Wahrscheinlich kennt ihr ja diese leetspeak translators wo man einen Text eingibt und der Translator ersetzt bestimme Buchstaben des Textes und schon hat man &quot;LeetSpeak&quot;.</p>
<p>Hier mal ein Beispiel für nen Translator:<br />
<a href="http://home.no.net/hellshl/main/translate.html" rel="nofollow">http://home.no.net/hellshl/main/translate.html</a></p>
<p>z.B Normal = Hallo<br />
Leet = H4||0</p>
<p>Und sowas würde ich auch gerne machen , also ein Programm wo du den Text eingibst und es dir dann ganz einfach nur ein paar Buchstaben davon austauscht und das Ergebniss anzeigt.<br />
Leider habe ich nicht so viel Ahnung von C++ möchte es aber denoch versuchen , brauche aber dazu Tipps und Hilfe <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="🙂"
    /> Wäre also klasse wenn ihr mir Ansätze liefern könntet , denn ich habe im Moment absolut keine Idee wie ich das Prog dazu bringe bestimmte Buchstaben auszutauschen</p>
<p>Danke schonmal im Vorraus,<br />
Marale7 <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/topic/152666/eine-art-translator-schreiben</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 04:32:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/152666.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Jul 2006 13:06:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Eine Art Translator schreiben! on Sat, 08 Jul 2006 13:06:53 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Wahrscheinlich kennt ihr ja diese leetspeak translators wo man einen Text eingibt und der Translator ersetzt bestimme Buchstaben des Textes und schon hat man &quot;LeetSpeak&quot;.</p>
<p>Hier mal ein Beispiel für nen Translator:<br />
<a href="http://home.no.net/hellshl/main/translate.html" rel="nofollow">http://home.no.net/hellshl/main/translate.html</a></p>
<p>z.B Normal = Hallo<br />
Leet = H4||0</p>
<p>Und sowas würde ich auch gerne machen , also ein Programm wo du den Text eingibst und es dir dann ganz einfach nur ein paar Buchstaben davon austauscht und das Ergebniss anzeigt.<br />
Leider habe ich nicht so viel Ahnung von C++ möchte es aber denoch versuchen , brauche aber dazu Tipps und Hilfe <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="🙂"
    /> Wäre also klasse wenn ihr mir Ansätze liefern könntet , denn ich habe im Moment absolut keine Idee wie ich das Prog dazu bringe bestimmte Buchstaben auszutauschen</p>
<p>Danke schonmal im Vorraus,<br />
Marale7 <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/1093887</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1093887</guid><dc:creator><![CDATA[marale7]]></dc:creator><pubDate>Sat, 08 Jul 2006 13:06:53 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Art Translator schreiben! on Sat, 08 Jul 2006 13:08:58 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Du musst Zeichen einzeln einlesen und diese ggf. in einem switch-statement auswerten:</p>
<p>while(true)<br />
switch(currentChar)<br />
case a:<br />
cout &lt;&lt; '4'<br />
....</p>
<p>MFG winexec*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1093889</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1093889</guid><dc:creator><![CDATA[winexec*]]></dc:creator><pubDate>Sat, 08 Jul 2006 13:08:58 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Art Translator schreiben! on Sat, 08 Jul 2006 13:14:32 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich habe einmal kurz was geschrieben:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;conio.h&gt;
#include &lt;string&gt;
using namespace std;

int main(){
    string a = &quot;hallo&quot;;
    for(int i = 0; i &lt; a.size() + 1; i++){
        switch(a[i]){
            case 'a':
            a[i] = '4';
            break;
            case 'o':
            a[i] = '0';
            break;
        }
    }
    cout &lt;&lt; a;
    getch();
}
</code></pre>
<p>Ausgabe:</p>
<p>h4ll0</p>
<p>MFG winexec*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1093895</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1093895</guid><dc:creator><![CDATA[winexec*]]></dc:creator><pubDate>Sat, 08 Jul 2006 13:14:32 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Art Translator schreiben! on Sat, 08 Jul 2006 13:31:28 GMT]]></title><description><![CDATA[<p>Boah ihr seid echt klasse <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>So schnell ne Antwort, hatte aber auch nichts anderes erwartet. Das Forum wurde mir empfohlen <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>
<p>Ja klasse klappt wunderbar, nur jetzt msüste ich noch den String definieren können , also so das nicht schon das Wort was übersetzt wird vorgegeben ist.</p>
<p>Eine Art Eingabe also.</p>
<p>Habt ihr dazu auch ne Idee ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1093904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1093904</guid><dc:creator><![CDATA[marale7]]></dc:creator><pubDate>Sat, 08 Jul 2006 13:31:28 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Art Translator schreiben! on Sat, 08 Jul 2006 13:37:19 GMT]]></title><description><![CDATA[<p><a href="http://www.cppreference.com/cppio/index.html" rel="nofollow">http://www.cppreference.com/cppio/index.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1093908</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1093908</guid><dc:creator><![CDATA[golden_jubilee]]></dc:creator><pubDate>Sat, 08 Jul 2006 13:37:19 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Art Translator schreiben! on Sat, 08 Jul 2006 14:04:37 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Aber nur weil ich auch nichts besseres zu tun hatte</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;conio.h&gt;
#include &lt;string&gt;
#include &lt;fstream&gt;
using namespace std;

int main(){
    ifstream file(&quot;file.txt&quot;);
    string buf[100];
    int count = 0;
    while(!file.eof()){
        file &gt;&gt; buf[count];
        count += 1;
    }
    for(int i = 0; i &lt; count; i++){
        string a = buf[i];
        for(int t = 0;t &lt; a.size() + 1; t++){
            switch(a[t]){
                case 'a':
                    a[t] = '4';
                    break;
                case 'e':
                    a[t] = '3';
                    break;
                case 'o':
                    a[t] = '0';
                    break;
            }
        }
        buf[i] = a + ' ';
    }
    ofstream ouf(&quot;newfile.txt&quot;);
    for(int k = 0; k &lt; count + 1; k++){
        ouf &lt;&lt; buf[k];
    }
    file.close();
    ouf.close();
    getch();
}
</code></pre>
<p><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>
<p>MFG winexec*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1093920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1093920</guid><dc:creator><![CDATA[winexec*]]></dc:creator><pubDate>Sat, 08 Jul 2006 14:04:37 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Art Translator schreiben! on Sat, 08 Jul 2006 18:08:08 GMT]]></title><description><![CDATA[<p>Klappt klasse <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>
<p>Ich werde jetzt nochmal was rumprobieren ob ich auch einfach die Ein- und Ausgabe des Textes in das Programm selbst einbauen kann.</p>
<p>Vielen dank winexec* , hast echt was gut bei mir :&gt;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1094079</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1094079</guid><dc:creator><![CDATA[marale7]]></dc:creator><pubDate>Sat, 08 Jul 2006 18:08:08 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Art Translator schreiben! on Sun, 09 Jul 2006 16:00:12 GMT]]></title><description><![CDATA[<p>Ich schlage vor:</p>
<pre><code class="language-cpp">char translate[256];
for(int i=0; i&lt;256; ++i)
{
  translate[i] = i;
}

// so, jetzt Ersetzungen definieren, z.B. a durch 4:
translate['a'] = '4';
translate['l'] = '|';

// oder auch Tabelle aus ner Datei einlesen.

for(int i = 0; i &lt; input.size(); i++){
  input[i] = translate[input[i&rsqb;&rsqb;;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1094511</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1094511</guid><dc:creator><![CDATA[Jester]]></dc:creator><pubDate>Sun, 09 Jul 2006 16:00:12 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Art Translator schreiben! on Wed, 12 Jul 2006 15:03:52 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>die Variante von Jester finde ich persönlich besser &amp; übersichtlicher,</p>
<p>wobei:</p>
<p>Jester schrieb:</p>
<blockquote>
<pre><code class="language-cpp">translate[i] = i;
</code></pre>
</blockquote>
<p>ich versteh das &quot; = i &quot; nicht. das Index i in translate ist mir durchaus bewusst, aber das = i?</p>
<p>ich versteh das z.b. so:</p>
<p>translate[4] = 4;</p>
<p>ich versteh den Sinn nicht <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>
<p>Kann mir jemand nen kleinen Gedankenstoß geben? <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/1096547</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1096547</guid><dc:creator><![CDATA[nki]]></dc:creator><pubDate>Wed, 12 Jul 2006 15:03:52 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Art Translator schreiben! on Wed, 12 Jul 2006 15:10:03 GMT]]></title><description><![CDATA[<p>nki schrieb:</p>
<blockquote>
<p>Jester schrieb:</p>
<blockquote>
<pre><code class="language-cpp">translate[i] = i;
</code></pre>
</blockquote>
<p>ich versteh das &quot; = i &quot; nicht. das Index i in translate ist mir durchaus bewusst, aber das = i?</p>
</blockquote>
<p>das i ist der ascii-wert des entspr. buchstabens. translate['a'] z.B. wandelt den character 'a' implizit in den entsprechenden integer-wert um.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1096548</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1096548</guid><dc:creator><![CDATA[bumbytie]]></dc:creator><pubDate>Wed, 12 Jul 2006 15:10:03 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Art Translator schreiben! on Wed, 12 Jul 2006 18:45:17 GMT]]></title><description><![CDATA[<p>achsooo, ah, ok, besten Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1096584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1096584</guid><dc:creator><![CDATA[nki]]></dc:creator><pubDate>Wed, 12 Jul 2006 18:45:17 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Art Translator schreiben! on Wed, 12 Jul 2006 19:04:55 GMT]]></title><description><![CDATA[<p>Ich hab das eben mal grad getestet, aber anstatt dass er mir das umwandelt, spuckt er nur hyroglyphen und smileys aus.</p>
<p>Hier der Code</p>
<pre><code class="language-cpp">void Klasse :: m_NormalTo_1337()
{
     cout &lt;&lt; &quot;\nEingabe in 1337 umwandeln&quot;
          &lt;&lt; &quot;\n-------------------------\n&quot;
          &lt;&lt; &quot;\nBitte geben Sie einen String (Zeichenkette) ein: &quot;;
     cin  &gt;&gt; Eingabe;
     for (int i= 0; i &lt; 256; ++i)
     {
         Eingabe[i] = i;
     }

     // Kodierung

     Eingabe['a'] = '4';
     Eingabe['o'] = '0';

     cout &lt;&lt; &quot;\nErgebnis: &quot; &lt;&lt; Eingabe;
}
</code></pre>
<p>Eingabe ist in der Klasse wie folgt definiert:</p>
<pre><code class="language-cpp">private:
  string Eingabe;
</code></pre>
<p>Woran liegt das? Ich find keinen Fehler. (Ja es gibt aber einen <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>***** edit *****</p>
<p>Schon gut, ich weiß wo der Fehler liegt:</p>
<p>Eingabe['a'] = 4;</p>
<p>das 'a' ist der Index und der compiler weiß ja net an welcher Stelle das a steht und wieviele es gibt. der sucht sich das a, an welcher Stelle auch immer das steht (ich glaub der sucht hex-dez code (kenn den jetzt net für &quot;a&quot; also nehmen wir mal an &quot;A&quot; wäre dann 65, dann ersetzt der die 65. stelle durch eine 4.. (korregiert mich, wenn ich falsch liege)</p>
<p>Die Problematik müsste man doch schon mit if oder switch lösen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1096691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1096691</guid><dc:creator><![CDATA[nki]]></dc:creator><pubDate>Wed, 12 Jul 2006 19:04:55 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Art Translator schreiben! on Wed, 12 Jul 2006 19:38:38 GMT]]></title><description><![CDATA[<p>Lies nochmal in Ruhe mein Posting durch. Du schmeißt grad die Eingabe mit dem Übersetzungsarray durcheinander.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1096717</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1096717</guid><dc:creator><![CDATA[Jester]]></dc:creator><pubDate>Wed, 12 Jul 2006 19:38:38 GMT</pubDate></item></channel></rss>