- 博客(11)
- 资源 (1)
- 收藏
- 关注
原创 排序算法(选择排序、冒泡排序、归并排序、快速排序、插入排序)
// 排序算法编程实践#include <iostream> #include<time.h>#include <stdlib.h>using namespace std;// 冒泡排序void BubbleSort(int a[], int n){ bool flag = true; int k = n; while (flag)...
2018-12-01 19:55:21
1509
原创 KFC收银系统
1.正常餐品结算和找零。2.基本套餐结算和找零。3.使用优惠劵购买餐品结算和找零。4.可在一定时间段参与店内活动(自行设计或参考官网信息)。5.模拟打印小票的功能(写到文件中)。 import java.awt.event.KeyAdapter;import java.io.BufferedWriter;import java.io.FileOutputStream;...
2018-10-27 10:32:49
341
原创 RPG角色生成器 (要求编写一个简化的创建游戏角色的程序)
#include "iostream"#include "fstream"#include <iomanip>#include "string"#include "ctime" using namespace std; int occupation_choice; class Base { protected: char name[50];//记...
2018-10-07 22:07:47
2237
原创 24点游戏
import java.util.List;import java.util.ArrayList;import java.util.Arrays;import java.util.Collection;import java.util.HashSet;import java.util.Scanner;import java.util.Set; public class ...
2018-10-05 11:34:33
337
原创 词频统计程序
具体代码如下:#include <iostream>#include <string>#include <ctype.h>#define N 50typedef struct BiTNode{ char data[N]; int count; struct BiTNode *lChild; struct BiTNo...
2018-09-21 15:22:32
464
原创 单词小助手
#include <stdio.h>#include <string.h>#include <stdlib.h>#define MAX_CHAR 20 // 最大字符#define MAX_NUM 200 // 单词的最大个数 struct word//单词的结构体{ char en[MAX_CHAR]; // 英文形式 c...
2018-09-08 19:20:22
162
原创 求两个正整数的最大公约数和最小公倍数。
方法一:import java.util.Scanner;public class Test01 { int math (int a,int b) {//用转转相除法求最小公约数,在这里设一个方法 if(a%b==0) { return b; } else { return math (b...
2018-09-08 18:36:51
279
原创 中国有句俗语叫“三天打鱼两天晒网”。某人从2010年1月1日起开始“三天打鱼两天晒网”,问这个人在以后的某一天中是“打鱼”还是“晒网”。用java实现程序解决问题。
package 三天打渔两天晒网;import java.io.*;public class Test01 { public static void main (String [] args) throws Exception { int i,sum=0; System.out.println("从2010年1月1日起开始"); //年输入 ...
2018-09-01 10:00:17
891
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人