1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

variable scope

Discussion in 'C#' started by [csharp], Sep 4, 2010.

  1. [csharp]

    [csharp] New Member

    Joined:
    Sep 4, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi people,
    i work on some example with very big score (number). The double type is not enough large to store the results. Can i create some variable type and set variable scope, or what to do? tnx
     
  2. go4expert

    go4expert Moderator

    Joined:
    Aug 3, 2004
    Messages:
    306
    Likes Received:
    7
    Trophy Points:
    0
    You need to create a class and then store the number using some primitive datatypes. Scope and other things will be defined by the object of the class itself.
     

Share This Page