//编一程序,输入月份号,输出该月的英文月名。 }
//例如,输入“3”,则输出“March”,要求用指针数组处理。
#include
using namespace std;
int main()
{
char *p[12]={"January","February","March","April","May",
"June","July","August","September","October","November","December"};
int a;
cout<<"请输入月份号:\t";
cin>>a;
cout<
//定义一个类,类中包含元、角、分,要把这三个数变成一个等价的实数。
#include
using namespace std;
class money
{
private:
double yuan;
double jiao;
double fen;
public:
money(double y=0,double j=0,double f=0):yuan(y),jiao(j),fen(f){}
void change();
};
void money::change()
{
double a;
a=yuan+(0.1)*jiao+(0.01)*fen;
cout<}
int main()
{
money m(12,3,4);
m.change ()
}
题目太多了。。。。。