摘要: // 爬楼梯.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include<iostream>using namespace std; int main(){ int n; cin >> n; int a = 1, b = 1, k = 0; if (n == 阅读全文
posted @ 2017-03-09 22:49 wenchen 阅读(96) 评论(0) 推荐(0) 编辑
摘要: // 买卖股票的最佳时机.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include<iostream>using namespace std;int max(int a, int b);int min(int a, int b);int main(){ i 阅读全文
posted @ 2017-03-09 22:48 wenchen 阅读(102) 评论(0) 推荐(0) 编辑
摘要: // 删除数组中的重复元素.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include<iostream>using namespace std; int main(){ int i; cout << "请输入数组长度:"; cin >> i; int *p 阅读全文
posted @ 2017-03-09 22:46 wenchen 阅读(958) 评论(0) 推荐(0) 编辑