Popular recipes tagged "c" but not "api"http://code.activestate.com/recipes/tags/c-api/2016-12-11T16:28:50-08:00ActiveState Code RecipesSimulate C's switch statement (Python)
2016-12-11T16:28:50-08:00Vasudev Ramhttp://code.activestate.com/recipes/users/4173351/http://code.activestate.com/recipes/580730-simulate-cs-switch-statement/
<p style="color: grey">
Python
recipe 580730
by <a href="/recipes/users/4173351/">Vasudev Ram</a>
(<a href="/recipes/tags/c/">c</a>, <a href="/recipes/tags/features/">features</a>, <a href="/recipes/tags/language/">language</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/switch/">switch</a>).
</p>
<p>This recipe shows a Python construct that can behave somewhat like C's switch statement. It is not a perfect one-to-one simulation. But it does have some of the features of the C switch. One feature not supported is the fall-through feature in C's switch.</p>
Pachebel Cannon in C (Python)
2013-08-13T21:08:45-07:00Bhttp://code.activestate.com/recipes/users/4187518/http://code.activestate.com/recipes/578640-pachebel-cannon-in-c/
<p style="color: grey">
Python
recipe 578640
by <a href="/recipes/users/4187518/">B</a>
(<a href="/recipes/tags/c/">c</a>, <a href="/recipes/tags/cannon/">cannon</a>, <a href="/recipes/tags/in/">in</a>, <a href="/recipes/tags/music/">music</a>, <a href="/recipes/tags/pachebel/">pachebel</a>).
</p>
<p>only works in windows</p>
Random Number Game (C)
2012-03-29T03:47:52-07:00Jacob A. Bridgeshttp://code.activestate.com/recipes/users/4181498/http://code.activestate.com/recipes/578088-random-number-game/
<p style="color: grey">
C
recipe 578088
by <a href="/recipes/users/4181498/">Jacob A. Bridges</a>
(<a href="/recipes/tags/c/">c</a>, <a href="/recipes/tags/game/">game</a>, <a href="/recipes/tags/guessing/">guessing</a>, <a href="/recipes/tags/number/">number</a>).
</p>
<p>An old game I created freshman year of college. For use on Windows OS only. (The code contains a few Windows system calls.)</p>