当前位置: 首页 > news >正文

温州做模具的网站怎么在网站备案号码上加一个工信部链接地址

温州做模具的网站,怎么在网站备案号码上加一个工信部链接地址,wordpress页面文件夹,小程序申请流程目录 前言#xff1a; 头文件类与函数的定义Date.h 实现函数的Date.cpp 测试Test.cpp 运行结果#xff1a; 前言#xff1a; 我们在前面的两章初步学习认识了《类与对象》的概念#xff0c;接下来我们将实现一个日期类#xff0c;是我们的知识储备更加牢固。 头文件…目录 前言 头文件类与函数的定义Date.h 实现函数的Date.cpp 测试Test.cpp 运行结果 前言 我们在前面的两章初步学习认识了《类与对象》的概念接下来我们将实现一个日期类是我们的知识储备更加牢固。 头文件类与函数的定义Date.h #pragma once #define _CRT_SECURE_NO_WARNIGS 1 #includeiostream using namespace std;class Date { public:friend ostream operator(ostream out, const Date d);int GetMonthDay(int _year, int _month){int day[13] { 0,31,28,31,30,31,30,31,31,30,31,30,31 };if ((_year % 4 0) (_year % 100 ! 0) || (_year % 400 0)){day[2] 29;}return day[_month];}Date(int year 2000, int month 1, int day 1){if (month 12 || day GetMonthDay(year, month)){cout Setting error!!! endl;exit(-1);}_year year;_month month;_day day;}bool operator(const Date d);bool operator!(const Date d);bool operator(const Date d);bool operator(const Date d);bool operator(const Date d);bool operator(const Date d);Date operator(int day);Date operator(int day);Date operator();Date operator(int);Date operator-(int day);Date operator-(int day);Date operator--();Date operator--(int);int operator-(const Date d); private:int _year;int _month;int _day; }; 实现函数的Date.cpp #includeData.h bool Date::operator(const Date d) {return (_year d._year) (_month d._month) (_day d._day); } bool Date::operator!(const Date d) {return !(*this d); } bool Date::operator(const Date d) {if (_year d._year){return true;}else if (_year d._year){return false;}if (_month d._month){return true;}else if (_month d._month){return false;}if (_day d._day){return true;}return false; } bool Date::operator(const Date d) {return (*this d) || (*this d); }bool Date::operator(const Date d) {return !(*this d); } bool Date::operator(const Date d) {return !(*this d); }Date Date::operator(int day) {_day day;while (_day GetMonthDay(_year, _month)){_day - GetMonthDay(_year, _month);_month;if (_month 13){_month 1;_year;}}return *this; }Date Date::operator(int day) {Date tmp *this;tmp day;return tmp; }Date Date::operator() {*this 1;return *this; } Date Date::operator(int) {Date tmp *this;*this 1;return tmp; }Date Date::operator-(int day) {_day - day;while (_day 0){_month--;if (_month 0){_month 12;_year--;}_day GetMonthDay(_year, _month);}return *this; }Date Date::operator-(int day) {Date tmp *this;tmp - day;return tmp; }Date Date::operator--() {*this - 1;return *this; }Date Date::operator--(int) {Date tmp *this;*this - 1;return tmp; }int Date::operator-(const Date d) {int flag 1;Date max *this;Date min d;if (max min){max d;min *this;flag -1;}int count 0;while (max ! min){min;count;}return flag * count; }ostream operator(ostream out, const Date d) {out d._year 年 d._month 月 d._day 号;return out; } 测试Test.cpp #includeData.h int main() {Date d1(2024, 3, 10);cout d1 endl;Date d2(2024, 6, 17);cout d2 endl;printf(相差天数);cout (d2 - d1) endl;return 0; } 运行结果
http://www.w-s-a.com/news/722434/

相关文章:

  • 哪些网站的简历做的比较好政务服务 网站 建设方案
  • 如何建设个人网站凡科怎么样vps安装wordpress后怎样登录
  • 学seo朝阳区seo
  • 网站开发团队成员皮具网站建设
  • 国外外贸需求网站响应式布局网页
  • 手机端便民服务平台网站建设昆明网络哪家好
  • 产品网站建设找哪家舟山信息港
  • 唐山网站建设汉狮怎么样seol英文啥意思
  • 深圳小程序网站开发公司网页制作模板视频教程
  • 电子商务网站开发开题报告wordpress更改后台地址
  • 网站静态前端是什么工作
  • 餐饮门户网站 方案怎么做创业好项目
  • 做百度手机网站推广普通话的宣传标语
  • 记事本可以做网站吗网站服务器是主机吗
  • 手机网站被拦截怎么办怎么解决东营建设信息网网
  • 外贸网站模板免费微信网站开发技术
  • 视频盗版网站怎么做福州网站seo
  • 成都金铭 网站建设做网站包含的技术
  • 长沙的网站建设公司哪家好做网站应选那个主题
  • 公司网站百度搜不到如何自己做一个网站
  • 学生如何建设网站网站开发程序
  • 网站建设公司哪家好 皆来磐石网络网站建设"淘宝网" 在颜色选取和搭配方面有哪些值得学习的地方.
  • 网站如何做移动规则适配北京住房与城乡建设部网站
  • 课堂阵地建设网站wordpress运行机制
  • 网站建设的需求方案企业网站建设费用明细
  • 创口贴网站模板京创影视app
  • 团购网站建设目的网站有很多304状态码
  • 运用阿里云怎么做网站外资企业可以在中国境内做网站吗
  • 云南住房和城乡建设局网站西安做官网的公司
  • 企业网站图片上传网站建设和应用的情况