当前位置:网站首页>在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;
}
四、编译、运行即可。
边栏推荐
- After crossing, she said that the multiverse really exists
- VR全景制作的前景如何?
- Qt5.15中qsrand,srand随机数生成函数已弃用问题
- Yiming Anke submitted a statement to the Hong Kong Stock Exchange: the loss doubled in 2021, and the past financing amount was exaggerated
- 00 後雲原生工程師:用 Zadig 為思創科技(廣州公交)研發開源節流
- Is it safe to open a stock account online?
- Redis+aop+ user defined annotation to realize flow restriction
- Gross vs60 billion. Is food safety the biggest obstacle to Weilong's listing?
- Basic knowledge diagram of K-line Diagram -- meaning of single K-line
- Wechat red envelope cover making tutorial and use guide with link jump
猜你喜欢

leetCode-栈类型详解

FANUC机器人_KAREL编程入门(2)_通用IO信号的使用方法

Get to know Alibaba cloud (Cloud Computing) - development history, technical architecture, region and availability zone!

The example application of histogram in data visualization makes the public performance results clear at a glance

超级工厂里的生意图鉴

Windows mysql5.7 enable binlog log

k线图基础知识图解——单根K线的含义

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

windows mysql5.7 开启binlog日志

Ingénieur natif du nuage après 00: utiliser Zadig pour développer des sources ouvertes et des économies d'énergie pour la technologie innovante (bus de Guangzhou)
随机推荐
Zadig + SonarQube,为开发过程安全保驾
Post-00 cloud native Engineer: use Zadig to increase revenue and reduce expenditure for the R & D of Sichuang Technology (Guangzhou public transport)
2022-06-28:以下golang代码输出什么?A:true;B:false;C:panic;D:编译失败。 package main import “fmt“ func main() {
Google Earth engine (GEE) -- crop extraction and analysis using sentinel-2 data
Ingénieur natif du nuage après 00: utiliser Zadig pour développer des sources ouvertes et des économies d'énergie pour la technologie innovante (bus de Guangzhou)
穿越过后,她说多元宇宙真的存在
Implementation of go language plug-in platform
Common tool classes and Commons class libraries
DBNN实验进展
How to use the style label of jade template- How to use the style tag with jade templates?
oracle设置密码复杂度及设置超时退出的功能
Can we still enter the "pit" data analysis now? Look at the hot jobs of data analysis in 2022!
Redis+aop+ user defined annotation to realize flow restriction
计数排序的简单理解
长投学堂帮忙开证券账户是安全靠谱的吗?个人如何开
How to make beautiful pictures
Code example of hiredis
Powerful open source API interface visual management platform Yapi
题解 洛谷P1762 偶数/6.21校内考试T2
go语言插件平台的实现思路