<?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[Aktuelle Uhrzeit als Dateinamen Verwenden]]></title><description><![CDATA[<p>Hallo,</p>
<p>hab folgendes Problem, kann die aktuelle Uhrzeit nicht als Dateinamen+.txt verwenden?<br />
Zur besseren Übersicht hier nur der Ausschnitt.</p>
<p>P.S. Bin Anfägner!</p>
<pre><code>#include &lt;ctime&gt;
#include &lt;iostream&gt;
//Andere includes hab ich weggelassen

using namespace std;

int main
{

char i;

time_t now = time(0);
char* dt = ctime(&amp;now);
filename=dt+&quot;.txt&quot;;

while (1)
{
	for(i = 8; i &lt;= 190; i++)
	{
		if (GetAsyncKeyState(i) == -32767)
		Save (i,filename);
	}
}

/*RESTLICHER CODE*/

return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/316225/aktuelle-uhrzeit-als-dateinamen-verwenden</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Jul 2026 04:54:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/316225.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Apr 2013 07:42:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Aktuelle Uhrzeit als Dateinamen Verwenden on Fri, 26 Apr 2013 07:44:19 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>hab folgendes Problem, kann die aktuelle Uhrzeit nicht als Dateinamen+.txt verwenden?<br />
Zur besseren Übersicht hier nur der Ausschnitt.</p>
<p>P.S. Bin Anfägner!</p>
<pre><code>#include &lt;ctime&gt;
#include &lt;iostream&gt;
//Andere includes hab ich weggelassen

using namespace std;

int main
{

char i;

time_t now = time(0);
char* dt = ctime(&amp;now);
filename=dt+&quot;.txt&quot;;

while (1)
{
	for(i = 8; i &lt;= 190; i++)
	{
		if (GetAsyncKeyState(i) == -32767)
		Save (i,filename);
	}
}

/*RESTLICHER CODE*/

return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2318565</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2318565</guid><dc:creator><![CDATA[h4XoR]]></dc:creator><pubDate>Fri, 26 Apr 2013 07:44:19 GMT</pubDate></item><item><title><![CDATA[Reply to Aktuelle Uhrzeit als Dateinamen Verwenden on Fri, 26 Apr 2013 07:53:49 GMT]]></title><description><![CDATA[<p>soll das ein Keylogger werden ?</p>
<pre><code>while (1)
{

}
</code></pre>
<p>das ist eine Endlosschleife also gehe ich stark davon aus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2318567</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2318567</guid><dc:creator><![CDATA[CodeBase]]></dc:creator><pubDate>Fri, 26 Apr 2013 07:53:49 GMT</pubDate></item><item><title><![CDATA[Reply to Aktuelle Uhrzeit als Dateinamen Verwenden on Fri, 26 Apr 2013 08:22:11 GMT]]></title><description><![CDATA[<p>ja ist/wird es.<br />
Will wissen wer was wann an meinen PC macht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2318578</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2318578</guid><dc:creator><![CDATA[h4XoR]]></dc:creator><pubDate>Fri, 26 Apr 2013 08:22:11 GMT</pubDate></item><item><title><![CDATA[Reply to Aktuelle Uhrzeit als Dateinamen Verwenden on Fri, 26 Apr 2013 08:39:04 GMT]]></title><description><![CDATA[<p>dietzelmann schrieb:</p>
<blockquote>
<p>ja ist/wird es.<br />
Will wissen wer was wann an meinen PC macht</p>
</blockquote>
<p>Ja nee ist klar. Erzähl doch keine Märchen.</p>
<p>Thread sollte direkt geschlossen werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2318581</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2318581</guid><dc:creator><![CDATA[CreativeLabs]]></dc:creator><pubDate>Fri, 26 Apr 2013 08:39:04 GMT</pubDate></item><item><title><![CDATA[Reply to Aktuelle Uhrzeit als Dateinamen Verwenden on Fri, 26 Apr 2013 08:41:49 GMT]]></title><description><![CDATA[<pre><code>filename=dt+&quot;.txt&quot;;
</code></pre>
<p>Das hier ist eine Operation vom Typ<br />
'Zeiger auf char' + 'Zeiger auf Char' = ???<br />
Was erwartest du von der Zeile?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2318582</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2318582</guid><dc:creator><![CDATA[Ethon]]></dc:creator><pubDate>Fri, 26 Apr 2013 08:41:49 GMT</pubDate></item><item><title><![CDATA[Reply to Aktuelle Uhrzeit als Dateinamen Verwenden on Fri, 26 Apr 2013 08:51:44 GMT]]></title><description><![CDATA[<p>muss ich das dann erst in einen String umwandeln?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2318588</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2318588</guid><dc:creator><![CDATA[h4XoR]]></dc:creator><pubDate>Fri, 26 Apr 2013 08:51:44 GMT</pubDate></item><item><title><![CDATA[Reply to Aktuelle Uhrzeit als Dateinamen Verwenden on Fri, 26 Apr 2013 09:25:59 GMT]]></title><description><![CDATA[<p>Script-Kiddy....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2318599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2318599</guid><dc:creator><![CDATA[CreativeLabs]]></dc:creator><pubDate>Fri, 26 Apr 2013 09:25:59 GMT</pubDate></item><item><title><![CDATA[Reply to Aktuelle Uhrzeit als Dateinamen Verwenden on Fri, 26 Apr 2013 09:33:04 GMT]]></title><description><![CDATA[<p>CreativeLabs schrieb:</p>
<blockquote>
<p>Thread sollte direkt geschlossen werden.</p>
</blockquote>
<p>Wieso? Ist für einen Haxx0r zwar total p31nl1ch und l4m3, wenn er solche Anfängerfragen stellen muss, aber du brauchst ihm ja nicht zu antworten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2318601</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2318601</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Fri, 26 Apr 2013 09:33:04 GMT</pubDate></item><item><title><![CDATA[Reply to Aktuelle Uhrzeit als Dateinamen Verwenden on Fri, 26 Apr 2013 09:46:26 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/19375">@SeppJ</a>, jeder fängt mal klein an <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>
<p>Kann geschlossen werden, habs anders gelöst.</p>
<pre><code>#include &lt;time.h&gt;

void save_time (char *file);

void save_time(char *file)
{
	time_t t;
	time(&amp;t);
	FILE *OUTPUT_FILE;
	OUTPUT_FILE = fopen(file, &quot;a+&quot;);
		fprintf(OUTPUT_FILE, &quot;%s&quot;, ctime(&amp;t));
		fprintf(OUTPUT_FILE, &quot;%s&quot;, &quot;\n&quot;);
	fclose (OUTPUT_FILE);
}

int main() 
{
	save_time(&quot;filename.txt&quot;);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2318610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2318610</guid><dc:creator><![CDATA[h4XoR]]></dc:creator><pubDate>Fri, 26 Apr 2013 09:46:26 GMT</pubDate></item><item><title><![CDATA[Reply to Aktuelle Uhrzeit als Dateinamen Verwenden on Fri, 26 Apr 2013 09:47:11 GMT]]></title><description><![CDATA[<p>CodeBase schrieb:</p>
<blockquote>
<p>soll das ein Keylogger werden ?</p>
</blockquote>
<p>dietzelmann  schrieb:</p>
<blockquote>
<p>ja ist/wird es.</p>
</blockquote>
<p>lol.</p>
<p>Wär es nicht sinnvoller einen keyboardhook zu benutzen, anstatt ein Programm zu basteln, was 100% Cpu-Leistung frisst</p>
<p>SeppJ schrieb:</p>
<blockquote>
<p>Ist für einen Haxx0r zwar total p31nl1ch und l4m3</p>
</blockquote>
<p>Jep, einfach m3G4f4i1</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2318613</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2318613</guid><dc:creator><![CDATA[vlad_tepesch]]></dc:creator><pubDate>Fri, 26 Apr 2013 09:47:11 GMT</pubDate></item><item><title><![CDATA[Reply to Aktuelle Uhrzeit als Dateinamen Verwenden on Fri, 26 Apr 2013 10:13:16 GMT]]></title><description><![CDATA[<p>ich finds süß.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2318617</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2318617</guid><dc:creator><![CDATA[bimbo]]></dc:creator><pubDate>Fri, 26 Apr 2013 10:13:16 GMT</pubDate></item></channel></rss>