8 Replies - 1924 Views - Last Post: 05 April 2010 - 02:58 PM Rate Topic: -----

#1 zdawi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 12-March 10

non-static method cannot be referenced from a static context

Posted 05 April 2010 - 04:50 AM

heyy i wrote this class to run the program written (the second code) but i have got many errors can u help me correct my class
thank u anyway
package university;

import java.text.NumberFormat;

public class University {

    public String name, major, Mechanical;
    public Integer ID, COE211grade , COE211LABgrade, NoSC, NoSL;
    public double Tuition;
    public boolean RCOE211, RLAB;
    public Character Lettergrade ;

    public University (String StudentName, int StudentID, String StudentMajor)
    {

        name = StudentName;
        major = StudentMajor;
        ID = StudentID;
    }

   public String AddCOE211()
{
    if (RCOE211)
      return  ("already enrolled in COE211 course");

    else
        NoSC++;
      return ("COE211 course added");

   }
 public String DropCOE211()
 { if (!RCOE211)
        return ("you are not enrolled in COE211 Course to drop");

   else
        NoSC=NoSC-1;
        return ("COE211 Course is dropped");
        }

 public String AddCOE211LAB()
 { if (RLAB){
      if (  major.equals(Mechanical))
       return ("already registerd in the Lab");
      else
        return("Unable to register the Lab - this Lab is only required for Mechanical Engineers");
   }
   else
        NoSL++;
        return ("Lab Registered");

 }

   public String DropCOE211LAB()
   { if (!RLAB)
       return("you can not drop the Lab in which you are not enrolled");


     else
         NoSL--;
         return ("Lab Dropped");

   }

    public int GetCOE211grade()

    {
    return COE211grade;
    }

public int GetLabgrade()
{
            return COE211LABgrade;
}

public String SetCOE211grade(int Cgrade)
{
    if (!RCOE211)
        return(" can't set a grade for an un-rolled student in COE211 Course");

    else
         Cgrade=COE211grade;
        return ("COE211 grade set");}

    public String SetLabgrade(int Lgrade)
    {
    if (!RLAB)
        return ("can't set a grade for an un-rolled student in the Lab");
    else
        Lgrade=COE211LABgrade;
        return ("Lab grade set");}

    public int GetNoSC()
    {return NoSC;}

    public int GetNoSL()
    { return NoSL;}

    public char getfinalgrade(double finalgrade, char A, char B, char C, char D, char F)
    { if (major==Mechanical){
          finalgrade=NoSC*0.75+NoSL*0.25;
          if (100>finalgrade && finalgrade>=90)
             return Lettergrade=A;
          if (90>finalgrade && finalgrade>=80)
              return Lettergrade=B;
          if (80>finalgrade && finalgrade>=70)
              return Lettergrade=C;
          if (70>finalgrade && finalgrade>=60)
              return Lettergrade=D;
          else return Lettergrade=F;}

      else {
          finalgrade=NoSC;
      if (100>finalgrade && finalgrade>=90)
           return Lettergrade=A;
          if (90>finalgrade && finalgrade>=80)
          return Lettergrade=B;
          if (80>finalgrade && finalgrade>=70)
          return Lettergrade=C;
          if (70>finalgrade && finalgrade>=60)
              return Lettergrade=D;
          else return Lettergrade=F;}
        }


    public String Paytuition()
    {
        NumberFormat fmt = NumberFormat.getCurrencyInstance();
        if (major==Mechanical)
          Tuition=2000;
     else
         Tuition=1500;
                 return fmt.format(Tuition);
  }

    public String toString ()
   {
        return(name + "\t"+ ID + "\t" + major);
    }





}




package university;

/**
 *
 * @author Jad
 */
