初学c++,遇到了问题,高手帮忙诊断一下啊!

来源:百度知道 编辑:UC知道 时间:2024/09/23 06:01:29
最近遇到一个程序,加入了自己的一点东西之后怎么就不能运行了,各位高手帮忙看看,谢谢啊!程序如下
//point.h
#include<iostream>
using namespace std;
class point
{
public:
point(int xx=0,int yy=0) {x=xx;y=yy;countp++;}
point(point &p);
~point(){countp--;}
int getx(){return x;}
int gety(){return y;}
static void getc() {cout<<"object id="<<countp<<endl;}

private:
int x,y;
static int countp;
};
//point.cpp
#include"point.h"
int point::countp=0;
point::point(point &q)
{
x=q.x;
y=q.y;
countp++;
}
//juli.cpp
#include"point.h"
#include <cmath>
int main()
{
int c,d;
float g;
point a(4,5);
cout<<"point a,"<<a.getx()<<","<<a.gety();
a.getc();
point b(56,5);
cout<<"point b,"<<b.getx()<<","<<b.get

SQRT()未提供SQRT(int)形式,需要强制转换;
sqrt((float)(c*c + d*d));

这个出错信息怎么全是中文的啊,看也看不懂.
这种专业软件最好还是英文版最好.