// ex12.cpp: 主项目文件。
#include "stdafx.h"
using namespace System;
int main(array<System::String ^> ^args)
{
array<String^>^ hueiwen={L"Madam I\'m Adam.",L"Don\'t cry for me,Marge and Tina.",L"Lid off a daffodil.",L"Red lost sodier.",L"Ciger?Toss it in a can.it is so tragic."};
array<wchar_t>^ trim_fuhao={L'\'',L',',L'.',L'?',L' '};
for each(String^ huei in hueiwen)
{
String^ checking=huei->Trim(trim_fuhao);
String^ checks=checking->ToLower();
interior_ptr<wchar_t> check_start= &check[0];
interior_ptr<wchar_t> check_last= &check[check->Length-1];
for(;*check_start++==*check_last--;)
{
if(check_start>check_last)
break;
}
if(check_start>check_last)
Console::Write("{0} is huei wen",huei);
}
return 0;
}
一直出现下面错误
1>.\ex12.cpp(15) : error C2102: “&”要求左值
1>.\ex12.cpp(16) : error C2102: “&”要求左值
帮我看看为什么啊??????