摘要:
#include"iostream"#include"windows.h"//获取系统时间s#include"string"void year();void ymonth();void day();char menu_choose();void yue(int i,int*k,int*month_numble,int*year);//函数实现输出每月的日历void yue1(int*k,int*month_numble,int*year,int*ymonth);//函数实现输出每月的日历void day2(int*k,int*mont 阅读全文
摘要:
#include<iostream>using namespace std;void main(){/*判断一个数是否能被3,5,7整除,以及整除的结果*/cout<<"请输入一个数,判断其分别被3,5,7整除的情况:";int a,s;cin>>a;s=((a%3==0?1:0)<<2)|((a%5==0?1:0)<<1)|(a%7==0?1:0);cout<<s<<endl;switch(s){case 0:cout<<"不能被3,5,7整除\n";bre 阅读全文
摘要:
#include<iostream>#include<fstream>#include<sstream>#include<string>#include<algorithm>#include <vector>using namespace std;typedef vector<int> VI;typedef vector< vector<int> > VVI;void main(){string s1;ifstream fin("aaa.txt");ofstream 阅读全文