|
Profile
Personal Photo
Rating
Options
Personal Statement
hoomun doesn't have a personal statement currently.
Personal Info
hoomun
New Member
Age Unknown
Gender Not Set
Location Unknown
Birthday Unknown
Interests
No Information
Other Information
OS: Windows XP
Hardware Info: p4 2.8 256mb graphics card
Country: Australia
Gender: No Information
CPU: Intel Pentium 4
HD: 120
RAM: 512
Belly button size: No Information
Browser: No Information
Connection speed: No Information
OS (secondary): No Information
Statistics
Joined: 5-April 04
Profile Views: 88*
Last Seen: 3rd September 2004 - 08:52 AM
Local Time: May 25 2013, 11:49 AM
7 posts (0 per day)
Contact Information
No Information
No Information
No Information
No Information
* Profile views updated each hour
|
Topics
Posts
Comments
Friends
My Content
5 Apr 2004
hi i am doing this assigment and i'm stuck!!!! :'(
this is the problem but i'm stuck at the begining!!!! :'( Random Walk. Simulate the walk of a child lost in a square grid of corridors. Draw a grid of 9 corridors horizontally and 9 corridors vertically. Place a simulated child, denoted by a star, in the middle of the grid. Have the simulated child randomly pick a direction (up, down, left or right on the screen) and move one corridor in the chosen direction and redraw the star. Have the observer (that is the keyboard operator) choose how many times the child will move, up to a limit of 100. After each move the program should redraw the grid showing the child in the new position. When all the moves are complete, display the distance the child has covered (eg. 4 up, 5 right), below the last grid. now can some one please please explain what this means!! note:i have to use only for-loops statements all i could do was to right this code it only dose the first row though!!! can you tell me what i should write and do after this! CODE #include <iostream.h>
void main () { int i; for (i=1; i<=9; i++) cout<<"--"; cout<<endl; cout<<"|"; for( i=1; i<=9; i++) cout<<" |"; cout<<endl; } |
Last Visitors
hoomun has no visitors to display.
Comments
Other users have left no comments for hoomun.
Friends
There are no friends to display.
|
|
Lo-Fi Version | Time is now: 25th May 2013 - 11:49 AM |