
工具
文章平均质量分 79
时光丨荏苒
这个作者很懒,什么都没留下…
展开
-
C++简单计算器的实现
语言 C++ 工具 stack map 步骤 初始化 读取字符串 去空格 负号处理 判断为空 检查格式 计算 示例 代码 #include <iostream> #include <string> #include <stdio.h> #include <stack> #includ原创 2019-01-27 16:48:44 · 3758 阅读 · 7 评论 -
原生js实现简单日历的制作
效果图 代码块 <!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> </head&a原创 2019-02-22 21:11:42 · 1958 阅读 · 0 评论 -
进制转换
将p进制数x转换为十进制数y #include <stdio.h> #include <iostream> #include <math.h> using namespace std; int main() { int x, p; int y = 0, index = 0; cin >> x >> p; while(x != 0)...原创 2019-02-26 15:01:34 · 119 阅读 · 0 评论 -
lambda表达式简单示例
代码 package test1; import java.util.ArrayList; import java.util.Arrays; import java.util.List; interface Cmp { int cmp(int p, int q); } interface Predicate&amp;lt;Integer&amp;gt; { boolean test(int i); ...原创 2019-03-02 19:57:27 · 364 阅读 · 0 评论 -
日期的算法格式化
问题描述 小明在整理一批历史文献。这些历史文献中出现了很多日期。小明知道这些日期都在1960年1月1日至2059年12月31日。令小明头疼的是,这些日期采用的格式非常不统一,有采用年/月/日的,有采用月/日/年的,还有采用日/月年的。更麻烦的是,年份也都省略了前两位,使得文献上的一个日期,存在有很多的可能的日期月其对应。 比如02/03/04,可能是2002年03月04日、2004年02月03日或...原创 2019-01-30 20:13:44 · 265 阅读 · 0 评论