当前位置:网站首页>Day (0~6) represents the starting position of the first day of each month, stop represents the number of days of each month, and there are two blank spaces between each day. Input different days and s
Day (0~6) represents the starting position of the first day of each month, stop represents the number of days of each month, and there are two blank spaces between each day. Input different days and s
2022-07-24 07:01:00 【Mo xiaodai ^o^】
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int day, stop;
int date = 1;
cout << " Enter the location of the first day of each month :";
cin >> day;
cout << " Enter the number of days per month :";
cin >> stop;
cout << " Sun Mon Tue Wed Thu Fri Sat\n";
if (day != 0)
cout << setw(day * 5) << " ";
while (date <= stop)
{
cout << setw(5) << date;
date++;
if ((date + day) % 7 == 1)
cout << "\n";
}
return 0;
}边栏推荐
- Don't care too much about others' eyes, it will erase your glory
- Redis special data type hyperloglog
- xxl执行节点错误日志刷屏
- tensorflow scatter_nd函数
- Sparksql core usage, 220724,
- [audio decoding chip] Application of vs1503 audio decoding chip
- [learning notes] see the difference between a+++a and a+a++ from the compilation
- STM32基于hal库的adc以DMA的多通道采样以及所遇问题解决
- UE4/5 无法打开文件“xxx.generated.h”(Cannot open file xxx.generated.h)的解决方法总结
- MGR_mysqlsh_keepalive高可用架构部署文档
猜你喜欢
![[lvgl layout] flexible layout](/img/7b/db932e25b13a0b494e7920075cf1e2.png)
[lvgl layout] flexible layout

记录PHPSerializer工具类反序列化遇到的坑
![[wechat applet] understand conditional rendering, list rendering and wxss template style](/img/97/cb78efcbcfe1a598da87751c482a98.png)
[wechat applet] understand conditional rendering, list rendering and wxss template style
![[USB voltmeter and ammeter] Based on stm32f103c8t6 for Arduino](/img/5f/40e4e144a628ef1aa38ab536b40366.png)
[USB voltmeter and ammeter] Based on stm32f103c8t6 for Arduino

XXL execute node error log swiping

Introduction to pyqt5 - student management system
![[lvgl] [stage summary 1]](/img/39/c6e96ae7971a2350769ef5b5950f8f.png)
[lvgl] [stage summary 1]

OWASP TOP10 penetration test
![[waveform / signal generator] Based on stc1524k32s4 for C on Keil](/img/62/8bf96bf7617cc9b2682b5a32711878.png)
[waveform / signal generator] Based on stc1524k32s4 for C on Keil

Neural network superparameter adjustment (based on ray package)
随机推荐
xavier_normal_ 初始化测试
(笔记整理未完成)【图论:求单源最短路径】
An AI plays 41 games, and the comprehensive performance score of Google's latest multi game decision transformer is twice that of dqn
Camera Hal OEM module ---- CMR_ grab.c
UE4/5 无法打开文件“xxx.generated.h”(Cannot open file xxx.generated.h)的解决方法总结
安装snownlp包过程出现Requirement already satisfied:及Read timed out.问题解决方法
三级分类/菜单的查询——树形结构
Redis入门
10分钟就能写出来的——25~30K的国外企业招聘面试考题,这不是轻轻松松吗~
[learning notes] what happens when the URL is input into the page presentation?
Redis distributed cache learning notes
(static, dynamic, file) three versions of address book
【学习笔记】从汇编看 a+++a与 a+a++的区别
PostgreSQL date handler usage
你是谁由你自己决定!
【学习笔记】网页出现白屏可能的原因与优化方法
[wechat applet] understand conditional rendering, list rendering and wxss template style
Don't care too much about what others think of you
After grouping, return to the last record group in each group_ Use of concat
OSS authorizes a single bucket permission