How I Can write code in C++ that will declare, initialize, and fill in an array of objects of type int. After your code executes, the array should look as follows.
0 2 4 6 8 1012141618
How I Can write code in C++ that will declare, initialize, and fill in an array of objects of type int. After
int iArray[] = new int[]{0,2 ,4, 6 ,8 ,10,12,14,16,18}
int i = 0;
for (i = 0; i %26lt; 10; i++)
cout%26lt;%26lt;i;
Reply:check out http://www.pscode.com for great sample codes.
Reply:int myArray[10];
for (int x = 0; x%26lt; 10; x++) {
myArray[x] = 2*x;
}
Reply:Im also studying the C language!Good luck to us!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment