當前位置:首頁 » 編程軟體 » 編程提示

編程提示

發布時間: 2022-05-09 07:56:18

Ⅰ 怎樣看懂C語言編程中錯誤提示

看懂C語言中錯誤提示,你是為了方便調試編程中出現的BUG吧?
這樣的話首先把常出現的那幾個錯誤提示的英文復制到網路中去搜索並翻譯下,翻譯過來的話其實就是具體的問題,比如未定義啊等等,只不過英文你看不懂而已,其次點擊錯誤編譯器會自動幫你挑到出錯額附近,你這時候就要看看周圍的語句根據編譯器錯誤提示找問題了,主要看懂英文提示,其次網路下看下其他人相似的出錯原因,除了邏輯錯誤,基本翻來覆去就那幾種語法錯誤,多幾次就熟悉了,找起來就會很快。

Ⅱ keil編程提示undefined symbol

倒數第三行改為
TAB:
DB
01H,23H,45H,67H,89H,0ABH,0CDH,0EFH
即可
字母開頭的常數前面不加0的話,編譯器會認為是符號(symbol)
那幾個符號系統沒看到定義,所以報錯

未定義符號undefined
symbol

Ⅲ VB編程時提示:compile error : next without for 這是怎麼回事呢

一般而言應該是使用了For循環後沒有使用Next,
或者還有就是在For中使用了If語句沒有使用End
If而造成的提示錯誤
(這可能是VB的一個小小的缺陷)

Ⅳ 編程出來自動提示的詞後怎麼確定

1、編程出來自動提示的詞後把要打開的文件名及路徑寫入一個ini文件。
2、exe文件每次運行先讀取ini文件中的內容出來自動提示的詞。
3、按回車確定。

Ⅳ 編程提示變數未定義,到底是哪裡出錯了,懂得大神幫幫忙很急

VB6中Option Explicit要求使用的變數都必須先定義。
如果要消除「變數未定義」這個錯誤,有兩個方法。
方法一:去掉「Option Explicit」這行程序
方法二:使用basePnt變數前,為basePnt增加定義語句
Dim basePnt as Variant
或者定義為你需要的數據類型。

Ⅵ C語言編程時 都有什麼樣的錯誤提示

Ambiguous operators need parentheses
不明確的運算,需要用括弧括起來

Ambiguous symbol 'xxx'
不明確的符號

Argument list syntax error
參數表語法錯誤

Array bounds missing
丟失數組界限符

Array size too large
數組尺寸太大

Bad character in parameters
參數中有不適當的字元

Bad file name format in include directive
包含命令中文件名格式不正確

Bad ifdef directive syntax
編譯預處理ifdef有語法錯誤

Bad ifndef directive syntax
編譯預處理ifndef有語法錯誤

Bad undef directive syntax
編譯預處理undef有語法錯誤

Call of non-function
調用未定義的函數

Call to function with no prototype
調用函數時沒有函數的說明

Cannot modify a const object
不允許修改常量對象

Case outside of switch
Case 出現在 switch 之外

Case statement missing
漏掉了 Case 語句

Case syntax error
Case 語法錯誤

Case outside of switch
Case 出現在 switch 之外

Case statement missing
漏掉了 Case 語句

Case syntax error
Case 語法錯誤

Code has no effect
代碼不可能執行到

Compound statement missing }
復合語句漏掉了"}"

Conflicting type modifiers
不明確的類型說明符

Constant expression required
要求常量表達式

Constant out of range in comparison
在比較中常量超出范圍

Conversion may lose significant digits
轉換時會掉失有意義的數字

Conversion of near pointer not allowed
不允許轉換返指針

Could not find file 'xxx'
找不到xxx文件

Declaration missing ;
說明缺少分號";"

Declaration syntax error
說明中出現語法錯誤

Default outside of switch
default出現在switch語句之外

Define directive needs an identifier
定義編譯預處理需要標識符

Division by zero
用零作除數

Do statement must have while
do-while語句中缺少while部分

Enum syntax error
枚舉類型語法錯誤

