【发布时间】:2013-10-06 06:24:31
【问题描述】:
我是 C++ 编程新手,刚刚学习了数组。我正在尝试使用数组作为函数的参数,但程序无法编译。更具体地说,这是我的代码:
int main ()
{
int values [10],i;
cout<<"Enter 10 values: "<<endl;
for (i=0; i<10;i++)
{
cin>>values[i];
}
// This is the function to which I want to send the array.
getmaxmin (values, 10);
}
我收到一条错误消息:“函数 main 中未解析的外部符号”。这是什么意思?
谢谢!
【问题讨论】:
标签: arrays function unresolved-external