这是我的原型:
int WordCount(wstring u, int uLCID);
这是在 cpp 文件中:
int WordCount(wstring u, int uLCID);
{
//accept anything for uLCID... meaning we don't process it
int b = 0;
int iCount=0;
for(;;)
{
int n = u.find(L" ",b);
if (n>-1)
{
iCount++;
}
else
{
break;
}
b=(n+1);
}
return iCount;
}
编译器告诉我:
A declaration was expected.
我究竟做错了什么?