Enumeration constant syntax error
枚舉常數語法錯誤

Error directive: xxx
錯誤的編譯預處理命令

Error writing output file
寫輸出文件錯誤

Expression syntax error
表達式語法錯誤

Extra parameter in call
調用時出現多餘錯誤

File name too long
文件名太長

Function call missing )
函數調用缺少右括弧

Function definition out of place
函數定義位置錯誤

Function should return a value
函數返回一個值

Goto statement missing label
goto 語句沒有標號

Hexadecimal or octal constant too large
16進制或8進制常數太大

Illegal character 'x'
非法字 x

Illegal initialization
非法的初始化

Illegal octal digit
非法的8進制數字

Illegal pointer subtraction
非法的指針相減

Illegal structure operation
非法的結構體操作

Illegal use of pointer
指針使用非法

Improper use of a typedef symbol
類型符號定義使用不恰當

In-line assembly not allowed
不允許使用行間匯編

Incompatible storage class
存儲類別不相容

Incompatible type conversion
不相容的類型轉換

Incorrect number format
錯誤的數據格式

Incorrect use of default
default使用不正確

Invalid indirection
無效的間接運算

Invalid pointer addition
指針相加無效

Irrecible expression tree
無法執行的表達式運算

Lvalur required
需要邏輯值(0或非0值)

Macro argument syntax error
宏參數語法錯誤

Macro expansion too long
宏的擴展以後太長

Mismatched number of parameters in definition
定義中參數個數不匹配

Misplaced break
此處不應出現break語句

Misplaced continue
此處不應出現continue語句

Misplaced decimal point
此處不應出現小數點

Misplaced elif directive
此處不應出現編譯預處理elif

Misplaced else
此處不應出現else

Misplaced else directive
此處不應出現編譯預處理 else

Misplaced endif directive
此處不應出現編譯預處理 endif

Must be addressable
必須是可以編址的

Must take address of memory location
必須存儲定位的地址

No declaration for function 'xxx'
沒有函數 xxx 的說明

No stack
缺少堆棧

No type information
沒有類型信息

Non-portable pointer assignment
不可移動的指針(地址常數)賦值

Non-portable pointer comparison
不可移動的指針(地址常數)比較

Non-portable pointer conversion
不可移動的指針(地址常數)轉換

Not a valid expression format type
不合法的表達式格式

Not an allowed type
不允許使用的類型

Numeric constant too large
數值常數太大

Out of memory
內存不夠用

Parameter 'xxx' is never used
參數 xxx 沒有用到

Pointer required on left side of ->
-> 符號的左邊必須是指針

Possible use of 'xxx' before definition
在定義之前就使用了 xxx(警告)

Possibly incorrect assignment
賦值可能不正確

Redefinition of 'xxx' is not identical
xxx 的兩次定義不一致

Register allocation failure
寄存器定址失敗

Repeat count needs an lvalue
重復計數需要邏輯值

Size of structure or array not known
結構體或數組的大小不確定

Statement missing ;
語句後缺少";"

Structure or union syntax error
結構體或聯合體語法錯誤

Structure size too large
結構體的尺寸太大

Subscripting missing ]
下標缺少右方括弧

Superfluous &with function or array
函數或數組中有多餘的"&"

Suspicious pointer conversion
可疑的指針轉換

Symbol limit exceeded
符號超限

Too few parameters in call
函數調用時的實參少於函數的參數

Too many error or warning messages
錯誤或警告信息太多

Too much auto memory in function
函數中用到的局部存儲太多

Too much global data defined in file
文件中全局數據太多

Too consecutive dots
兩個連續的句點

Type mismatch in parameter xxx
參數xxx類型不匹配

Type mismatch in redeclaration of 'xxx'
xxx 重定義時的類型不匹配

Unable to create output file 'xxx'
無法建立輸出文件 xxx

Unable to open include file 'xxx'
無法打開被包容的文件 xxx

Bit field too large
位欄位太長

Unable to open input file 'xxx'
無法打開輸入文件 xxx

Undefined label 'xxx'
沒有定義的標號 xxx

