level 6
终结者默默
楼主
闲来无事,开始学习C++,第一个控制台,键盘输入及显示。
#include <QCoreApplication>
#include<QDebug>
#include<iostream>
using namespace std;
int main(int argc, char *argv[])
{
char bb[10]; //变量
qDebug()<<"hello";
cin>>bb; //键盘输入
cout<<bb<<endl; //显示输出
QCoreApplication a(argc, argv);//控制台
return a.exec();//按回车就结束
}
2017年12月07日 08点12分
1
#include <QCoreApplication>
#include<QDebug>
#include<iostream>
using namespace std;
int main(int argc, char *argv[])
{
char bb[10]; //变量
qDebug()<<"hello";
cin>>bb; //键盘输入
cout<<bb<<endl; //显示输出
QCoreApplication a(argc, argv);//控制台
return a.exec();//按回车就结束
}