| 5 | 1/1 | 返回列表 |
| 查看: 1658 | 回復(fù): 8 | ||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | ||
易沁樺木蟲 (小有名氣)
|
[求助]
VC++下調(diào)試C程序,出現(xiàn)很多語法錯(cuò)誤
|
|
|
用純的C語言編了個(gè)程序(不會(huì)C++),在VC++中打開后,點(diǎn)擊Build—Compile后,出現(xiàn)以下:(surface growth.c前面的E:\VC Project\Crystal Growth\都省略了) -----Configuration: surface growth - Win32 Debug-------------------- Compiling... surface growth.c surface growth.c(17) : error C2059: syntax error : '=' surface growth.c(17) : error C2143: syntax error : missing ';' before ')' surface growth.c(19) : warning C4552: '<=' : operator has no effect; expected operator with side-effect surface growth.c(19) : error C2143: syntax error : missing ';' before ')' surface growth.c(23) : error C2059: syntax error : 'for' surface growth.c(23) : error C2143: syntax error : missing '{' before '<=' surface growth.c(23) : error C2059: syntax error : '<=' surface growth.c(23) : error C2143: syntax error : missing '{' before '++' surface growth.c(23) : error C2059: syntax error : '++' surface growth.c(23) : error C2059: syntax error : ')' surface growth.c(24) : error C2143: syntax error : missing '{' before '<=' surface growth.c(24) : error C2059: syntax error : '<=' surface growth.c(24) : error C2143: syntax error : missing '{' before '++' surface growth.c(24) : error C2059: syntax error : '++' surface growth.c(24) : error C2059: syntax error : ')' surface growth.c(26) : error C2059: syntax error : 'for' surface growth.c(26) : error C2143: syntax error : missing '{' before '<=' surface growth.c(26) : error C2059: syntax error : '<=' surface growth.c(26) : error C2143: syntax error : missing '{' before '++' surface growth.c(26) : error C2059: syntax error : '++' surface growth.c(26) : error C2059: syntax error : ')' surface growth.c(27) : error C2143: syntax error : missing '{' before '<=' surface growth.c(27) : error C2059: syntax error : '<=' surface growth.c(27) : error C2143: syntax error : missing '{' before '++' surface growth.c(27) : error C2059: syntax error : '++' surface growth.c(27) : error C2059: syntax error : ')' surface growth.c(36) : error C2059: syntax error : 'for' surface growth.c(36) : error C2143: syntax error : missing '{' before '<=' surface growth.c(36) : error C2059: syntax error : '<=' surface growth.c(36) : error C2143: syntax error : missing '{' before '++' surface growth.c(36) : error C2059: syntax error : '++' surface growth.c(36) : error C2059: syntax error : ')' surface growth.c(45) : error C2059: syntax error : 'for' surface growth.c(45) : error C2143: syntax error : missing '{' before '<' surface growth.c(45) : error C2059: syntax error : '<' surface growth.c(45) : error C2059: syntax error : ')' surface growth.c(46) : error C2449: found '{' at file scope (missing function header?) surface growth.c(149) : error C2059: syntax error : '}' surface growth.c(151) : error C2143: syntax error : missing ')' before 'string' surface growth.c(151) : error C2143: syntax error : missing '{' before 'string' surface growth.c(151) : error C2059: syntax error : ' surface growth.c(151) : error C2059: syntax error : ')' surface growth.c(152) : error C2059: syntax error : 'for' surface growth.c(152) : error C2143: syntax error : missing '{' before '<=' surface growth.c(152) : error C2059: syntax error : '<=' surface growth.c(152) : error C2143: syntax error : missing '{' before '++' surface growth.c(152) : error C2059: syntax error : '++' surface growth.c(152) : error C2059: syntax error : ')' surface growth.c(158) : error C2059: syntax error : '}' 執(zhí)行 cl.exe 時(shí)出錯(cuò). surface growth.obj - 1 error(s), 0 warning(s) —————————————————————— 可是我覺得語法沒有錯(cuò),比如最開始兩句,對(duì)應(yīng)第17行的句子是: for (x = 1; x < =N; x++),“=”號(hào)怎么有錯(cuò)呢,)前面也不用加“;”了啊 而且最后一句顯示只有一個(gè)錯(cuò)誤,到底是哪兒呢? 求大俠解答。若解決了問題,還可以追加金幣,謝謝!! |

木蟲 (小有名氣)

至尊木蟲 (著名寫手)
驃騎將軍

木蟲 (著名寫手)

木蟲 (小有名氣)

| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研]
材料調(diào)劑
5+3
|
想要一壺桃花水 2026-03-25 | 7/350 |
|
|---|---|---|---|---|
|
[考研] 299求調(diào)劑 +7 | 某某某某位 2026-03-21 | 8/400 |
|
|
[考研] 化學(xué)調(diào)劑一志愿上海交通大學(xué)336分-本科上海211 +3 | 小魚愛有機(jī) 2026-03-25 | 3/150 |
|
|
[考研] 0854AI CV方向招收調(diào)劑 +4 | 章小魚567 2026-03-23 | 4/200 |
|
|
[考研] 347求調(diào)劑 +4 | L when 2026-03-25 | 4/200 |
|
|
[考研] 289求調(diào)劑 +9 | 懷瑾握瑜l 2026-03-20 | 9/450 |
|
|
[考研] 299求調(diào)劑 +7 | shxchem 2026-03-20 | 9/450 |
|
|
[考研] 化工專碩求調(diào)劑 +3 | question挽風(fēng) 2026-03-24 | 3/150 |
|
|
[考研] 材料專碩331求調(diào)劑 +4 | 鮮當(dāng)牛 2026-03-24 | 4/200 |
|
|
[考研] 一志愿華東理工大學(xué)081700,初試分?jǐn)?shù)271 +5 | kotoko_ik 2026-03-23 | 6/300 |
|
|
[考博] 26申博自薦 +3 | whh869393 2026-03-24 | 3/150 |
|
|
[考研] 335求調(diào)劑 +4 | yuyu宇 2026-03-23 | 5/250 |
|
|
[考研] 一志愿南大,0703化學(xué),分?jǐn)?shù)336,求調(diào)劑 +3 | 收到VS 2026-03-21 | 3/150 |
|
|
[考研] 求助 +5 | 夢(mèng)里的無言 2026-03-21 | 6/300 |
|
|
[考研] 一志愿重慶大學(xué)085700資源與環(huán)境總分308求調(diào)劑 +7 | 墨墨漠 2026-03-20 | 7/350 |
|
|
[考研] 材料與化工(0856)304求 B區(qū) 調(diào)劑 +3 | 邱gl 2026-03-21 | 3/150 |
|
|
[考研] 330求調(diào)劑0854 +3 | assdll 2026-03-21 | 3/150 |
|
|
[考研] 一志愿武漢理工材料工程專碩調(diào)劑 +9 | Doleres 2026-03-19 | 9/450 |
|
|
[考研] 求調(diào)劑一志愿南京航空航天大學(xué)289分 +3 | @taotao 2026-03-19 | 3/150 |
|
|
[考研] 一志愿 南京航空航天大學(xué)大學(xué) ,080500材料科學(xué)與工程學(xué)碩 +5 | @taotao 2026-03-20 | 5/250 |
|