当前位置:网站首页>Chapter 1 programming problems
Chapter 1 programming problems
2022-07-04 06:51:00 【Sophomores with a length of one and a half years】
1
#include<iostream>
using namespace std;
int main()
{
cout<<"name: \nAddress: UESTC";
return 0;
}2
#include<iostream>
using namespace std;
int convert(int n);
int main()
{
int n;
cin >> n;
cout<< n <<" long = "<<convert(n)<<endl;
return 0;
}
int convert(int n)
{
return 220 * n;
}3
#include<iostream>
using namespace std;
void mice()
{
cout<<"Three blind mice\n";
}
void amination()
{
cout<<"See how they run\n";
}
int main()
{
mice();mice();
amination();amination();
return 0;
}4
#include<iostream>
using 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
#include<iostream>
using namespace std;
float cconvertf(int c);
int main()
{
cout<<"Please enter a Celsius value: ";
int Celsius = 0;
cin>>Celsius;
cout<<Celsius<<" degrees Celsius is "<<cconvertf(Celsius)<<" degrees Fahrenheit.";
return 0;
}
float cconvertf(int c)
{
return (1.8 * c + 32.0);
}6
#include<iostream>
using namespace std;
long long lconverta(float l);
int main()
{
cout<<"Enter the number of light years: ";
float light = 0;
cin>>light;
cout<<light<<" light years = "<<lconverta(light)<<" astronomical units."<<endl;
return 0;
}
long long lconverta(float l)
{
return 63240 * l;
}7
#include<iostream>
using namespace std;
void showtime(int h, int m);
int main()
{
showtime(9,28);
return 0;
}
void showtime(int h, int m)
{
cout<<"Time: "<<h<<" : "<<m<<endl;
}边栏推荐
- 2022, peut - être la meilleure année économique de la prochaine décennie, avez - vous obtenu votre diplôme en 2022? Comment est - ce prévu après la remise des diplômes?
- [network data transmission] FPGA based development of 100M / Gigabit UDP packet sending and receiving system, PC to FPGA
- Tar source code analysis Part 7
- [Android reverse] function interception (CPU cache mechanism | CPU cache mechanism causes function interception failure)
- ABCD four sequential execution methods, extended application
- MySQL 45 lecture learning notes (VII) line lock
- Mysql 45讲学习笔记(十三)表数据删掉一半,表文件大小不变
- 7. Agency mode
- 由于dms升级为了新版,我之前的sql在老版本的dms中,这种情况下,如何找回我之前的sql呢?
- tars源码分析之8
猜你喜欢
![[problem record] 03 connect to MySQL database prompt: 1040 too many connections](/img/bb/4d8d202cf5c6e556bc860a734e5934.png)
[problem record] 03 connect to MySQL database prompt: 1040 too many connections

Centos8 install mysql 7 unable to start up

uniapp小程序分包

regular expression

【网络数据传输】基于FPGA的百兆网/兆网千UDP数据包收发系统开发,PC到FPGA
![[backpack DP] backpack problem](/img/7e/1ead6fd0ab61806ce971e1612b4ed6.jpg)
[backpack DP] backpack problem

MySQL 45 lecture learning notes (VII) line lock

C # symmetric encryption (AES encryption) ciphertext results generated each time, different ideas, code sharing

Selenium ide plug-in download, installation and use tutorial

Appium foundation - appium installation (II)
随机推荐
Tar source code analysis Part 2
期末周,我裂开
Deep understanding of redis -- a new type of bitmap / hyperloglgo / Geo
Selenium ide plug-in download, installation and use tutorial
《国民经济行业分类GB/T 4754—2017》官网下载地址
Bottom problem of figure
tars源码分析之7
tars源码分析之9
Overview of convolutional neural network structure optimization
ABCD four sequential execution methods, extended application
在已經知道錶格列勾選一個顯示一列
tars源码分析之5
2022年,或许是未来10年经济最好的一年,2022年你毕业了吗?毕业后是怎么计划的?
Redis interview question set
List of top ten professional skills required for data science work
tars源码分析之6
[problem record] 03 connect to MySQL database prompt: 1040 too many connections
R statistical mapping - random forest classification analysis and species abundance difference test combination diagram
thread priority
Google Chrome Portable Google Chrome browser portable version official website download method