摘要: class AbstarctClass { public static void main(String[]args) { // TODO: 用抽象类给一个有工资收入和稿费收入的小伙伴算税: Income[] incomes = new Income[] {new SalaryIncome(7500 阅读全文
posted @ 2020-08-05 10:53 七只蚂蚁 阅读(841) 评论(0) 推荐(0)
摘要: import java.util.Arrays; public class Main { public static void main(String[] args) { int[] ns = { 28, 12, 89, 73, 65, 18, 96, 50, 8, 36 }; // 排序前: Sy 阅读全文
posted @ 2020-08-01 15:16 七只蚂蚁 阅读(1498) 评论(0) 推荐(0)
摘要: public class button : MonoBehaviour { public GameObject obj;//声明Text游戏对象 private int counter = 1;//声明计数器连良 void Update() { if (counter % 2 == 0)//当计数器 阅读全文
posted @ 2020-03-09 20:07 七只蚂蚁 阅读(160) 评论(0) 推荐(0)
摘要: public class demo : MonoBehaviour { public Texture texture; private bool textBool = false;toggle private bool textureBool = true; private void OnGUI() 阅读全文
posted @ 2020-03-09 19:02 七只蚂蚁 阅读(349) 评论(0) 推荐(0)
摘要: 1 static functionPasswordField (position:Rect,password:String,maskChar:char):String 2 3 static functionPasswordField (position:Rect,password:String,ma 阅读全文
posted @ 2020-03-07 11:08 七只蚂蚁 阅读(424) 评论(0) 推荐(0)
摘要: #include "stdio.h" double average(double array[10]); void main() { double score[10]={10,20,10,20,10,20,10,20,10,20},result; result=average(score); pri 阅读全文
posted @ 2020-02-23 21:22 七只蚂蚁 阅读(5288) 评论(0) 推荐(0)
摘要: #include "stdio.h" long recursion(int n); void main() { int n; long result; printf("input a integer number:"); scanf("%d",&n); result=recursion(n); pr 阅读全文
posted @ 2020-02-14 20:38 七只蚂蚁 阅读(463) 评论(0) 推荐(0)
摘要: #include "stdio.h" long square(int p);//实现平方 long factorial(int q);//实现阶乘 void main() { int i; long s=0; for(i=2;i<=3;i++) { s+=square(i); } printf("% 阅读全文
posted @ 2020-02-14 19:59 七只蚂蚁 阅读(980) 评论(0) 推荐(0)
摘要: #include "stdio.h" void main() { int c,kg,hhf,zbf; kg=hhf=zbf=0; while((c=getchar())!=EOF)//EOF资料结束, { if(c==' ') { kg+=1; } if(c=='\n') { hhf+=1; } i 阅读全文
posted @ 2020-02-11 21:31 七只蚂蚁 阅读(1104) 评论(0) 推荐(0)
摘要: #include "stdio.h" void main() { int c,kg,hhf,zbf; kg=hhf=zbf=0; while((c=getchar())!=EOF)//EOF资料结束 { if(c=="") { kg+=1; } if(c=="\n") { hhf+=1; } if( 阅读全文
posted @ 2020-02-11 21:29 七只蚂蚁 阅读(2753) 评论(0) 推荐(0)