第2章第3题
来源:互联网 发布:java架构师证 编辑:程序博客网 时间:2024/04/30 00:10
C++
#include<iostream>using namespace std;class Time{private:int hour;int minute;int sec;public:void fcin();void fcout();};//void Time::fcin();//void Time::fcout();int main(){Time t1;t1.fcin();t1.fcout();return 0;}void Time::fcin(){cin>>hour>>minute>>sec;}void Time::fcout(){cout<<"hour="<<hour<<endl;cout<<"minute="<<minute<<endl;cout<<"sec="<<sec<<endl;}
0 0
- 第2章第3题
- 第2章 第3题
- 第3章 第3题
- 第2章第2题
- 第2章 第2题
- 第3章 第4题
- 第3章 第5题
- 第3章 第7题
- 第3章 第8题
- 第3章 第9题
- 第3章 第10题
- 第3章 第11题
- 第3章 第12题
- 第4章 第3题
- 第5章 第3题
- 第5章第3题
- 第3章第37题
- 第7章第3题
- Socket编程
- 第2章第2题
- 蓝牙和进场通信
- Widget扩展
- 传感器
- 第2章第3题
- codeforces 525C Ilya and Sticks(简单贪心)
- CSS文本溢出省略号:text-overflow:ellipsis及firefox兼容详解
- 联系人存储
- 第2章第4题
- LeetCode(30) Substring with Concatenation of All Words (java)
- CSS省略号text-overflow超出溢出显示省略号
- LeetCode(31) Next Permutation
- 多任务