為什么會這樣
1>c:\users\administrator\desktop\ewfw\ewfw\efew.cpp(10): error C2065: “x;”: 未聲明的標識符
1>c:\users\administrator\desktop\ewfw\ewfw\efew.cpp(10): error C2144: 語法錯誤:“int”的前面應有“;”
1>c:\users\administrator\desktop\ewfw\ewfw\efew.cpp(12): error C2146: 語法錯誤: 缺少“;”(在標識符“cout”的前面)
1>c:\users\administrator\desktop\ewfw\ewfw\efew.cpp(21): error C2065: “y”: 未聲明的標識符
1>c:\users\administrator\desktop\ewfw\ewfw\efew.cpp(23): error C2065: “booly”: 未聲明的標識符
1>c:\users\administrator\desktop\ewfw\ewfw\efew.cpp(25): error C2065: “y”: 未聲明的標識符
1>c:\users\administrator\desktop\ewfw\ewfw\efew.cpp(32): error C2065: “rutern:0”: 未聲明的標識符
1>
2017-08-13
行末要加; ? ? ? ? ?正確的是 return 0 ? ? ? ? 定義int類型的時候少了x y
2017-08-05
首先要使用的變量如x,y要先定義類型例 int x; bool ?y;注意觀察中間是有空格的。 然后每一語句結尾要加(;)分號。 return 0; 中間是沒有冒號的。
2017-08-03
c++中 語法要精確無誤 中文和英文的標點符號錯了 也會出現錯誤 導致結果出錯 ?一定要耐心 ?就可以避免了