跳至正文
丰帅的博客
——用文字记录生活的点滴
首页
技术
c++
golang
python
vim
linux
perl
java
网络
生活
游戏
登陆
←
打印树
二进制显示整数
→
enum类型也可重载它的运算符
发表于
2023年8月18日
由
fs
#include
<
iostream.h
>
enum
Day
{sun,mon,tue,wed,thu,fri,sat}
Day
&
operator
++
(Day
&
d)
{
return
d
=
(sat
==
d)
?
sun:Day(d
+
1
}
void
main()
{
Day today
=
thu;
Day tomo
=++
today;
cout
<<
tomo;
}
此条目发表在
未分类
分类目录。将
固定链接
加入收藏夹。
←
打印树
二进制显示整数
→
0
0
投票数
文章评分
订阅评论
登录
提醒
此页的新后续评论
对我的评论的新回复
Label
{}
[+]
名字*
邮箱*
网站
Label
{}
[+]
名字*
邮箱*
网站
0
评论
最旧
最新
最多投票
要找的内容
搜索
近期文章
chatgpt网站登录后报Oops!, something went wrong
kex_exchange_identification: Connection closed by remote host 解决办法
openwrt[解决]git: ‘remote-https’ is not a git command
解决transmission下载慢的问题
解决openwrt web打开时强制切换到https的问题
近期评论
您尚未收到任何评论。
2023 年 8 月
一
二
三
四
五
六
日
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
9 月 »
分类目录
c++
docker
golang
java
linux
perl
vim
技术
未分类
杂项
游戏
生活
友情链接:
暂无
wpDiscuz
Insert