![]() |
|
#1
|
||||
|
||||
A simple swap programWhen you want to swap numbers in C/C++, you might write something like this:
CPP / C++ / C Code:
Python Code:
Naturally you can use this method to swap any object types, like integers, floats, lists, etc. and you can have as many values swapped as necessary. __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [TUTORIAL] Calling an external program in C (Linux) | dsmith | C Programming Language | 4 | 22-Apr-2005 14:30 |
| Help with simple math table program (was a SIMPLE program) | Bubba | C Programming Language | 3 | 09-Mar-2005 13:40 |
| Help with a simple program. | bluedragon27 | C Programming Language | 1 | 16-Nov-2004 16:40 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The