<?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[C++ Perpetuum Mobile]]></title><description><![CDATA[<p>Wie kann ich in C++ ein Perpetuum Mobile Programm schreiben, das nie mehr aufhört zu laufen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/202497/c-perpetuum-mobile</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 16:58:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/202497.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Jan 2008 09:29:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ Perpetuum Mobile on Sat, 12 Jan 2008 09:29:20 GMT]]></title><description><![CDATA[<p>Wie kann ich in C++ ein Perpetuum Mobile Programm schreiben, das nie mehr aufhört zu laufen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1435248</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1435248</guid><dc:creator><![CDATA[ekvip]]></dc:creator><pubDate>Sat, 12 Jan 2008 09:29:20 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Perpetuum Mobile on Sat, 12 Jan 2008 10:02:05 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int main() {
    for (; ;) ;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1435260</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1435260</guid><dc:creator><![CDATA[Konrad Rudolph]]></dc:creator><pubDate>Sat, 12 Jan 2008 10:02:05 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Perpetuum Mobile on Sat, 12 Jan 2008 10:02:19 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int main()
{ for(;1;); }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1435261</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1435261</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 12 Jan 2008 10:02:19 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Perpetuum Mobile on Sat, 12 Jan 2008 10:11:48 GMT]]></title><description><![CDATA[<pre><code>int main(){while(1){}}
</code></pre>
<p>XD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1435268</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1435268</guid><dc:creator><![CDATA[sothis_]]></dc:creator><pubDate>Sat, 12 Jan 2008 10:11:48 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Perpetuum Mobile on Sat, 12 Jan 2008 10:14:08 GMT]]></title><description><![CDATA[<pre><code>int main(){
while(true)
{}
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1435269</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1435269</guid><dc:creator><![CDATA[Eichboson]]></dc:creator><pubDate>Sat, 12 Jan 2008 10:14:08 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Perpetuum Mobile on Sat, 12 Jan 2008 10:24:33 GMT]]></title><description><![CDATA[<p>Kleine Anekdote zu Endlosprogrammen aus Herb Sutters <a href="http://www.gotw.ca/gotw/067.htm" rel="nofollow">GotW</a></p>
<p>Herb Sutter schrieb:</p>
<blockquote>
<p>... and then the loop will stay stuck on that value until the machine on which the program is running runs out of power (due to local power outage or battery life limits), its operating system crashes (more common on some platforms than others), Sol turns out to be a variable star and scorches the inner planets, or the universe dies of heat death, whichever comes first.[1]</p>
<p>[1]Indeed, because the program keeps the computer running needlessly, it also needlessly increases the entropy of the universe, thereby hastening said heat death. In short, such a program is quite environmentally unfriendly and should be considered a threat to our species. Don't write code like this.[2]</p>
<p>[2] Of course, performing any kind of additional work, whether by humans or machines, also increases the entropy of the universe, thereby hastening heat death. This is a good argument to keep in mind for times when your employer requests extra overtime.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1435273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1435273</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Sat, 12 Jan 2008 10:24:33 GMT</pubDate></item></channel></rss>