View Single Post
Old 04-04-2009, 09:36 PM   #1 (permalink)
Chad711
Chad711's Avatar
 
Monster Techie

Join Date: Oct 2008

Location: Irving, TX

Posts: 1,184

Chad711 is on a distinguished road

Default Reading a book about C#. (newbie question)

Let's just say I know nothing about programming. I have read some other books but lets just assuming I don't know anything when answering my questions here!

So I have this book called "Beginning C#" and I am using VS 2008. Some I am reading along and just barely into the book. Most the stuff so far is pretty straight forward. Not much about code yet. Mostly just introducing the UI of VS.

So I am at this part where it's introducing Variables. The first part if Simple Types. Every thing at this point is easy understanding then he says this:

"A variable storing "N" bits will allow us to represent any numbers between 0 and (2n - 1). Any numbers above this value will be too big to fit into this variable.

Note - the "n" that is in the parenthesis is suppose to be to the power of 2 but I don't know how to show that in the forum.

Ok so what is he talking about here? I'm totally lost. Is this some sort of math equation I'm suppose to understand or he just trying to tell me that N is a variable that could be any thing I make it? I got so lost here. He was explaining simple stuff then he throws this in there and made me look like a lost puppy!

Check back here when ever you see me post if you want to help me out! I will use this from now on.
__________________
Q6600 OC 3.0, 4870 1GB,750w, 4GB DDR2, T-Power I45, Extreme Audio X-Fi OS: Windows7-64-Pro, Contact Core Freezer, Acer G24"/LG 22"
Chad711 is offline