- 博客(2)
- 收藏
- 关注
原创 考虑时区偏移量,以12小时制显示当前时间,C++
代码如下:#include<iostream>#include<ctime>using namespace std;//以12小时制显示当前时间int main (){ cout << "Enter the time zone offset to GMT : "; float offset; cin >> offs...
2019-09-04 14:30:37
345
原创 C++“游戏”:随机扑克牌,花色和数字的选择(书本习题)
#include#include#include#includeusing namespace std;//抽取卡牌,输出花色,排名。int main(){srand(time(0));int rankNumber= rand() % 13;int colorNumber = rand() % 4;string color, rank;switch(rankNumber)...
2019-09-03 20:10:21
2261
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人