Click here to Skip to main content
15,901,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: is there any binary to decimal convertor class Pin
hotthoughtguy22-Dec-09 10:18
hotthoughtguy22-Dec-09 10:18 
GeneralRe: is there any binary to decimal convertor class Pin
Luc Pattyn22-Dec-09 10:27
sitebuilderLuc Pattyn22-Dec-09 10:27 
GeneralRe: is there any binary to decimal convertor class Pin
#realJSOP22-Dec-09 10:47
professional#realJSOP22-Dec-09 10:47 
AnswerRe: is there any binary to decimal convertor class Pin
DaveyM6926-Dec-09 16:09
professionalDaveyM6926-Dec-09 16:09 
GeneralRe: is there any binary to decimal convertor class Pin
hotthoughtguy26-Dec-09 22:43
hotthoughtguy26-Dec-09 22:43 
Questioncustom shaped windows forms in c# problem Pin
hosseinghazanfary22-Dec-09 7:35
hosseinghazanfary22-Dec-09 7:35 
AnswerRe: custom shaped windows forms in c# problem Pin
Md. Marufuzzaman22-Dec-09 9:26
professionalMd. Marufuzzaman22-Dec-09 9:26 
QuestionStoring 2 bytes in one Pin
Chris Copeland22-Dec-09 5:57
mveChris Copeland22-Dec-09 5:57 
Answercrap Pin
Luc Pattyn22-Dec-09 6:21
sitebuilderLuc Pattyn22-Dec-09 6:21 
GeneralRe: crap Pin
Chris Copeland22-Dec-09 6:25
mveChris Copeland22-Dec-09 6:25 
GeneralRe: crap Pin
Luc Pattyn22-Dec-09 7:58
sitebuilderLuc Pattyn22-Dec-09 7:58 
AnswerRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 6:29
harold aptroot22-Dec-09 6:29 
GeneralRe: Storing 2 bytes in one Pin
Chris Copeland22-Dec-09 6:51
mveChris Copeland22-Dec-09 6:51 
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 6:55
harold aptroot22-Dec-09 6:55 
AnswerRe: Storing 2 bytes in one Pin
J4amieC22-Dec-09 6:35
J4amieC22-Dec-09 6:35 
GeneralRe: Storing 2 bytes in one Pin
Chris Copeland22-Dec-09 6:49
mveChris Copeland22-Dec-09 6:49 
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 6:52
harold aptroot22-Dec-09 6:52 
GeneralRe: Storing 2 bytes in one Pin
Chris Copeland22-Dec-09 6:57
mveChris Copeland22-Dec-09 6:57 
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 7:09
harold aptroot22-Dec-09 7:09 
GeneralRe: Storing 2 bytes in one Pin
Chris Copeland22-Dec-09 7:18
mveChris Copeland22-Dec-09 7:18 
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 7:21
harold aptroot22-Dec-09 7:21 
GeneralRe: Storing 2 bytes in one Pin
Chris Copeland22-Dec-09 7:29
mveChris Copeland22-Dec-09 7:29 
I see, i'm sorry if I sound stupid i'm just not used to trying to store parameters like these.

So, say I have a 300x300 map, would the formula be [x + y * 300]?

Using this method, the value of the cell at 300 + 300 * 300 = 90,300. Would it be better to use bit-wise operations to try and reduce the total value down to a small index, or is this getting too complicated?

If need be, I will simply have to make a collection of structures, and make each object key equal to "x,y". Although I would prefer to avoid using any forms of collections, and focus more on indexing values on the 2D map
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 7:48
harold aptroot22-Dec-09 7:48 
GeneralRe: Storing 2 bytes in one Pin
Ben Fair22-Dec-09 11:06
Ben Fair22-Dec-09 11:06 
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 11:14
harold aptroot22-Dec-09 11:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.