自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(0)
  • 资源 (7)
  • 收藏
  • 关注

空空如也

Android APP 电子词典

电子词典-注册,登录,生词本,翻译,单词查询,历史记录模块

2019-03-25

设备管理实验

while(1) { printf("请输入指令(1添加设备,2删除设备,3分配设备,4回收设备 ):\n"); scanf("%d",&choice;); switch(choice) { case 1: add_device(); displaydevice(); break; case 2: del_device(); displaydevice(); break; case 3: allocate_device(); displaydevice(); break; case 4: return_device(); displaydevice(); break; case 0: exit(1); default: printf("输入错误重新输入。\n"); } } return 0;

2018-12-06

android studio购物车代码

android studio开发购物车具体实现代码。

2018-11-24

数据库设计说明书(含需求分析)

1引言 2 1.1编写目的 2 1.2背景 2 1.3定义 2 1.4参考资料 2 2外部设计 2 2.1标识符和状态 2 2.2使用它的程序 3 2.3约定 3 2.4专门指导 3 2.5支持软件 3 3结构设计 3 3.1概念结构设计 3 3.2逻辑结构设计 3 3.3物理结构设计 4 4运用设计 4 4.1数据字典设计 4 4.2安全保密设计 4

2018-05-14

蛮力法 分治法 动态规划求最大字段和

/*蛮力法 n^2 对于数组a[n],其连续的子段有 以a[0]开始的 , { a[0] }, { a[0],a[1] },{ a[0],a[1],a[2] }.....共n 个 以a[1]开始的, { a[1] }, { a[1],a[2] },{ a[1],a[2],a[3] }.....共n-1个 ... 以a[n]开始的,{ a[n] }共1个 */ int MaxSum_ManLi(int arr[],int n){ int sum=0; int i=0; int j=0; for(i=0;i<n;i++){ int thisSum=0; for(j=i;j<n;j++){

2018-05-14

n枚和八枚硬币问题

//n枚硬币问题 void solve(int coin[], int n, int p, int q) { if (n < 3){//少于三枚没有比较对象无法判断真假 printf("无法判断\n"); return; } if (p == q){ printf("第%d枚, 假币的重量为%d\n", p+1, coin[p]); } else if (q - p == 1){//还剩两枚硬币时 if (p > 0){//第0枚为真 if (coin[p] == coin[0])//第p枚为真 solve(coin, n, p + 1, q); else//第q枚为真 solve(coin, n, p, q - 1); } else if (q < n - 1){//第n-1枚为真 if (coin[p] == coin[n - 1]) solve(coin, n, p + 1, q); else solve(coin, n, p, q - 1); } }

2018-05-14

扑克牌代码实现

在ecplise上用java实现扑克游戏算法 public class GameLanucher { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("开始发牌:"); ArrayList[] al= (ArrayList[]) StartPlay.FaPai(); ArrayList jia=al[0]; ArrayList yi=al[1]; System.out.println("甲方持有牌为: "); System.out.println(jia); System.out.println("乙方持有牌为: "); System.out.println(yi); for (int i = 0; i < jia.size(); i++) { System.out.print(GameRule.Num2Pai((int) jia.get(i))+" "); } System.out.println(); for (int i = 0; i < yi.size(); i++) { System.out.print(GameRule.Num2Pai((int) yi.get(i))+" "); } } }

2018-05-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除