#include <QCoreApplication>
#include <QDebug>
#include<iostream>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
std::cout << "please enter two number" << std::endl;
int v1=0,v2=0;
std::cin >> v1 >> v2;
std::cout << "v1:\t" << v1 << "\tv2:\t" << v2 << std::endl;
return a.exec();
}
运行结果