摘要: 关注《构建之法》的作者邹欣老师的博客 作业采用博客园的markdown排版,可以参考极简MarkDown排版介绍 软件工程第一次作业要求 本次作业的标题命名为“软件工程第一次作业” 花20分钟写一个能自动生成小学四则运算题目的“软件”,要求:除了整数以外,还要支持真分数的四则运算。将代码上传至cod 阅读全文
posted @ 2017-04-23 16:43 陌路站台 阅读(85) 评论(0) 推荐(0) 编辑
摘要: // 计算器.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include "stdlib.h" //该头文件定义了rand()等一系列函数#include "math.h"#include <iostream>using namespace std;#def 阅读全文
posted @ 2017-04-16 22:05 陌路站台 阅读(211) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: /** * @param n: An integer * @return: An integer */ int climbStairs(int n) { // write your code here int i,s[n]; if(n==0) retu 阅读全文
posted @ 2017-03-08 21:33 陌路站台 阅读(919) 评论(0) 推荐(0) 编辑
摘要: public class Solution { /** * @param A: a array of integers * @return : return an integer */ public int removeDuplicates(int[] nums) { // write your c 阅读全文
posted @ 2017-03-08 21:32 陌路站台 阅读(1743) 评论(0) 推荐(1) 编辑
摘要: class Solution {public: /** * @param prices: Given an integer array * @return: Maximum profit */ int maxProfit(vector<int> &prices) { // write your co 阅读全文
posted @ 2017-03-08 21:32 陌路站台 阅读(805) 评论(0) 推荐(0) 编辑