<?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[Zeitsteuerung]]></title><description><![CDATA[<p>Hallo,<br />
ich habe eine Frage bezüglich der Zeitsteuerung in Dev C++.<br />
Ich will eine Schleife programmieren, in der ein Char eingelesen wird.<br />
Wenn der Benutzer nicht innerhalb einer bestimmten Zeit (1sek) etwas eingibt, wird die Schleife abgebrochen.</p>
<p>zb.</p>
<p>while(......){<br />
zeichen=getche();<br />
....<br />
}</p>
<p>ich <strong>bedanke</strong> mich schonmal für eure Hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/212782/zeitsteuerung</link><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 15:58:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/212782.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 May 2008 14:02:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zeitsteuerung on Sat, 10 May 2008 14:02:30 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich habe eine Frage bezüglich der Zeitsteuerung in Dev C++.<br />
Ich will eine Schleife programmieren, in der ein Char eingelesen wird.<br />
Wenn der Benutzer nicht innerhalb einer bestimmten Zeit (1sek) etwas eingibt, wird die Schleife abgebrochen.</p>
<p>zb.</p>
<p>while(......){<br />
zeichen=getche();<br />
....<br />
}</p>
<p>ich <strong>bedanke</strong> mich schonmal für eure Hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1506538</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1506538</guid><dc:creator><![CDATA[Sneipa]]></dc:creator><pubDate>Sat, 10 May 2008 14:02:30 GMT</pubDate></item><item><title><![CDATA[Reply to Zeitsteuerung on Sat, 10 May 2008 15:22:40 GMT]]></title><description><![CDATA[<p><a href="http://www.cppreference.com/stddate/time.html" rel="nofollow">http://www.cppreference.com/stddate/time.html</a></p>
<p>Zeit messen und wenn die gewünschte Dauer abgelaufen ist aus der Schlaufe raus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1506597</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1506597</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sat, 10 May 2008 15:22:40 GMT</pubDate></item><item><title><![CDATA[Reply to Zeitsteuerung on Sat, 10 May 2008 17:25:18 GMT]]></title><description><![CDATA[<p>hmm, irgentwie weiss ich nicht wie ich diese Funktion einbauen kann.<br />
kannst du mir Anhand eines Bsp das zeigen?<br />
Wenn ein User einen Char nicht innerhalb von 2 Sekunden eingibt soll, das eingeben überspungen werden..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1506668</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1506668</guid><dc:creator><![CDATA[Sneipa]]></dc:creator><pubDate>Sat, 10 May 2008 17:25:18 GMT</pubDate></item><item><title><![CDATA[Reply to Zeitsteuerung on Sat, 10 May 2008 17:50:57 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

DWORD WINAPI CharInputThread ( LPVOID pt )
{
	char* c = ( char* ) pt;
	*c = getch ();
	return 0;
}

void InputWaitfunction ( int iSeconds )
{
	HANDLE hThread;
	DWORD id;
	char c = 0;

	printf ( &quot;Type a character within %d Seconds.\n&quot;, iSeconds );

	hThread = CreateThread( NULL, NULL, CharInputThread, ( LPVOID )&amp;c, 0, &amp;id );
	WaitForSingleObject ( hThread, iSeconds * 1000 );

	if ( c == 0 )
		puts(&quot;Too late.&quot;);
	else 
		printf ( &quot;Character read: %c\n&quot;, c );
}

int main( void )
{
	InputWaitfunction ( 2 );
	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1506682</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1506682</guid><dc:creator><![CDATA[Jollie Joker]]></dc:creator><pubDate>Sat, 10 May 2008 17:50:57 GMT</pubDate></item><item><title><![CDATA[Reply to Zeitsteuerung on Sat, 10 May 2008 17:52:56 GMT]]></title><description><![CDATA[<p>Was hat das mit den oben genannten Funktionen zu tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1506684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1506684</guid><dc:creator><![CDATA[basti33]]></dc:creator><pubDate>Sat, 10 May 2008 17:52:56 GMT</pubDate></item><item><title><![CDATA[Reply to Zeitsteuerung on Sat, 10 May 2008 19:34:17 GMT]]></title><description><![CDATA[<p>basti33 schrieb:</p>
<blockquote>
<p>Was hat das mit den oben genannten Funktionen zu tun?</p>
</blockquote>
<p>hääää ??<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1506753</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1506753</guid><dc:creator><![CDATA[hä?]]></dc:creator><pubDate>Sat, 10 May 2008 19:34:17 GMT</pubDate></item></channel></rss>