定义时间类,输入年月日,运行程序后可计算并显示出该天的日期和该天是星期几,同时打印出昨天和明天的日

来源:百度知道 编辑:UC知道 时间:2024/06/25 21:03:00

我以前做了一个,但是为模拟银行做的
///////////////////////////////////////////////////////////////////////////////////////////
////
////若要引用或粘贴此代码,请标明出处:http://hi.baidu.com/crazy%B3%CC%D0%F2%D4%B1
////作者:吕威
///////////////////////////////////////////////////////////////////////////////////////////
以下为我大二做的几个数据结构代码:当然大部分算法来源于书本希望大家多多指导;对于初学者希望

有所用(所有代码类以LW开头meaning : LVWEI):

关于队列的模拟银行程序的实现:(关于他的输出仿照了ACM大赛的一道题)

#include <iostream>
#include <malloc.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string>
#include <stdio.h>
#include <time.h>
#include <iomanip>
using std::setw ;using std::cin;using std::cout;using std::endl;using std::istream ;using

std::ostream ;
using std::string;

#define OK 1
#define ERROR 0
////////