⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 liststusort.java

📁 学习JAVA语言时候做的一个小东西 有学c或c++的可以看一下有多大的不同
💻 JAVA
字号:
class ListStu{
      public int score1,score2,score3;
             int num;
             char name;
      public ListNode next;
      public ListNode previous;
      ListStu(int num){
      	this.num=num;
      	/*int score1,int score2,int score3
      this.score1=score1;
      this.score2=score2;
      this.score3=score3;
     }
     int getnum(){
     return  num;*/
     } 
     char getname(){
     return  name;
     }
     
}
public class ListStuSort{
		private ListStu head;
    ListStuSort(){
        head=new ListStu(num);
		head.next=head.previous=head;
    }
	public void insert(int data){
			ListStu temp=new ListStu(num);
			head.previous.next=temp;
			temp.previous=head.previous;
			head.previous=temp;
			temp.next=head;      
	}
	public String toString(){
		ListStu tmp=head.next;
		String rtnValue="head==>";
		
		while(tmp!=head){
			rtnValue+=tmp.data;
			tmp=tmp.next;
			if (tmp!=head) 
				rtnValue+="==>";
			else
				break;
		}
		rtnValue+="  (end)";
		return rtnValue;
	}

	
}
class ListSortTest{
    public void main(String args[]){
        System.out.println("基于链表的整数排序:");

     }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -