欢迎您访问365答案网,请分享给你的朋友!
生活常识 学习资料

第一章编程题

时间:2023-05-29
1

#includeusing namespace std;int main(){ cout<<"name: nAddress: UESTC"; return 0;}

2

#includeusing namespace std;int convert(int n);int main(){ int n; cin >> n; cout<< n <<" long = "<

3

#includeusing namespace std;void mice(){ cout<<"Three blind micen";}void amination(){ cout<<"See how they runn";}int main(){ mice();mice(); amination();amination(); return 0;}

4

#includeusing namespace std;int main(){ cout<<"Enter your age: "; int age = 0; cin>>age; cout<<"Your age in months is "<<12*age<<".n"; return 0;}

5

#includeusing namespace std;float cconvertf(int c);int main(){ cout<<"Please enter a Celsius value: "; int Celsius = 0; cin>>Celsius; cout<

6

#includeusing namespace std;long long lconverta(float l);int main(){ cout<<"Enter the number of light years: "; float light = 0; cin>>light; cout< 7

#includeusing namespace std;void showtime(int h, int m);int main(){ showtime(9,28); return 0;}void showtime(int h, int m){ cout<<"Time: "<

Copyright © 2016-2020 www.365daan.com All Rights Reserved. 365答案网 版权所有 备案号:

部分内容来自互联网,版权归原作者所有,如有冒犯请联系我们,我们将在三个工作时内妥善处理。