c++
帅帅索大
青春 可爱 阳光向上 哈哈哈~~~~
展开
-
c++ 积累
c++积累system("mode con cols=50 lines=40"); //设置控制台大小SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_RED);//设置控制台字体颜色原创 2018-04-13 10:27:47 · 238 阅读 · 0 评论 -
591acm 动态规划
题意简述:需要购买n件物品,从m件商品中按顺序进行选择,求出从m件商品中购买到所需的n件物品最低消费,如果购不齐输出Impossible n>=0 && n <= 100 m>=0 & m<=100。 例1: 2 3 1 2 2 0.05 1 10.00 1 3.00原创 2018-08-29 23:03:44 · 191 阅读 · 0 评论 -
输入一个整数,将各位数字反转后输出
#include<iostream>using namespace std;int main(){int n;cin >> n;int s;if(n==0){return 0 ;}while (n){s = n % 10;cout << s ;n /= 10;}system("pause");return 0;}原创 2016-10-08 23:52:36 · 6082 阅读 · 3 评论 -
C++ 函数 记录
C++函数网址:http://www.cplusplus.com/原创 2018-09-07 15:10:37 · 247 阅读 · 0 评论