Undefined structure 'xxx'
沒有定義的結構 xxx

Undefined symbol 'xxx'
沒有定義的符號 xxx

Unexpected end of file in comment started on line xxx
從 xxx 行開始的註解尚未結束,文件不能結束

Unexpected end of file in conditional started on line xxx
從 xxx 行開始的條件語句尚未結束,文件不能結束

Unknown assembler instruction
未知的匯編結構

Unknown option
未知的操作

Unknown preprocessor directive: 'xxx'
不認識的預處理命令 xxx

Unreachable code
無法到達的代碼

Unterminated string or character constant
字元串缺少引號

User break
用戶強行中斷了程序

Void functions may not return a value
void 類型的函數不應有返回值

Wrong number off arguments
調用函數時參數數目錯

'xxx' not an argument
xxx 不是參數

'xxx' not part of structure
xxx 不是結構體的一部分

xxx statement missing (
xxx 語句缺少左括弧

xxx statement missing )
xxx 語句缺少右括弧

xxx statement missing ;
xxx 語句缺少分號

'xxx' declared but never used
說明了 xxx ,但沒有使用

'xxx' is assigned a value which is never used
給 xxx 賦了值,但未用過

Zero length structure
結構體的長度為零

Ⅶ c++編程提示function definition is not allowed here

不能在函數內部定義函數,你需要將swap1放到名字空間作用域。

1. 將swap1放到main外面,並且swap1實現有問題,函數應該是

voidswap1(float&x,float&y);

2. 將void main()刪除


最後程序應該是

#include<iostream>
usingnamespacestd;

voidswap1(float&x,float&y)
{
floattmp=x;
x=y;
y=tmp;
}

intmain(intargc,char**argv)
{
floatn,m;
cin>>n>>m;
swap1(n,m);
cout<<n<<","<<m<<endl;

return0;
}

mac上應該沒有pause命令,所以你還要刪除system(「pause」)

Ⅷ c編程提示P2沒定義怎麼解決

定義一下,比如int P2;
再次編譯就不會提示錯誤了。

Ⅸ 用VB編程時提示錯誤"溢出"是什麼意思

用VB編程時提示錯誤"溢出"是賦值超出目標(內存)的限制而產生的錯誤。

溢出(錯誤 6)

當賦值超出目標的限制時,就會發生溢出。此錯誤有以下的原因和解決方法:

  • 賦值、計算或數據類型的結果的轉換太大,以致於不能在變數類型所允許的范圍內表示出來。

    賦值給足夠表示值的范圍的類型的變數上。

  • 給屬性的賦值超過屬性能接受的最大值。

確保賦值適合屬性的范圍。

  • 試圖在計算中使用一個數字,並且該數字被強制為一個整數,但是結果超過了整數的范圍,例如:

DimxAsLong
x=2000*365'錯誤:溢出

要解決這個問題,請按如下方式鍵入該數字:

Dim x As Long

x=CLng(2000)*365

Ⅹ C語言編程提示 illegal else without matching if

第二個else位置放錯了,應該放在第一個if下面,不然就匹配不到相應的if,所以提示,不合法的else,無匹配if!

熱點內容
appleid為什麼連接伺服器出現問題 發布:2025-05-13 18:17:37 瀏覽:971
書翁怎麼配置 發布:2025-05-13 18:17:36 瀏覽:911
雲資料庫mongodb 發布:2025-05-13 18:16:12 瀏覽:774
A7編程 發布:2025-05-13 18:15:26 瀏覽:742
python視圖 發布:2025-05-13 18:14:01 瀏覽:759
win為什麼干不過安卓 發布:2025-05-13 18:12:27 瀏覽:586
文件夾只讀win8 發布:2025-05-13 18:11:41 瀏覽:272
xp安裝php 發布:2025-05-13 18:04:30 瀏覽:183
sqlserver介紹 發布:2025-05-13 17:58:00 瀏覽:4
雲閃付安卓版哪個版本好用 發布:2025-05-13 17:57:16 瀏覽:187