public class UseUniversity {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        String Message1;
    University std1 = new University ("Jad", 201004442, "Mechanical");
    University std2 = new University ("Seta", 201005062, "Computer");
    University std3 = new University ("omar", 201040611, "Electrical");
    University std4 = new University ("tarek", 200903072, "Civil");
    University std5 = new University ("Sana", 20094442, "Mechanical");
    University std6 = new University ("reham", 200805062, "Computer");
    University std7 = new University ("omar", 200740611, "Electrical");
    University std8 = new University ("Mazen", 200803072, "Civil");
    University std9 = new University ("Ahmad", 200804442, "Mechanical");
    University std10 = new University ("abd", 200705062, "Computer");
    University std11 = new University ("ibrahim", 200840611, "Electrical");
    University std12 = new University ("Mark", 200603072, "Civil");

Message1=std1.AddCOE211();
System.out.println("Std1 lab registration status : " + Message1);

Message1=std1.AddCOE211();

System.out.println("Std2 lab registration status : " + Message1);


std2.AddCOE211();
std3.AddCOE211();
std4.AddCOE211();
std5.AddCOE211();
std6.AddCOE211();
std7.AddCOE211();
std8.AddCOE211();
std9.AddCOE211();
std10.AddCOE211();
std11.AddCOE211();
std12.AddCOE211();
System.out.println("Number of students enrolled in COE211 : " + University.GetNoSC());

System.out.println("Number of students enrolled in COE211 Lab : " + University.GetNoSL());


Message1=std1.AddCOE211Lab();

System.out.println("Std1 lab registration status : " + Message1);
Message1=std2.AddCOE211Lab();

System.out.println("Std2 lab registration status : " + Message1);

std3.AddCOE211Lab();
std4.AddCOE211Lab();
std5.AddCOE211Lab();
std6.AddCOE211Lab();
std7.AddCOE211Lab();
std8.AddCOE211Lab();
std9.AddCOE211Lab();
std10.AddCOE211Lab();
std11.AddCOE211Lab();
std12.AddCOE211Lab();



System.out.println("Number of students enrolled in COE211 : " + University.GetNoSC());

System.out.println("Number of students enrolled in COE211 LAB : " + University.GetNoSL());

Message1= std1.DropCOE211Lab();

System.out.println("Drop status : " + Message1);

Message1= std2.DropCOE211Lab();
System.out.println("Drop status : " + Message1);


System.out.println("Number of students enrolled in COE211 LAB : " + University.GetNoSL());

Message1=std1.DropCOE211();
System.out.println("Drop status : " + Message1);

Message1 =std1.DropCOE211();
System.out.println("Drop status : " + Message1);

std2.DropCOE211();

System.out.println("Number of students enrolled in COE211 : " + University.GetNoSC());

Message1=std1.SetCOE211grade(60);

System.out.println(Message1);

Message1=std5.SetCOE211grade(60);

System.out.println(Message1);

int a =std5.GetCOE211grade();
System.out.println("grade of student 5 is = " + a);

Message1=std1.SetLabgrade(70);

System.out.println(Message1);

Message1=std5.SetLabgrade(75);

System.out.println(Message1);


a =std5.GetLabgrade();
System.out.println(" Lab grade of student 5 is = " + a);

char lettergrade = std5.getfinalgrade();

System.out.println("Student 5 has an average = 60 * 0.75 + 75 * 0.25 = 63.75 which is equivalent to lettergrade : " + lettergrade);

Message1=std5.SetCOE211grade(100);

System.out.println(Message1);

lettergrade = std5.getfinalgrade();

System.out.println("Student 5 after correcting his course grade has an average = =90 * 0.75 + 75 * 0.25 = 93.75 which is equivalent to lettergrade : " + lettergrade);

Message1=std4.SetCOE211grade(88);

System.out.println(Message1);

lettergrade = std4.getfinalgrade();

System.out.println("Student 4 Lettergrade (lettergrade depends only on his course grade= 88 because he is not taking the lab) : " + lettergrade);


Message1=std5.paytuition();
System.out.println("student5 should pay : " + Message1);


Message1=std4.paytuition();
System.out.println("student4 should pay : " + Message1);


System.out.println(std1);
System.out.println(std1.toString());

    }

}




i have got that some methods are not found
and for NoSC and NoSL i have got that non-static methods cannot be referenced to a static context

This post has been edited by zdawi: 05 April 2010 - 04:59 AM


Is This A Good Question/Topic? 0
  • +

Replies To: non-static method cannot be referenced from a static context

#2 n8wxs  Icon User is offline

  • --... ...-- -.. . -. ---.. .-- -..- ...
  • member icon

Reputation: 972
  • View blog
  • Posts: 3,878
  • Joined: 07-January 08

