Hmm I'm not sure if this would be right or not (since I'm kind of new to C# myself :)) but in your first listing of code shouldn't you use the object and change the location value wrt that object? I mean rather than doing: nerd.location = 9999; // your code shouldn't you do: myNerd.location = 9999; ? // where myNerd is your object And as for your constructor I think it should be like: public nerd(int locNo) { this.location = locNo; // using 'this' } where the 'this' would point to your current object thereby changing that particular object's location... Good luck as such...
Fang Illusion
Posts
-
help I'm drowning in something obvious -
Help required on dividing 256 bit value into 2 decimals??Posted a question a while ago: "Is there some way to manipulate/store/use 256 bit int/float/long so that finally a calculator for those 256 bit values can be made?" One suggestion was to divide that number into 2 decimals or 4 longs BUT I'm pretty much a newcomer :~ so could anyone help me out some little more and tell me howwww exactly to divide that 256 bit input into those 2 128 bit decimals? I mean the problem facing me is this: I take a string input (readline) and then have to convert that to some numerical form to perform the mathe operations...but to do that I have to have some container, a datatype big enough to hold that converted 256 bit value first right?...so how do I know how and from where to break that converted string input into 2 decimals actually during conversion? I do hope I haven't muddled this up :sigh:...BUT anything possible plz? :confused:... Thanks beforehand for time and help...
-
A datatype/some way for 256 bit values?Thankyou I have seen/have this :)...
-
A datatype/some way for 256 bit values?Hello! I'm kind of new to the world of C# and have a little query...Is there some way to manipulate/store/use 256 bit int/float/long so that finally a calculator for those 256 bit values can be made? I know theres the decimal datatype for 128 bits so is there a way for 256 bits too? I have got a vague idea about using a link list and that many byte nodes but are there any other means? Thanks beforehand for time and help...