我下載了微軟的Samples Environments for Microsoft Chart Controls進行學習,
不過編譯時出現兩類錯誤,一類提示“應輸入;”,實際是代碼中的很多字符串中出現了亂碼,比如:
this.label1.Text = "The Y data爒alue爄s bound to the chart using OleDb and燼n Access database, and爐h" +
"e data is selected using a simple SQL query.?;
另一類錯誤是提示“常量中有換行符”,估計也應該是中英文字符集產生沖突了。比如:
this.label9.Text = "This sample shows how to assign data to a chart series using a DataView object.?;
我的軟件版本vs2012,請問在哪裡設置字符集啊???
this.label9.Text = "This sample shows how to assign data to a chart series using a DataView object.?";
this.label1.Text = "The Y data爒alue爄s bound to the chart using OleDb and燼n Access database, and爐h" + "e data is selected using a simple SQL query.?";
兩個語句後面都少個引號。