Re: non-static method cannot be referenced from a static context

Posted 05 April 2010 - 04:56 AM

What are the errors?
Was This Post Helpful? 0
  • +
  • -

#3 zdawi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 12-March 10

Re: non-static method cannot be referenced from a static context

Posted 05 April 2010 - 06:00 AM

the error is
non-static method GetNoSC() cannot be referenced from a static context

the class is:
package university;

import java.text.NumberFormat;

public class University {

    public String name, major, Mechanical;
    public Integer ID, COE211grade , COE211LABgrade, NoSC, NoSL;
    public double Tuition;
    public boolean RCOE211, RLAB;
    public Character Lettergrade ;

    public University (String StudentName, int StudentID, String StudentMajor)
    {

        name = StudentName;
        major = StudentMajor;
        ID = StudentID;
    }

   public String AddCOE211()
{
    if (RCOE211)
      return  ("already enrolled in COE211 course");

    else
      
        NoSC++;
      return ("COE211 course added");

   }
 public String DropCOE211()
 { if (!RCOE211)
        return ("you are not enrolled in COE211 Course to drop");

   else
        NoSC=NoSC-1;
        return ("COE211 Course is dropped");
        }

 public String AddCOE211Lab()
 { if (RLAB){
      if (  major.equals(Mechanical))
       return ("already registerd in the Lab");
      else
        return("Unable to register the Lab - this Lab is only required for Mechanical Engineers");
   }
   else
        NoSL++;
        return ("Lab Registered");

 }

   public String DropCOE211Lab()
   { if (!RLAB)
       return("you can not drop the Lab in which you are not enrolled");


     else
         NoSL--;
         return ("Lab Dropped");

   }

    public int GetCOE211grade()

    {
    return COE211grade;
    }

public int GetLabgrade()
{
            return COE211LABgrade;
}

public String SetCOE211grade(int Cgrade)
{
    if (!RCOE211)
        return(" can't set a grade for an un-rolled student in COE211 Course");

    else
         Cgrade=COE211grade;
        return ("COE211 grade set");}

    public String SetLabgrade(int Lgrade)
    {
    if (!RLAB)
        return ("can't set a grade for an un-rolled student in the Lab");
    else
        Lgrade=COE211LABgrade;
        return ("Lab grade set");}

    public int GetNoSC()
    {return NoSC;}

    public int GetNoSL()
    { return NoSL;}

    public char getfinalgrade(double finalgrade, char A, char B, char C, char D, char F)
    { if (major.equals(Mechanical)){
          finalgrade=NoSC*0.75+NoSL*0.25;
          if (100>finalgrade && finalgrade>=90)
             return Lettergrade=A;
          if (90>finalgrade && finalgrade>=80)
              return Lettergrade=B;
          if (80>finalgrade && finalgrade>=70)
              return Lettergrade=C;
          if (70>finalgrade && finalgrade>=60)
              return Lettergrade=D;
          else return Lettergrade=F;}

      else {
          finalgrade=NoSC;
      if (100>finalgrade && finalgrade>=90)
           return Lettergrade=A;
          if (90>finalgrade && finalgrade>=80)
          return Lettergrade=B;
          if (80>finalgrade && finalgrade>=70)
          return Lettergrade=C;
          if (70>finalgrade && finalgrade>=60)
              return Lettergrade=D;
          else return Lettergrade=F;}
        }


    public String Paytuition()
    {
        NumberFormat fmt = NumberFormat.getCurrencyInstance();
        if (major==Mechanical)
          Tuition=2000;
     else
         Tuition=1500;
                 return fmt.format(Tuition);
  }

    public String toString ()
   {
        return(name + "\t"+ ID + "\t" + major);
    }
}





and the program is

package university;

/**
 *
 * @author Jad
 */
