ggFTW

MMORPG Gamer Community


Go Back   ggFTW Forum > Off Topic > Life & Relationships > Homework Help

Perfect World
Looking for a new MMO?

Try 

Perfect World

Rating:  

7.4

 
LinkBack Thread Tools Display Modes
06-21-2008   #1 (permalink)
Vinyl Side Up
AurorasParadox's Avatar
 
Join Date: Jun 2008
Location: Singapore
Posts: 494
Blog Entries: 6
iTrader: (0)
AurorasParadox has disabled reputation
Default [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
__________________
 
Get rid of this ad by registering for our community.
06-21-2008   #2 (permalink)
/gg FTW! Moogler
sExYgIrL93's Avatar
 
Join Date: Jun 2008
Posts: 108
iTrader: (0)
sExYgIrL93 is on a distinguished road
Default

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

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Wizard 101
Need a new browser game?

Try 

Wizard 101

Rating:  

5.0
Hide this banner by registering for our community.