Topic Text   Topic Comments (4)   Topic Properties   Topic Information _py@lap...
Topic title: PY other topic Saturday January 14, 2012 19:13:32

Download topic text | View in variable-width font | Tab width set to 8 (change to 4)

Files in topic: (view all files)  
D:/Documents and Settings/PY/Desktop/ExampleCode2.txt   {+6,-12}

[Add General Comment] to topic.

File D:/Documents and Settings/PY/Desktop/ExampleCode2.txt (Revision 0.1) [Add File Comment] [Top]
 
Line 1 Line 1
1 1
2 #include <iostream> 2 #include <iostream>
3 3
4 using namespace std;
5
6 int main(void) 4 int main(void)
7 { 5 {
8 cout << "Hello world!"; 6 std::cout << "Hello world!" << std::endl;
9 7
10 float fValue = 17.0; 8 float fValue = 17.0;
11 9
12 for (int i=0;i<12;i=i+1) 10 for (int i=0;i<12;i=i+1)
13 { 11 {
14 fValue = fValue * fValue; 12 fValue = fValue * fValue;
15 } 13 }
16 14
17 double * charArray = new double [37]; 15 std::cout << fValue << std::endl;
18
19 for (int i = -5; i< 31; ++i)
20 {
21 charArray [i+5] = 0.0;
22 }
23 16
17 double * charArray = new double [37];
24 memset (charArray, 0x00, 37 * sizeof(unsigned long long) ); 18 memset (charArray, 0x00, 37 * sizeof(unsigned long long) );
19 delete [] charArray;
25 20
26 cout << "I've done my lousy program for review" << std::endl; 21 std::cout << "I've done my lousy program for review" << std::endl;
27
28 return 1;
29 22
23 return 0;
30 } 24 }
 
File D:/Documents and Settings/PY/Desktop/ExampleCode2.txt (Revision 0.1) [Add File Comment] [Top]
  
Legend:
Removed 
Changed
 Added

[Add General Comment] to topic.