注册 登录
编程论坛 C语言论坛

错误 1 error C2059: 语法错误:“常量” c:\users\lg\desktop\dll\dll\dll.cpp 4 1 dll

ll150 发布于 2019-07-11 14:40, 2309 次点击
// dll.cpp : 定义 DLL 应用程序的导出函数。
//
#include "stdafx.h"
1 include "dll.h"
5 int add(int a, int b)
4; {
    5     return a + b;
    6 }
8 Point::Point();
10 {
         x = 0.0f;
    11     y = 0.0f;
    12 }
14 void Point::SetPoint(float a, float b);
15   {
    16     x = a;
    17     y = b;
    18 }
19 void Point::DisPlay();
20 {
    21     cout << x= << x << endl;
    22     cout << y= << y << endl;
    23 }

2 回复
#2
rjsp2019-07-11 16:39
你拷贝别人代码时,是不是连别人无用的行号都给拷过来了?
#3
ll1502019-07-12 19:28
回复 2楼 rjsp
多谢大佬的指点
1