是Dev-c++
1.文件->新建->工程->Console Application->c++工程->确定
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int a,b;
while(1)
{
cout<<"输入第一个数"<<endl;
cin>>a;
cout<<"输入第二个数"<<endl;
cin>>b;
cout<<"比较结果:"<<endl;
string rst=(a>=b?(a>b?"大于":"等于"):"小于");
cout<<a<<rst<<b<<endl;
}
system("PAUSE");
return EXIT_SUCCESS;
}
dev c++还是挺好用的,它的C++扩展库支持还是不错的。
希望对你有帮助!
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int a,b;
while(1)
{
cout<<"输入第一个数"<<endl;
cin>>a;
cout<<"输入第二个数"<<endl;
cin>>b;
cout<<"比较结果:"<<endl;
string rst=(a>=b?(a>b?"大于":"等于"):"小于");
cout<<a<<rst<<b<<endl;
}
system("PAUSE");
return EXIT_SUCCESS;
}
dev c++还是挺好用的,它的C++扩展库支持还是不错的。
希望对你有帮助!
温馨提示:答案为网友推荐,仅供参考
第1个回答 2011-07-08
DEV C++和编程序有啥关系。。C++是一门语言,DEV C++是个工具,你用记事本也能编比较数字大小,你是不是想问DEV C++的使用方法,那个用起来很讨厌的,用过一阵子就扔了
第2个回答 2011-07-08
三楼可以不用那么麻烦,如果你只是要编个小程序的话,直接点新建就可以了,不用新建工程
第3个回答 2011-07-08
买本书学。