public class UseUniversity {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        String Message1;
    University std1 = new University ("Jad", 201004442, "Mechanical");
    University std2 = new University ("Seta", 201005062, "Computer");
    University std3 = new University ("omar", 201040611, "Electrical");
    University std4 = new University ("tarek", 200903072, "Civil");
    University std5 = new University ("Sana", 20094442, "Mechanical");
    University std6 = new University ("reham", 200805062, "Computer");
    University std7 = new University ("omar", 200740611, "Electrical");
    University std8 = new University ("Mazen", 200803072, "Civil");
    University std9 = new University ("Ahmad", 200804442, "Mechanical");
    University std10 = new University ("abd", 200705062, "Computer");
    University std11 = new University ("ibrahim", 200840611, "Electrical");
    University std12 = new University ("Mark", 200603072, "Civil");

Message1=std1.AddCOE211();
System.out.println("Std1 lab registration status : " + Message1);

Message1=std1.AddCOE211();

System.out.println("Std2 lab registration status : " + Message1);


std2.AddCOE211();
std3.AddCOE211();
std4.AddCOE211();
std5.AddCOE211();
std6.AddCOE211();
std7.AddCOE211();
std8.AddCOE211();
std9.AddCOE211();
std10.AddCOE211();
std11.AddCOE211();
std12.AddCOE211();
System.out.println("Number of students enrolled in COE211 : " + University.GetNoSC());

System.out.println("Number of students enrolled in COE211 Lab : " + University.GetNoSL());


Message1=std1.AddCOE211Lab();

System.out.println("Std1 lab registration status : " + Message1);
Message1=std2.AddCOE211Lab();

System.out.println("Std2 lab registration status : " + Message1);

std3.AddCOE211Lab();
std4.AddCOE211Lab();
std5.AddCOE211Lab();
std6.AddCOE211Lab();
std7.AddCOE211Lab();
std8.AddCOE211Lab();
std9.AddCOE211Lab();
std10.AddCOE211Lab();
std11.AddCOE211Lab();
std12.AddCOE211Lab();



System.out.println("Number of students enrolled in COE211 : " + University.GetNoSC());

System.out.println("Number of students enrolled in COE211 LAB : " + University.GetNoSL());

Message1= std1.DropCOE211Lab();

System.out.println("Drop status : " + Message1);

Message1= std2.DropCOE211Lab();
System.out.println("Drop status : " + Message1);


System.out.println("Number of students enrolled in COE211 LAB : " + University.GetNoSL());

Message1=std1.DropCOE211();
System.out.println("Drop status : " + Message1);

Message1 =std1.DropCOE211();
System.out.println("Drop status : " + Message1);

std2.DropCOE211();

System.out.println("Number of students enrolled in COE211 : " + University.GetNoSC());

Message1=std1.SetCOE211grade(60);

System.out.println(Message1);

Message1=std5.SetCOE211grade(60);

System.out.println(Message1);

int a =std5.GetCOE211grade();
System.out.println("grade of student 5 is = " + a);

Message1=std1.SetLabgrade(70);

System.out.println(Message1);

Message1=std5.SetLabgrade(75);

System.out.println(Message1);


a =std5.GetLabgrade();
System.out.println(" Lab grade of student 5 is = " + a);

char lettergrade = std5.getfinalgrade();

System.out.println("Student 5 has an average = 60 * 0.75 + 75 * 0.25 = 63.75 which is equivalent to lettergrade : " + lettergrade);

Message1=std5.SetCOE211grade(100);

System.out.println(Message1);

lettergrade = std5.getfinalgrade();

System.out.println("Student 5 after correcting his course grade has an average = =90 * 0.75 + 75 * 0.25 = 93.75 which is equivalent to lettergrade : " + lettergrade);

Message1=std4.SetCOE211grade(88);

System.out.println(Message1);

lettergrade = std4.getfinalgrade();

System.out.println("Student 4 Lettergrade (lettergrade depends only on his course grade= 88 because he is not taking the lab) : " + lettergrade);


Message1=std5.paytuition();
System.out.println("student5 should pay : " + Message1);


Message1=std4.paytuition();
System.out.println("student4 should pay : " + Message1);


System.out.println(std1);
System.out.println(std1.toString());

    }

}


what i have to do?
thank you for passing
Was This Post Helpful? 0
  • +
  • -

#4 PennyBoki  Icon User is offline

  • system("revolution");
  • member icon

Reputation: 53
  • View blog
  • Posts: 2,334
  • Joined: 11-December 06

Re: non-static method cannot be referenced from a static context

Posted 05 April 2010 - 06:23 AM

