Creating an Array: Difference between revisions
→[[C++]]: Nice work on this section. Added compiler links.
(Added clarify task template.) |
(→[[C++]]: Nice work on this section. Added compiler links.) |
||
Line 176:
int myArray2[10] = { 1, 2, 0}; /* 3..9 := 0 */
==[[C plus plus|++]]==
'''Compiler:''' [[GCC]],
// Dynamic
const int n = 10;
Line 191:
}
// Static
int myArray2[10] = { 1, 2, 0}; /* 3..9 := 0 */
Line 207 ⟶ 206:
myArray4.push_back(2);
'''Libraries:''' [[
// MFC
CArray<int,int> myArray5(10);
|