网站首页 站内搜索

搜索结果

查询Tags标签: info,共有 937条记录
  • 贪心算法-付钱问题(C语言实现)

    问题 小明是一名程序员,在某个电脑店购买了一把机械键盘,机械键盘386元,问,如果支付现金,如何让超市不找钱(若小明有面值为100,50,20,10,5,1元面值的人民币) 贪心算法 为了问题会给出最优解的算法 我们定义一个Info的类型存储钱的信息 一个存储面值 一个存储面值…

    2021/10/31 9:39:42 人评论 次浏览
  • 贪心算法-付钱问题(C语言实现)

    问题 小明是一名程序员,在某个电脑店购买了一把机械键盘,机械键盘386元,问,如果支付现金,如何让超市不找钱(若小明有面值为100,50,20,10,5,1元面值的人民币) 贪心算法 为了问题会给出最优解的算法 我们定义一个Info的类型存储钱的信息 一个存储面值 一个存储面值…

    2021/10/31 9:39:42 人评论 次浏览
  • 综合案例

    条件标签:if choose<c:set var="num1" value="1"></c:set> <c:set var="num2" value="2"></c:set> <c:if test="${num1>num2}">ok</c:if> <c:if test="${num2>num…

    2021/10/31 6:10:01 人评论 次浏览
  • 综合案例

    条件标签:if choose<c:set var="num1" value="1"></c:set> <c:set var="num2" value="2"></c:set> <c:if test="${num1>num2}">ok</c:if> <c:if test="${num2>num…

    2021/10/31 6:10:01 人评论 次浏览
  • 实验二 数组 指针与C++标准库

    四 实验结论 (1)实验任务5 1. 源代码如下 Info.hpp#ifndef INFO_HPP #define INFO_HPP//Info 类的定义 #include <iostream> #include <string> #include <iomanip>using namespace std;class Info {public:Info();Info(string nickname0, string con…

    2021/10/31 1:39:38 人评论 次浏览
  • 实验二 数组 指针与C++标准库

    四 实验结论 (1)实验任务5 1. 源代码如下 Info.hpp#ifndef INFO_HPP #define INFO_HPP//Info 类的定义 #include <iostream> #include <string> #include <iomanip>using namespace std;class Info {public:Info();Info(string nickname0, string con…

    2021/10/31 1:39:38 人评论 次浏览
  • thinkphp5-日志

    日志配置文件 config.php log => [// 日志记录方式,内置 file socket 支持扩展type => File,// 日志保存目录path => LOG_PATH,// 日志记录级别level => [],//自动清理max_files=>2], 写日志Log::record(错误信息,error); Log::record(日志信息,info); …

    2021/10/31 1:09:46 人评论 次浏览
  • thinkphp5-日志

    日志配置文件 config.php log => [// 日志记录方式,内置 file socket 支持扩展type => File,// 日志保存目录path => LOG_PATH,// 日志记录级别level => [],//自动清理max_files=>2], 写日志Log::record(错误信息,error); Log::record(日志信息,info); …

    2021/10/31 1:09:46 人评论 次浏览
  • 实验二 数组、指针与C++标准库

    Info.hpp#ifndef INFO_HPP #define INFO_HPP #include <iostream> #include <iomanip> #include <string> using namespace std; class Info {public:Info(string a, string b, string c, int d) : nickname {a}, contact {b}, city {c}, n {d} {}~Inf…

    2021/10/30 22:09:50 人评论 次浏览
  • 实验二 数组、指针与C++标准库

    Info.hpp#ifndef INFO_HPP #define INFO_HPP #include <iostream> #include <iomanip> #include <string> using namespace std; class Info {public:Info(string a, string b, string c, int d) : nickname {a}, contact {b}, city {c}, n {d} {}~Inf…

    2021/10/30 22:09:50 人评论 次浏览
  • 实验二 数组,指针与C++标准库

    info.hpp文件源码#include <iostream> #include <string> using namespace std;class info { public:info(){};info(string nick, string con, string c, int n1);void print(){cout << "昵称: " << nickname << endl;co…

    2021/10/30 20:41:53 人评论 次浏览
  • 实验二 数组,指针与C++标准库

    info.hpp文件源码#include <iostream> #include <string> using namespace std;class info { public:info(){};info(string nick, string con, string c, int n1);void print(){cout << "昵称: " << nickname << endl;co…

    2021/10/30 20:41:53 人评论 次浏览
  • 实验二 数组,指针与C++标准库

    task5 :"info.h"#include<iostream> #include<string> #include<iomanip> using namespace std;class info { private:string nickname;string contact;string city;int n; public:info(string nickname="null", string contact=&q…

    2021/10/30 20:13:55 人评论 次浏览
  • 实验二 数组,指针与C++标准库

    task5 :"info.h"#include<iostream> #include<string> #include<iomanip> using namespace std;class info { private:string nickname;string contact;string city;int n; public:info(string nickname="null", string contact=&q…

    2021/10/30 20:13:55 人评论 次浏览
  • PAT甲级 1070(C++)

    关于测试点2:一开始amount我设的是int型,测试点2错误,看了网上的答案,把int改成float就对了(被给的example坑到了,没想到可以为小数 #include<iostream> #include<vector> #include<algorithm> using namespace std; struct mk {float amount;flo…

    2021/10/30 20:10:41 人评论 次浏览
扫一扫关注最新编程教程