上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: import java.util.Calendar; /*Calendar类: * public int get(int field) 返回给定日历字段的值。 * public static Calendar getInstance() 使用默认时区和语言环境获得一个日历。 * 返回的 Calend 阅读全文
posted @ 2018-11-01 09:26 阿蓉 阅读(448) 评论(0) 推荐(0) 编辑
摘要: import java.math.BigInteger; /* * BigInteger(String val) 将 BigInteger 的十进制字符串表示形式转换为 BigInteger。 成员方法: BigInteger add(BigInteger val) 返回其值为 (this + va 阅读全文
posted @ 2018-11-01 09:25 阿蓉 阅读(146) 评论(0) 推荐(0) 编辑
摘要: import java.math.BigDecimal; /* * BigDecimal类:不可变的、任意精度的有符号十进制数。 */public class BigDecimalDemo2 { public static void main(String[] args) { BigDecimal 阅读全文
posted @ 2018-11-01 09:24 阿蓉 阅读(130) 评论(0) 推荐(0) 编辑
摘要: package cn.it; import java.util.Arrays; /* * Arrays:此类包含用来操作数组(比如排序和搜索)的各种方法。 * * public static String toString(short[] a)返回指定数组内容的字符串表示形式。 * public s 阅读全文
posted @ 2018-11-01 09:23 阿蓉 阅读(141) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <list>#include <map>using namespace st 阅读全文
posted @ 2018-01-02 13:50 阿蓉 阅读(219) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string>#include<fstream>#include<sstream>using namespace std;#define _CRT_SECURE_NO_WARNINGSclass Tair //通过定义一个类来定义数据录入的函数 阅读全文
posted @ 2017-12-18 11:23 阿蓉 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;//数组的前一个元素和后一个元素相比void select_sort(int *p,int n){ int i, j, k, t; for (i = 0; i < n - 1;i++) { k = i; for (j = 阅读全文
posted @ 2017-11-05 22:36 阿蓉 阅读(125) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;int main(){ int a[11]; int i, j, t; cout << "input 10 numbers: " << endl; for (i = 1; i <= 10;i++) { cin >> a[i 阅读全文
posted @ 2017-11-05 21:43 阿蓉 阅读(132) 评论(0) 推荐(0) 编辑
摘要: // 堆栈.cpp : 定义控制台应用程序的入口点。//一种数据结构//堆栈中的元素遵循后进先出的原则(LIFO)后入栈的元素先出栈//队列//队列中的元素遵循先进先出的原则,先进队列的元素先出队列 //stack 堆栈 适配器容器 是由其他容器实现的(可以指定由其它容器实现)/*push()压入堆 阅读全文
posted @ 2017-11-04 12:08 阿蓉 阅读(120) 评论(0) 推荐(0) 编辑
摘要: // list.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <list>#include <iostream>using namespace std;//using std::list; int _tmain(int argc, _TCHAR 阅读全文
posted @ 2017-10-27 12:11 阿蓉 阅读(155) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页