Topic Text   Topic Comments (0)   Topic Properties   Topic Information pymgntt@yah...
Topic title: PY review topic after changes... Saturday January 14, 2012 19:07:52

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

Files in topic:  
[Jump to] 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
 
 
Line 14 Line 12
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 }
 
  
Legend:
Removed 
Changed
 Added

[Add General Comment] to topic.