当前位置:网站首页>在QT进行cin(全网最清晰教程)
在QT进行cin(全网最清晰教程)
2022-06-28 22:42:00 【夜星辰2022】
一、配置工作
配置.pro文件,在CONFIG 中添加 console,添加后注意进行“构建->执行qmake” 否则配置无效。
二、运行设置,勾选Run in terminal
三、mian.cpp中添加头文件
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double a,b;
cin >> a >> b;
cout << a << "\n";
cout << b << "\n";
cout << sqrt(b) << "\n";//求平方根
cout << "LZH";
return 0;
}
四、编译、运行即可。
边栏推荐
- 手机办理股票开户安全性高吗?
- Water brother's code
- 2022-06-28:以下golang代码输出什么?A:true;B:false;C:panic;D:编译失败。 package main import “fmt“ func main() {
- Oracle删除归档日志及添加定时任务
- 强大的开源API接口可视化管理平台-YApi
- The technology giants set up the meta universe standard forum to open up or build a besieged city?
- 计数排序的简单理解
- 时间序列预测系列文章总结(代码使用方法)
- 浅析搭建校园在线教学视频汇聚平台的必要性及解决方案
- Powerful open source API interface visual management platform Yapi
猜你喜欢

Zadig officially launched vs code plug-in, making local development more efficient

爱数SMART 2022峰会开启,分享数据战略与建设数据驱动型组织方法论

共探数字技术与信息安全,第四届中俄数字论坛成功举办

How to advance data analysis from 1 to 10?

What is the difference between WMS warehouse management system and ERP

What is low code development?

Linux Installation mysql5.7 (centos7.6) tutorial

超级工厂里的生意图鉴

How to make beautiful pictures

Production environment sonarqube installation
随机推荐
计数排序的简单理解
go语言插件平台的实现思路
水哥的代码
[kotlin] beautiful pop-up box, custom pop-up box (dialog box), extension function, chrysanthemum waiting bar, message prompt box
【深度学习】(3) Transformer 中的 Encoder 机制,附Pytorch完整代码
Post-00 cloud native Engineer: use Zadig to increase revenue and reduce expenditure for the R & D of Sichuang Technology (Guangzhou public transport)
LeCun预言AGI:大模型和强化学习都是斜道!我的世界模型才是新路
Lecun predicts AgI: big model and reinforcement learning are both ramps! My world model is the new way
JS array common methods
一文读懂,WMS仓储管理系统与ERP有什么区别
The new version of OpenAPI engine of Kingdee cloud dome is coming!
hiredis的代码示例
The Best of Many Worlds_ Dual Mirror Descent for Online Allocation Problems
IC Nansha|AMD高级副总裁、大中华区总裁潘晓明:制程、架构、平台优化突破计算边界
C#/VB. Net to convert PDF to excel
Online text filter less than specified length tool
After crossing, she said that the multiverse really exists
Zadig + SonarQube,为开发过程安全保驾
浅析搭建校园在线教学视频汇聚平台的必要性及解决方案
The Best of Many Worlds_ Dual Mirror Descent for Online Allocation Problems