Ok I made small comments on the code where the main() is at. Hopefully you'll resolve some of the issues and errors.
package university;


/**
 *
 * @author Jad
 */
public class UseUniversity {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        String Message1;
    University std1 = new University ("Jad", 201004442, "Mechanical");
    University std2 = new University ("Seta", 201005062, "Computer");
    University std3 = new University ("omar", 201040611, "Electrical");
    University std4 = new University ("tarek", 200903072, "Civil");
    University std5 = new University ("Sana", 20094442, "Mechanical");
    University std6 = new University ("reham", 200805062, "Computer");
    University std7 = new University ("omar", 200740611, "Electrical");
    University std8 = new University ("Mazen", 200803072, "Civil");
    University std9 = new University ("Ahmad", 200804442, "Mechanical");
    University std10 = new University ("abd", 200705062, "Computer");
    University std11 = new University ("ibrahim", 200840611, "Electrical");
    University std12 = new University ("Mark", 200603072, "Civil");

Message1=std1.AddCOE211();
System.out.println("Std1 lab registration status : " + Message1);

Message1=std1.AddCOE211();

System.out.println("Std2 lab registration status : " + Message1);


std2.AddCOE211();
std3.AddCOE211();
std4.AddCOE211();
std5.AddCOE211();
std6.AddCOE211();
std7.AddCOE211();
std8.AddCOE211();
std9.AddCOE211();
std10.AddCOE211();
std11.AddCOE211();
std12.AddCOE211();
System.out.println("Number of students enrolled in COE211 : " + std1.GetNoSC());//instead of Univeristy you should place a object from that class like std1 for example
/*
 *  Maybe you could do a for loop for all the universities and add them to a variable and then print the variable. 
 **/
System.out.println("Number of students enrolled in COE211 Lab : " + std1.GetNoSL());


Message1=std1.AddCOE211Lab();

System.out.println("Std1 lab registration status : " + Message1);
Message1=std2.AddCOE211Lab();

System.out.println("Std2 lab registration status : " + Message1);

std3.AddCOE211Lab();
std4.AddCOE211Lab();
std5.AddCOE211Lab();
std6.AddCOE211Lab();
std7.AddCOE211Lab();
std8.AddCOE211Lab();
std9.AddCOE211Lab();
std10.AddCOE211Lab();
std11.AddCOE211Lab();
std12.AddCOE211Lab();



System.out.println("Number of students enrolled in COE211 : " + std1.GetNoSC());

System.out.println("Number of students enrolled in COE211 LAB : " + std1.GetNoSL());

Message1= std1.DropCOE211Lab();

System.out.println("Drop status : " + Message1);

Message1= std2.DropCOE211Lab();
System.out.println("Drop status : " + Message1);


System.out.println("Number of students enrolled in COE211 LAB : " + std1.GetNoSL());

Message1=std1.DropCOE211();
System.out.println("Drop status : " + Message1);

Message1 =std1.DropCOE211();
System.out.println("Drop status : " + Message1);

std2.DropCOE211();

System.out.println("Number of students enrolled in COE211 : " + std1.GetNoSC());

Message1=std1.SetCOE211grade(60);

System.out.println(Message1);

Message1=std5.SetCOE211grade(60);

System.out.println(Message1);

int a =std5.GetCOE211grade();
System.out.println("grade of student 5 is = " + a);

Message1=std1.SetLabgrade(70);

System.out.println(Message1);

Message1=std5.SetLabgrade(75);

System.out.println(Message1);


a =std5.GetLabgrade();
System.out.println(" Lab grade of student 5 is = " + a);

char lettergrade = std5.getfinalgrade();//see the definition of the getfinalgrade, it should take 5 aruments

System.out.println("Student 5 has an average = 60 * 0.75 + 75 * 0.25 = 63.75 which is equivalent to lettergrade : " + lettergrade);

Message1=std5.SetCOE211grade(100);

System.out.println(Message1);

lettergrade = std5.getfinalgrade();

System.out.println("Student 5 after correcting his course grade has an average = =90 * 0.75 + 75 * 0.25 = 93.75 which is equivalent to lettergrade : " + lettergrade);

Message1=std4.SetCOE211grade(88);

System.out.println(Message1);

lettergrade = std4.getfinalgrade();

System.out.println("Student 4 Lettergrade (lettergrade depends only on his course grade= 88 because he is not taking the lab) : " + lettergrade);


Message1=std5.paytuition();//where is paytutition defined?
System.out.println("student5 should pay : " + Message1);


Message1=std4.paytuition();
System.out.println("student4 should pay : " + Message1);


System.out.println(std1);
System.out.println(std1.toString());

    }

}


