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]], MSVC[[Visual C plus plus|Visual C++]], [[BCC]], [[Watcom]]
 
 
'''Libraries:''' [[None are needed]]
// Dynamic
const int n = 10;
Line 191:
}
 
'''Libraries:''' [[None are needed]]
// Static
int myArray2[10] = { 1, 2, 0}; /* 3..9 := 0 */
Line 207 ⟶ 206:
myArray4.push_back(2);
 
'''Libraries:''' [[MFCMicrosoft Foundation Classes]]
// MFC
CArray<int,int> myArray5(10);