我是一个完全的C++ noob,我在从我的方法返回数组时遇到了一些麻烦.我有一个头文件与以下方法声明:
virtual double[]
echoDoubleArray(double[] doubleArray, int arraySize) throw (RemoteException);
Run Code Online (Sandbox Code Playgroud)
这给了我以下错误:
../common/EchoService.h: At global scope:
../common/EchoService.h:25: error: expected unqualified-id before ‘[’ token
Run Code Online (Sandbox Code Playgroud)
返回数组的正确方法是什么?
| 归档时间: |
|
| 查看次数: |
4100 次 |
| 最近记录: |