ggFTW

ggFTW (http://ggftw.com/forum/)
-   Homework Help (http://ggftw.com/forum/homework-help/)
-   -   [Homework] Need help with C++ (http://ggftw.com/forum/homework-help/1011-homework-need-help-c.html)

AurorasParadox 06-21-2008 01:37 AM

[Homework] Need help with C++
 
Quote:

1. Write a C++ program to do the following :
a. Define a constant MAX equal to 5
b. Declare a pointer called entry to point to an integer number
c. Use new operator to reserve memory space for storing MAX
integer numbers for entry.
d. Use a loop to initialise all the MAX integer numbers with
even numbers from 2 to 10.
e. Use another loop to display the values using pointer/offset
notation.
f. Use another loop to display the values in reverse order using
array subscript notation.
g. Release the dynamic memory before exiting the program.
I have no idea how to do this =x

sExYgIrL93 06-21-2008 09:46 AM

Might want to open your textbook instead of asking. You won't be passing the class if you don't even know the basics


All times are GMT -7. The time now is 10:31 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.