当前位置:网站首页>在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;
}
四、编译、运行即可。
边栏推荐
- WMS仓库管理系统模块之波次拣货
- Mono's execution process
- In order to control the risks, how to choose a franchise company?
- How to use the style label of jade template- How to use the style tag with jade templates?
- FANUC机器人_KAREL编程入门(2)_通用IO信号的使用方法
- Windows mysql5.7 enable binlog log
- Research Report on workers: middle-aged people account for the highest proportion of naked words
- The Best of Many Worlds_ Dual Mirror Descent for Online Allocation Problems
- 【网关开发】ngx嵌套lua时处理CIDR表示的IP地址段
- Heavyweight! CDA certification test preparation Q & A Online
猜你喜欢

Zadig + cave Iast: let safety dissolve in continuous delivery

Deep virtual memory (VM)

Business atlas in super factory

Progress of dbnn experiment
Oracle set password complexity and timeout exit function

PyTorch搭建Transformer实现多变量多步长时间序列预测(负荷预测)

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

Realization of 2D code generation in micro build low code

Lecun predicts AgI: big model and reinforcement learning are both ramps! My world model is the new way

稳!上千微服务如何快速接入 Zadig(Helm Chart 篇)
随机推荐
Heavyweight! CDA certification test preparation Q & A Online
数据可视化中柱状图的实例应用,让乘风破浪公演结果一目了然
Zadig 面向開發者的自測聯調子環境技術方案詳解
Zadig + cave Iast: let safety dissolve in continuous delivery
Google Earth Engine(GEE)——利用sentinel-2数据进行农作物提取分析
Basic knowledge diagram of K-line Diagram -- meaning of single K-line
Qt5.15中qsrand,srand随机数生成函数已弃用问题
Steady! How thousands of micro services can quickly access Zadig (helm chart)
宜明昂科在港交所递表:2021年亏损翻倍,过往融资额存在夸大情形
Can we still enter the "pit" data analysis now? Look at the hot jobs of data analysis in 2022!
Detailed explanation of Zadig's self-test and joint debugging sub environment for developers
Description détaillée du schéma technique du sous - environnement syntonique auto - test de Zadig pour les développeurs
Online linear programming: Dual convergence, new algorithms, and regret bounds
Multiomics single cell data integration and regulatory reasoning based on graph linked embedding
Google Earth engine (GEE) -- crop extraction and analysis using sentinel-2 data
Implementation of go language plug-in platform
[gateway development] handle the IP address segment represented by CIDR when NGX nested Lua
Linux Installation mysql5.7 (centos7.6) tutorial
A password error occurred when docker downloaded the MySQL image to create a database link
oracle设置密码复杂度及设置超时退出的功能