<?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[Benutze ich den einen Befehl geht der andere nicht Könnt ihr mal mal programm testen bitte]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;cstdlib&gt;
#include &lt;iostream&gt;
#include &lt;math.h&gt;
#include &lt;string.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
using namespace std;

string bin (int zahl);

int main(int argc, char *argv[])
{
    float y,f,g;

    time_t zeit,zeit1,zeit2;
    g=0;
    zeit = time(NULL);
    cout &lt;&lt;&quot;Wie groß sollen die Schritte sein \?\n&quot;;
    cin&gt;&gt;f;
    for(float i=1;i&lt;=360;i=i+f){
     y = 128 + (128 * sin(i));
     int ausgabe =y;
    cout &lt;&lt;bin(y)&lt;&lt;&quot;\n&quot;;
    g++;
}
    zeit2 = time(NULL);
    zeit1 = zeit2 - zeit;
    cout &lt;&lt; &quot;Es wurden &quot;&lt;&lt;g&lt;&lt;&quot;Zahlen berechnet, in &quot; &lt;&lt; zeit1 &lt;&lt; &quot; Sekunden\n&quot;;
    cout &lt;&lt;bin(13);
    system(&quot;PAUSE&quot;);
    return EXIT_SUCCESS;
}

string bin (int zahl)
{
         string hallo;
         char test[33], ausgebe[70];
         string ausgabe;
 while(zahl&gt;0){      
  int rest;

  rest = zahl % 2;
  zahl = zahl -rest;
  if (zahl!=0) zahl = zahl / 2;
  itoa(rest,test,2);
  ausgabe = ausgabe + test;
 // cout &lt;&lt; rest;
  hallo = ausgabe;
  //return 0;
  //char test123[] = ausgabe;
  strlen(ausgabe[7])&lt;&lt;&quot;\n&quot;;
}
 return hallo;       
}
</code></pre>
<p>Danke könnt es ja einfach mal probieren zu Compilieren</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/141776/benutze-ich-den-einen-befehl-geht-der-andere-nicht-könnt-ihr-mal-mal-programm-testen-bitte</link><generator>RSS for Node</generator><lastBuildDate>Mon, 31 Aug 2026 14:17:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/141776.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Mar 2006 20:31:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Benutze ich den einen Befehl geht der andere nicht Könnt ihr mal mal programm testen bitte on Fri, 24 Mar 2006 20:31:27 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;cstdlib&gt;
#include &lt;iostream&gt;
#include &lt;math.h&gt;
#include &lt;string.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
using namespace std;

string bin (int zahl);

int main(int argc, char *argv[])
{
    float y,f,g;

    time_t zeit,zeit1,zeit2;
    g=0;
    zeit = time(NULL);
    cout &lt;&lt;&quot;Wie groß sollen die Schritte sein \?\n&quot;;
    cin&gt;&gt;f;
    for(float i=1;i&lt;=360;i=i+f){
     y = 128 + (128 * sin(i));
     int ausgabe =y;
    cout &lt;&lt;bin(y)&lt;&lt;&quot;\n&quot;;
    g++;
}
    zeit2 = time(NULL);
    zeit1 = zeit2 - zeit;
    cout &lt;&lt; &quot;Es wurden &quot;&lt;&lt;g&lt;&lt;&quot;Zahlen berechnet, in &quot; &lt;&lt; zeit1 &lt;&lt; &quot; Sekunden\n&quot;;
    cout &lt;&lt;bin(13);
    system(&quot;PAUSE&quot;);
    return EXIT_SUCCESS;
}

string bin (int zahl)
{
         string hallo;
         char test[33], ausgebe[70];
         string ausgabe;
 while(zahl&gt;0){      
  int rest;

  rest = zahl % 2;
  zahl = zahl -rest;
  if (zahl!=0) zahl = zahl / 2;
  itoa(rest,test,2);
  ausgabe = ausgabe + test;
 // cout &lt;&lt; rest;
  hallo = ausgabe;
  //return 0;
  //char test123[] = ausgabe;
  strlen(ausgabe[7])&lt;&lt;&quot;\n&quot;;
}
 return hallo;       
}
</code></pre>
<p>Danke könnt es ja einfach mal probieren zu Compilieren</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023414</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023414</guid><dc:creator><![CDATA[sascha_ow]]></dc:creator><pubDate>Fri, 24 Mar 2006 20:31:27 GMT</pubDate></item><item><title><![CDATA[Reply to Benutze ich den einen Befehl geht der andere nicht Könnt ihr mal mal programm testen bitte on Fri, 24 Mar 2006 20:39:31 GMT]]></title><description><![CDATA[<p>Wenn du konstruktive Antworten erwartest ist es hilfreich zu erwähnen welchen Zweck das Programm erfüllen soll (bzw. die einzelnen Funktionen), in wie weit es diesen erfüllt und welche Zeile der Compiler nicht akzeptiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023419</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023419</guid><dc:creator><![CDATA[...]]></dc:creator><pubDate>Fri, 24 Mar 2006 20:39:31 GMT</pubDate></item></channel></rss>