会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
七只蚂蚁
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
下一页
2020年8月5日
利用抽象类给一个有工资收入和稿费收入的小伙伴算税
摘要: 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)
2020年8月1日
冒泡排序算法对一个整型数组从小到大进行排序
摘要: 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)
2020年3月9日
button
摘要: 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)
Toggle
摘要: 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)
2020年3月7日
passwordField
摘要: 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)
2020年2月23日
error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
摘要: #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)
2020年2月14日
用递归求n!
摘要: #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)
c语言:计算s=2^2!+3^2!
摘要: #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)
2020年2月11日
C语言:编写一个统计空格,换行符,制表符的程序
摘要: #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)
error C2446: “==”: 没有从“const char *”到“int”的转换;error C2040: “==”: “int”与“const char [1]”的间接寻址级别不同;
摘要: #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)
1
2
3
4
下一页
公告