Click here to Skip to main content
15,897,187 members

Comments by Zia Ullah Khan (Top 25 by date)

Zia Ullah Khan 8-Feb-13 7:42am View    
the forms are .Net WinForms
Zia Ullah Khan 8-Feb-13 7:37am View    
the forms are .Net WinForms
Zia Ullah Khan 19-Dec-12 14:38pm View    
can you have a look here please;
http://www.codeproject.com/Answers/512557/howplustopluscalculateplusthepluspositionplusofplu#answer2
Zia Ullah Khan 19-Dec-12 14:28pm View    
no i'm not calculating the gpa
Zia Ullah Khan 19-Dec-12 14:21pm View    
this is just sorting, but what if we have like this;

class student
{
public string positionInEnglish;//position to be calculated and placed in this field for each student
public string positionInMath;//position to be calculated and placed in this field for each student
public int EnglishObtainedMarks;

public int mathObtainedMarks;
public student(int engObtMarks,int mathObtMarks)
{
EnglishObtainedMarks= engObtMarks;
mathObtainedMarks = mathObtMarks;
}
}

list.Add(new student(7,30)); // position of student = 3rd
list.Add(new student(3,40));// position of student = 6th
list.Add(new student(5,60));// position of student = 5th
list.Add(new student(88,70));// position of student = 2nd
list.Add(new student(2,5));// position of student = 7th
list.Add(new student(963,90));// position of student = 1st
list.Add(new student(6,34));// position of student = 4th
list.Add(new student(963,343));// position of student = 1st
list.Add(new student(963,343));// position of student = 1st