コード例 #1
0
 static void Main(string[] args)
 {                
     int id = 0,             //variable for prof id             
         easiness = 0,       // variable for data 
         helpfulness = 0,
         clarity = 0;
     // crating the object
     ProfessorRating rating = new ProfessorRating(ref id, ref easiness,ref helpfulness,ref clarity);
     //calling and displaying the intro for the program
     Console.WriteLine(rating.getIntro());
     // calling the setValues so the user can input the values
     rating.setValues();
     //Displaying the values plus the average with the toString method from the class Professor Rating 
     Console.WriteLine(rating);
     Console.Read();
     
 }
コード例 #2
0
        static void Main(string[] args)
        {
            int id          = 0,    //variable for prof id
                easiness    = 0,    // variable for data
                helpfulness = 0,
                clarity     = 0;
            // crating the object
            ProfessorRating rating = new ProfessorRating(ref id, ref easiness, ref helpfulness, ref clarity);

            //calling and displaying the intro for the program
            Console.WriteLine(rating.getIntro());
            // calling the setValues so the user can input the values
            rating.setValues();
            //Displaying the values plus the average with the toString method from the class Professor Rating
            Console.WriteLine(rating);
            Console.Read();
        }
コード例 #3
0
 public static void Unit_Test()
 {
     ProfessorRating pr = new ProfessorRating();
 }