|
//---------------------------------------------------------------------------
#include <vcl.h>
#include <iostream>
#include <conio.h>
#pragma hdrstop
using std::cout;
using std::cin;
using std::endl;
//---------------------------------------------------------------------------
class Point
{
int x;
int y;
public:
int GetX(){
return x;
}
int GetY(){
return y;
}
void SetX(int _x){
x = _x;
}
void SetY(int _y){
y = _y;
}
};
#pragma argsused
int main(int argc, char* argv[])
{
int x, y;
cout<<"좌표입력 : ";
cin>>x>>y;
Point p;
return 0;
}
//---------------------------------------------------------------------------
Point p;
여기서 세미콜론 안찍혔다고 에러가 납니다..
정상적인 소스인데 에러가 계속 나서 다른 컴파일러로 돌려보니 문제없이 잘돌아간다는데
유독 c++ builder에서만 에러나는거 같습니다.
원인이 뭘까요?
|