View Single Post
  #3   Spotlight this post!  
Unread 25-02-2015, 12:24
King Nerd III's Avatar
King Nerd III King Nerd III is offline
Chief Programmer/Head of Autonomous
AKA: Isaac
FRC #1410 (The Kraken)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Denver, CO
Posts: 116
King Nerd III is an unknown quantity at this point
Re: Quotes from the Chief Engineer and I

Quote:
Originally Posted by wireties View Post
How members of an array are stored and accessed is a function of the programming language. It is not something one should worry or argue about since the language will reference and de-reference everything for you. "Row" and "Column" mean nothing to the compiler. Notation has nothing to do with the physical location since memory is laid out so one accesses word-sized elements in sequence. In C and C++ it is really done with pointer arithmetic.
That is exactly what we said! We were trying to convince our teacher that you don't actually store these numbers in little ordered cells! We could say that when you create a Matrix[][] the first brackets are potatoes and the second are tomatoes and it would still work. It really frustrates me that my so called AP Computer Science teacher hasn't taught this since haskell, had to learn Java over the summer (he pronounces it as Jaiva, it can get irritating), and said, and I quote, "Java is the most popular programming language because three billion devices sounds like a lot". He just makes me want to smash my head into a wall. At least he got us 4 megabyte jumpdrives!

Last edited by King Nerd III : 25-02-2015 at 14:23. Reason: changed paskell to haskell