Was This Post Helpful? 1
  • +
  • -

#5 m-e-g-a-z  Icon User is offline

  • Winning
  • member icon


Reputation: 496
  • View blog
  • Posts: 1,453
  • Joined: 19-October 09

Re: non-static method cannot be referenced from a static context

Posted 05 April 2010 - 06:46 AM

Please sort out the indentation in the future as in the UseUniversity class, it does make it hard for us to read :).

Anyways, This bit here

 University std1 = new University ("Jad", 201004442, "Mechanical");
 University std2 = new University ("Seta", 201005062, "Computer");
 University std3 = new University ("omar", 201040611, "Electrical");
 University std4 = new University ("tarek", 200903072, "Civil");
 University std5 = new University ("Sana", 20094442, "Mechanical");
 University std6 = new University ("reham", 200805062, "Computer");
 University std7 = new University ("omar", 200740611, "Electrical");
 University std8 = new University ("Mazen", 200803072, "Civil");
 University std9 = new University ("Ahmad", 200804442, "Mechanical");
 University std10 = new University ("abd", 200705062, "Computer");
 University std11 = new University ("ibrahim", 200840611, "Electrical");
 University std12 = new University ("Mark", 200603072, "Civil");



Make this an ArrayList of objects like this..

ArrayList<University> student = new ArrayList <University>();


As you later are invoking the AddCOE211() method will all-1 of the objects which you can do using a for loop.

You can then add each object like this and fill out the constructor.

student.add(new University("Jad", 201004442, "Mechanical")); 


This will then let you easily create as many student objects.

As for your methods not being found, check what you defined your methods as..

There isnt a method called AddCOE211Lab();

But there is a method called AddCOE211LAB();

See the typo?

Same for this..

std4.paytuition();


should be

Paytuition(); instead of paytuition()

Your method getfinalgrade needs these parameters as you created it like this
getfinalgrade(double finalgrade, char A, char B, char C, char D, char F)


but you dont fill out the parameters when you are invoking this method within each object.

std5.getfinalgrade();


Edit - Way Too Slow!

This post has been edited by m-e-g-a-z: 05 April 2010 - 06:48 AM

Was This Post Helpful? 1
  • +
  • -

#6 m-e-g-a-z  Icon User is offline

  • Winning
  • member icon


Reputation: 496
  • View blog
  • Posts: 1,453
  • Joined: 19-October 09

Re: non-static method cannot be referenced from a static context

Posted 05 April 2010 - 07:07 AM

Also please avoid posting again, posting twice dosent help us as i was actually working on this post what is wrong in my class?whilst PennyBoki was working on this one. Which for 1, makes things confuzing and secondly, double the work for us.
Was This Post Helpful? 0
  • +
  • -

#7 zdawi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 12-March 10

Re: non-static method cannot be referenced from a static context

Posted 05 April 2010 - 07:11 AM

till now did not get it how to correct the error:
non-static method GetNoSC() cannot be referenced from a static context
Was This Post Helpful? 0
  • +
  • -

#8 m-e-g-a-z  Icon User is offline

  • Winning
  • member icon


Reputation: 496
  • View blog
  • Posts: 1,453
  • Joined: 19-October 09

Re: non-static method cannot be referenced from a static context

Posted 05 April 2010 - 07:48 AM

The main method is static, which means it cannot referance non-static variables or methods.

This is why they created the keyword static for e.g

public static void ...

Was This Post Helpful? 0
  • +
  • -

#9 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2872
  • View blog
  • Posts: 11,031
  • Joined: 15-July 08

Re: non-static method cannot be referenced from a static context

Posted 05 April 2010 - 02:58 PM

I wrote a tutorial explaining variable scope and static variables. You might find the read interesting.
http://www.dreaminco...topic158726.htm
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1