勇敢追求自己,加油加油
分类: C/C++
2010-12-01 20:18:15
//***************************************
#include
using namespace std;
int main()//****************************************
#include
using namespace std;
int main()
{
double flag;
flag=true;
cout<<"flag= "<
}
//*******************************************
#include
using namespace std;
int main()
{
char ch1;
ch1='a';
cout<<"ch1= "<
ch2='a';
cout<<"ch2= "<
}
//*********************************************
#include
using namespace std;
int main()
{
double a;
a=3.14159265;
cout<<"a= "< return 0;
}
//****************************************
#include
using namespace std;
int main()
{
const double pi=3.141592635898;
const double radius=8.5;
cout<<"area of circle of radius:"<
return 0;
}
//****************************************
#include
using namespace std;
int main()
{
char ch;
ch='a';
int i;
i=(int)ch;
cout<<"ch= "<
}
//****************************************
#include
using namespace std;
int main()
{
char ch;
ch='a';
int i=ch;
cout<<"ch= "<
}
//***************************************
#include
using namespace std;
int main()
{
const double pi=3.141592635898;
double radius;
double area;
cout<<"please input radius:"<
area=pi*radius*radius;
cout<<"area of radius:"<< radius<<" is "< return 0;
}
//*********************************************
#include
using namespace std;
#define M -1
int main()
{
int x,y;
cout<<"请输入一个整数:"<
char c;
c="\41";
if(x
y=M*x+1;
}
else
y=(x+M)*x-3;
cout<<"x= "<
return 0;
}
//*****************************************