<?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[was ist das?]]></title><description><![CDATA[<p>was ist das?</p>
<p>strlen(key);</p>
<p>was bringt es und wie setzt man es ein:</p>
<p>hier der code irgendwas ist falsch:</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt; 

int main() 
{ 
   char key[255],case_type,idx; 

   // Yes, gets() is sloppy, but I don't care, this is just a neccessary step. 
   // When actually using this, you can input the key any way you want. 
   printf(&quot;Enter the string: &quot;); 
   gets(key); 
   for (idx=0; idx &lt; strlen(key); idx++) { 
      // Only process alphabetic characters 
      if (key[idx] &lt; 'A' || (key[idx] &gt; 'Z' &amp;&amp; key[idx] &lt; 'a') || key[idx] &gt; 'z') 
         continue; 
      // Determine if the char is upper or lower case 
      if (key[idx] &gt;= 'a') 
         case_type = 'a'; 
      else 
         case_type = 'A'; 
      // Rotate the char's value, ensuring it doesn't accidentally &quot;fall off&quot; the end 
      key[idx] = (key[idx] + 13) % (case_type + 26); 
      if (key[idx] &lt; 26) 
         key[idx] += case_type; 
   } 

   printf(&quot;String run through ROT-13: &quot;); 
   puts(key); 
   getchar(); 
   return 0; 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/127691/was-ist-das</link><generator>RSS for Node</generator><lastBuildDate>Tue, 25 Aug 2026 06:21:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/127691.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Nov 2005 14:56:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to was ist das? on Sat, 26 Nov 2005 14:56:02 GMT]]></title><description><![CDATA[<p>was ist das?</p>
<p>strlen(key);</p>
<p>was bringt es und wie setzt man es ein:</p>
<p>hier der code irgendwas ist falsch:</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt; 

int main() 
{ 
   char key[255],case_type,idx; 

   // Yes, gets() is sloppy, but I don't care, this is just a neccessary step. 
   // When actually using this, you can input the key any way you want. 
   printf(&quot;Enter the string: &quot;); 
   gets(key); 
   for (idx=0; idx &lt; strlen(key); idx++) { 
      // Only process alphabetic characters 
      if (key[idx] &lt; 'A' || (key[idx] &gt; 'Z' &amp;&amp; key[idx] &lt; 'a') || key[idx] &gt; 'z') 
         continue; 
      // Determine if the char is upper or lower case 
      if (key[idx] &gt;= 'a') 
         case_type = 'a'; 
      else 
         case_type = 'A'; 
      // Rotate the char's value, ensuring it doesn't accidentally &quot;fall off&quot; the end 
      key[idx] = (key[idx] + 13) % (case_type + 26); 
      if (key[idx] &lt; 26) 
         key[idx] += case_type; 
   } 

   printf(&quot;String run through ROT-13: &quot;); 
   puts(key); 
   getchar(); 
   return 0; 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/927676</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/927676</guid><dc:creator><![CDATA[imo]]></dc:creator><pubDate>Sat, 26 Nov 2005 14:56:02 GMT</pubDate></item><item><title><![CDATA[Reply to was ist das? on Sat, 26 Nov 2005 14:57:49 GMT]]></title><description><![CDATA[<p>und gleich dazu warum funktioniert hier das atoi nicht?</p>
<pre><code class="language-cpp">gen_keystream(deck,keystream, atoi(key_len));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/927677</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/927677</guid><dc:creator><![CDATA[imo]]></dc:creator><pubDate>Sat, 26 Nov 2005 14:57:49 GMT</pubDate></item><item><title><![CDATA[Reply to was ist das? on Sat, 26 Nov 2005 14:59:24 GMT]]></title><description><![CDATA[<p>strlen ist eine Funktion aus cstring um die Länge eines null terminierten char-Arrays (C-Strings) herauszufinden:</p>
<pre><code class="language-cpp">char str[] = &quot;Super&quot;;
size_t len = strlen(str);  //gibt 5 zurück
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/927678</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/927678</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Sat, 26 Nov 2005 14:59:24 GMT</pubDate></item><item><title><![CDATA[Reply to was ist das? on Sat, 26 Nov 2005 15:00:08 GMT]]></title><description><![CDATA[<p>imo schrieb:</p>
<blockquote>
<p>und gleich dazu warum funktioniert hier das atoi nicht?</p>
<pre><code class="language-cpp">gen_keystream(deck,keystream, atoi(key_len));
</code></pre>
</blockquote>
<p>Was funktioniert nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/927679</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/927679</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Sat, 26 Nov 2005 15:00:08 GMT</pubDate></item><item><title><![CDATA[Reply to was ist das? on Mon, 28 Nov 2005 07:51:50 GMT]]></title><description><![CDATA[<p>Was für einen Typ hat denn key_len? atoi ist dazu da, Strings in Integer-Zahlen umzuwandeln.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/928768</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/928768</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 28 Nov 2005 07:51:50 GMT</pubDate></item></channel></rss>