我在做:
html = new WebClient().DownloadString(
"http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=" + biocompany);
Run Code Online (Sandbox Code Playgroud)
我收到错误:
Error 1 Operator '&' cannot be applied to operands of type 'string' and 'string'
但我甚至没有使用&!
请帮忙!
您发布的代码已成功执行.你的问题在别处.
您获得的编译器错误将准确指出哪条线路出现故障,并且它不是您发布的线路.想要开始吧.
确保你的报价正确无误.例如,以下行将导致您报告的错误:
html = new WebClient().DownloadString(
"http://www.google.com/search?sourceid=chrome"&"ie=UTF-8&q=" + biocompany);
Run Code Online (Sandbox Code Playgroud)