All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
29
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Follow Us
Chat in the
GameDev.net Discord!
Mastodon
Back to For Beginners
Question about arrays
For Beginners
Started by
jimywang
April 28, 2003 04:57 PM
10
comments, last by
jimywang
20 years, 12 months ago
Prev
1
2
(current)
RuneLancer
253
April 29, 2003 10:52 AM
You could simply create an array with just one dimension instead of two or more. Let''s say you have a 200x300 array ([200][300]), you could access, say, [100][50] via...
MyArray[(200*50)+100]
Cancel
Save
Advertisement
Anonymous
April 29, 2003 12:34 PM
is there any speed benefit from having an array of arrays over a 2d array?
ie: *(ptr
+j) instead of arr
[j]<br><br> </i>
Cancel
Save
Prev
1
2
(current)
This topic is closed to new replies.
Advertisement
Popular Topics
The promise of freedom in story games
Game Design and Theory
Facebook Ads for sales on steam, does it work?
Games Business and Law
New Generated Constructor & JIT Issue
AngelCode
Inheriting from application registered class
AngelCode
Advertisement
Recommended Tutorials
Xtreme Debugging
Graphics and GPU Programming
Understanding Component-Entity-Systems
General and Gameplay Programming
3ds Max 2016 New Features Overview
Visual Arts
Learning iOS Game Programming
General and Gameplay Programming
Smooth Scrolling a Tile Map
General and Gameplay Programming
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top