| Topic Text | Topic Comments (2) | Topic Properties | Topic Information | pymgntt@yah... | ||||
| Topic title: PY test topic | Saturday January 14, 2012 18:58:32 |
Download topic text | View in monospace font | Tab width set to 8 (change to 4)
| Files in topic: (view all files) | ||
| ExampleCode.txt | {+30,-0} | |
[Add General Comment] to topic.
| File ExampleCode.txt (Revision 1.0) | [Add File Comment] [Top] |
| 1 | |||
| 2 | #include <iostream> | ||
| 3 | |||
| 4 | using namespace std; | ||
| 5 | |||
| 6 | int main(void) | ||
| 7 | { | ||
| 8 | cout << "Hello world!"; | ||
| 9 | |||
| 10 | float fValue = 17.0; | ||
| 11 | |||
| 12 | for (int i=0;i<12;i=i+1) | ||
| 13 | { | ||
| 14 | fValue = fValue * fValue; | ||
| 15 | } | ||
| 16 | |||
| 17 | double * charArray = new double [37]; | ||
| 18 | |||
| 19 | for (int i = -5; i< 31; ++i) | ||
| 20 | { | ||
| 21 | charArray [i+5] = 0.0; | ||
| 22 | } | ||
| 23 | |||
| 24 | memset (charArray, 0x00, 37 * sizeof(unsigned long long) ); | ||
| 25 | |||
| 26 | cout << "I've done my lousy program for review" << std::endl; | ||
| 27 | |||
| 28 | return 1; | ||
| 29 | |||
| 30 | } | ||
| File ExampleCode.txt (Revision 1.0) | [Add File Comment] [Top] |
| Legend: | |
| Removed | |
| Changed | |
| Added | |
[Add General Comment] to topic.