![](https://img-blog.csdnimg.cn/20190927151026427.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
----------输入与输出cin cout
寂寂寂寂寂蝶丶
这个作者很懒,什么都没留下…
展开
-
cout的格式化控制
cout对格式的控制 #include "stdafx.h" #include using namespace std; #include //set有关函数的头文件 int _tmain(int argc, _TCHAR* argv[]) { printf("%c%d%f\n\n",'a',100,123.45); printf("%5c%5d%6.2f\n", 'a', 100,原创 2017-11-30 11:15:05 · 457 阅读 · 0 评论 -
利用cout域宽实现数字时钟
利用cout域宽实现数字时钟 #include "stdafx.h" #include using namespace std; #include //set类函数需要的头文件 #include //Sleep函数所需要的头文件 int _tmain(int argc, _TCHAR* argv[]) { int hour = 0, min = 0, sec = 0; wh原创 2017-11-30 11:17:07 · 362 阅读 · 0 评论 -
oop思想实现数字时钟
oop思想实现数字时钟 #include "stdafx.h" #include using namespace std; #include #include #include //初始化的数据来自系统 以后的逻辑运算及显示自实现 class Clock { public: Clock() { //取得现在的时间 time_t t = time(NULL);转载 2017-12-02 09:59:10 · 229 阅读 · 0 评论