Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualChad Smith

Posted 29 January 2013 - 05:56 PM

Code reviewer's dictionary:

 

Curse (v) \ˈkərs\ - To say a bad word.

Recurse (v) \ˈhwät thə hel\ - To say a bad word more than once.

lol.

 

Also I talked to my my professor today.  She said that I do need to preserve the order.  She would like us to move every element after the one you are removing to the left.  This is what I figured she would want actually.

 

Sadly I do not like this project really.  Mostly because I don't think I would ever use an array for what she wants us to do (in the class we haven't gotten to other data structs to use so she just describes everything we lean as implementing it as an array). Because of this I am a little lost on what to do exactly on removing the element, then preserving the order by moving every element afterwards to the left.

 

If I could get some ideas, maybe some pseudo code or something that would stay within the guidelines of this site.  I have every other part of the project finished as it was pretty easy, but I guess because I would have never thought of using an array for this I am not very sure how to use arrays to do this.

 

Thanks for any help.


#1Chad Smith

Posted 29 January 2013 - 05:56 PM

Code reviewer's dictionary:

 

Curse (v) \ˈkərs\ - To say a bad word.

Recurse (v) \ˈhwät thə hel\ - To say a bad word more than once.

lol.

 

Also I talked to my my professor today.  She said that you do need to preserve the order.  She would like us to move every element after the one you are removing to the left.  This is what I figured she would want actually.

 

Sadly I do not like this project really.  Mostly because I don't think I would ever use an array for what she wants us to do (in the class we haven't gotten to other data structs to use so she just describes everything we lean as implementing it as an array). Because of this I am a little lost on what to do exactly on removing the element, then preserving the order by moving every element afterwards to the left.

 

If I could get some ideas, maybe some pseudo code or something that would stay within the guidelines of this site.  I have every other part of the project finished as it was pretty easy, but I guess because I would have never thought of using an array for this I am not very sure how to use arrays to do this.

 

Thanks for any help.


PARTNERS