文档库 最新最全的文档下载
当前位置:文档库 › TC2.0错误提示(C目信息)

TC2.0错误提示(C目信息)

TC2.0错误提示(C目信息)
TC2.0错误提示(C目信息)

TC2.0错误提示(C目信息)

Call of non-function

调用非函数

Call of clipper procedure of function

调用的函数没有原型

Call of function 'xxxx' with no prototype

调用的函数'xxx' 没有原型

Can't cast objects as "far"

"far" 关键字不能用在类型强制转换中

Can't cast objects as "near"

"near" 关键字不能用在类型强制转换中

Cannot find file

无法找到该文件

Cannot generate COM file :

data below initial CS:IP defined

无法生成COM 文件,初始CS:IP已定义过

Cannot generate COM file :

invalid initial entry piont address

无法生成COM 文件,初始入口点地址无效

Cannot generate COM file :

program exceeds 64K

无法生成COM 文件,程序超过了64K

Cannot generate COM file :

segment-relocatable items present

无法生成COM 文件

Cannot generate COM file :

stack segment present

无法生成COM 文件

Cannot grow LE/LIDATA record buffer

不能建立LE/LIDATA 记录缓冲区

Cannot have mulitiple paths for implicit rule

在隐式规则中,不能有多个路径

Cannot have path list for target

不能有目标路径表

Cannot initialize indetiifer skip to

这里无法初始化一个类成员

Cannot modfiy a const object

不能修改一个const目标

Cannot overload /main/

main 主函数不能重载

Cannot use reserved DOS device name for file

不能使用保留的DOS 设备名

Cannot use tiny or luge memory model with windows

不能使用小或大的内存模式窗口

Cannot write GRPOEF list,extended dictionary aborted 不能写GRPOEF 列表,扩展字典中断

Case bypasses initialization of a local variable

跳过局部变量初始化是非法的

Case expression not constant

case 语句的表达式不是常量

Case expression not integral

case 语句的表达式不是整型

Case of "viiod" term to non-viod

viod类型不能被强制转换成任何其他类型

Case outside of switch

case 或case 语句在switch 语句外面

Case statement missing ':'

case 语句缺少':'

Case syntax error

case 语法错

Case to array type is illegal

不能被强制转换为数组类型

Case to function returning... is illegal

不能被强制转换为函数类型

Case value "n" already used

case 情况值n 已使用过

Character already used

指定的关键字表标识符已经在使用

Character constant must be one or two character long 字符常量须是一个或两个字符长

Character constant too long

字符常量太长

Character 'K' and 'k' cannot be used

不能使用字符'K' 和'k'

Circular dependency exists in makefile

在makefile中已存在循环依赖

Class may not contain pure function

(class) 类不可以包含纯函数

Class member declared outside its class

(case) 类成员函数不能在类说明里说明

Code has no effect

操作符代码无用

Colon expected ':'

需要':'

Command argument too long

命令参数太多

Command syntax error

命令语法错误

Compiler could not generate Copy constructor for Class 编译器不能生成所需的拷贝构造函数

Compiler could not generate Default constructor for Class 编译器不能生成所需的缺省构造函数

Compiler could not generate oprator = for Class

编译器不能生成所需的赋值运算符

Compiler error (assertion) :

filename,line n source = filename

编译程序错误(一致性)文件名,文件,行号,源=文件名Compiler error (code engenration)

编译程序错误(代码不能生成)

Compiler limit too many actual parameters for macro

编译程序限制: 宏的实参数太多

Compiler limits : Initializers too deeply nested

编译程序限制: 初始值镶嵌太深

Compiler limit : struct / union nesting

编译程序限制: 结构/联和嵌套

Compiler table limit exceeded

编译器内部表之一溢出

Compound statement missing }

编译器一直到文件结束也没找到}

Compound statement missing '}'

复和语句缺少}

Condition is always false

Condition is always true

条件总是假或条件总是真

Conflicting type modfilers

类型修饰符相冲突

Const expression required

数组长度须用常量定义

Constant expression is not integral

此处需要一个整数型常量表达式

Constant expression required

要求常量表达式

Constant is long

常量太长

Constant member in class without constructors

类的常量成员没有包含用户的构造函数

Constant member is not initialized

常量成员没有被出始化

Constant out of range in comparision

在比较中常数超界

常量表达式超出了比较的范围

Constant variable must be initialized

可变常数须出始化

Constructor cannot be declared const or volatile

不能把构造函数说明为const或volatile

Constructor cannot have a return type specification

构造函数不能有一个返回类型说明

Constructor is not a base class of class

constructor 不是class 的一个基类

Context member already used in \[MAP]\ section

上下文号在\[MAP]\ 节中被使用

Context string name already assigned an alias

指定的上下文串已被加了别名

Context string already used in file

上下文串在文件内已使用过

Context string cannot be used alias

别名字符串不能使用上下文件字符串

Context string defined for index topic is unresolved

为索引标题定义的上下文串是不可分解的

Context string identifier already defined in topic

of

上下文串标识符在文件主题中已被定义过

Context sting in MAP section not defined in any topic

主题内定义MAP 节的上下文串

Context string missing

丢失了上下文串

Conversion may lose significant digits

转换操作可能丢失了有效值

Conversion operator canot have a reutrn type specification 转换运算符不能有返回类型说明

Conversion to type will fail for members of virtual base

没有成员指针的类包含虚拟基,转换为另一类型将失败

Could not allocate memory for per module data

不能为每一个模块数据分配内存

Could not create list file

不能创建列表文件

Could not find a match for argument(s)

不能找到与提供的参数相匹配的函数

Could not fined 'xxx.xxx'

不能找到文件'xxx.xxx'

Could not found file

不能找到命令行里给出的文件

Could not write executable

不能写输出文件

Couldn't get LE/LIDTA record buffer

不能找到LE/LIDTA 记录缓冲区

Coversion may lose significance digit bit

转换可能丢失有效数据位

Current font range overlaps previosly defined range 当前字体范围覆盖了前面定义过的范围

c语言编译常见错误列表

1."c" not an argument in function sum 该标识符不是函数的参数 2.array bounds missing ] in function main 缺少数组界限符"]" 3.Array size too large in function main 数组规模太大 4.bad file name format in include directive 在包含指令中的文件名格式不正确. 5.Call of non-function in function main 调用未经过定义的函数. 6.cannot modify a const object in function main 对常量不能进行修改. 7.character constant too long in function main 字符常量太大 8.constant expression required in funtion main 数组定义的时候,数组大小要求是常数 https://www.wendangku.net/doc/6614274681.html,pound statment missing } in function main 复合语句漏掉符号"{" 10.declaration syntax error in function main 宣告语法错误 11.expression syntax in function main 表达式语法错误 12. extra parameter in call to sum in function 调用函数时使用了过多的参数 13.illegal use of floating point in function main 浮点数的不合法使用 14.illegal pionter subtraction in function main 不合法的指针相减 15.invalid pointer addition in function main 无效的指针相加 16.out of memory in function main 内存不足 17.statement missing ; in function main 语句后面漏掉分号. 警告报错

启动过程错误提示信息解决办法

启动过程错误提示信息解决办法 制作了根文件系统,在启动之后停在这里了: NET: Registered protocol family 1 NET: Registered protocol family 17 VFS: Mounted root (cramfs filesystem) readonly. Freeing init memory: 116K Failed to execute /linuxrc. Attempting defaults... Kernel panic - not syncing: No init found. Try passing init= option to kernel. 我内核boot option里面的命令行设置为:noitinrd root=/dev/mtdblock2 rootfstype=cramfs console=ttySAC0,115200 init=/linurc mem=64M 这类问题很常见,先总体介绍一下解决思路。 能出现让人激动的的控制台,那么系统移植已经接近完成;但是不少人在最后一步出现问题。 要点如下: 1. 在正确的位置烧写正确格式的文件系统映象: 2. 内核支持这种文件系统格式 3. 文件系统的内容要完备 上面说得简单,一个个介绍。 1. 在正确的位置烧写正确的文件系统映象: (a). 正确的位置 嵌入式开发中,常通过bootloader烧写文件系统映象,假设写在flash的地址A处。 内核启动时,显然要从地址A处读取文件系统,内核是怎么知道的呢?通过命令行参数,比如“root=/dev/mtdblock2 ”。/dev/mtdblock2 又是怎么和地址A 对应上的呢?内核将flash划分为 几个分区,这是在代码中固定的。/dev/mtdblock2是第3个分区,它的开始地址必须是A。 在内核启动时,可以看到这些分区的开始地址、结束地址,比如内核启动时会有类似下面的信息: Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit": 0x00000000-0x00030000 : "bootloader" 0x00050000-0x00250000 : "kernel" 0x00250000-0x03ffc000 : "root" 对于上面的内核信息,/dev/mtdblock2对应root分区,开始地址为0x00250000,使用bootloader写文件系统映象时,烧写的地址必须是0x00250000 所以,要保证3点: ① bootloader烧到地址A, ② 地址A是内核某个分区的开始地址, ③ 命令行参数“root=/dev/mtdblockXXX ”是这个分区 (b). 正确格式的文件系统映象 不同的bootloader支持的烧写的文件系统映象格式不同、使用的烧写命令也可能不同,请注意这点。

C语言常见复习题(选择填空)及参考答案

C语言常见复习题及参考答案 一、选择题 1.下述标识符中,()是合法的用户标识符。 A.A#C B.getch C.void D.ab* 2.在C语言中,字符型数据在内存中是以()形式存放的。 A.原码 B.BCD码 C.反码 D.ASCII码 3.以下选项中不合法的用户标识符是()。 A.abc.c B.file C.Main D.PRONTF 4.以下选项中不合法的用户标识符是()。 A.123 B.printf C.Anbsp; D.Dim 5.可以在C语言程序中用做用户标识符的一组标识符是()。 A.void B.as-b3 C.for D.2c define -123 -abc Do WORD If cas SIG 6.在以下各组标识符中,合法的用户标识符是(1)、(2)、(3)。 (1)A.001 B.table_1 C.0_t D.k% Int t*.1 W10 point (2)A.Fast_ B.void C.pbl D. Fast+Big abs fabs beep (3)A.xy_ B.longdouble C.*p D.CHAR 变量1 signed history Float 7.()是构成C语言的基本单位。 A.函数 B.过程 C.子程序 D.子例程 8.若有说明:char s1='\067';char s2="1";char s3='1';则s1中(1),s2中(2),s3中(3)。

(1).A.包含3个字符 B.包含2个字符 C.包含1个字符 D.无定值,说明不合法 (2).A.包含1个字符 B.包含2个字符 C.包含3个字符 D.无定值,说明不合法 (3).A.包含1个字符 B.包含2个字符 C.包含3个字符 D.无定值,说明不合法 9.若x为int型变量,则执行以下语句后,x的值为 x=6; x+=x-=x*x A.36 B.-60 C.60 D.-24 10.在C语言中,char 型数据在内存中是以()形式存储的。 A.原码 B.补码 C.ASCII码 D.反码 11.以下运算符中优先级最低的算符为(),优先级最高的为()。 A.&& B.& C.|= D.|| E.?: F.!= 12.若有运算符>、*=、<<、%、sizeof,则它们按优先级(由低至高)的正确排列顺序为 A.*= << > % sizeof B.<< *= > % sizeof C.*= > << sizeof % D.*= > << % sizeof 13.若有以下类型说明语句 char w; int x; float y; double z; 则表达式w*x+z-y 的结果是()类型。 A.float B.char C.int D.double 14.若w,x,y,z 均为int 型变量,则执行下面的语句后, w=(1), x=(2), y=(3), z=(4)。 w=5; x=4; y=w++*w++*w++; z=--x*=--x*--x;

C语言中常见的错误

."c"not an argument in function sum该标识符不是函数的参数 2.array bounds missing]in function main缺少数组界限符"]" 3.Array size too large in function main数组规模太大 4.bad file name format in include directive在包含指令中的文件名格式不正确. 5.Call of non-function in function main调用未经过定义的函数. 6.cannot modify a const object in function main对常量不能进行修改. 7.character constant too long in function main字符常量太大 8.constant expression required in funtion main数组定义的时候,数组大小要求是常数 https://www.wendangku.net/doc/6614274681.html,pound statment missing}in function main复合语句漏掉符号"{" 10.declaration syntax error in function main宣告语法错误 11.expression syntax in function main表达式语法错误 12.extra parameter in call to sum in function调用函数时使用了过多的参数 13.illegal use of floating point in function main浮点数的不合法使用 14.illegal pionter subtraction in function main不合法的指针相减 15.invalid pointer addition in function main无效的指针相加 16.out of memory in function main内存不足

电脑开机时各种故障的英文提示

电脑开机时各种故障的英文提示 1.CMOS battery failed 中文:CMOS电池失效。 解释:这说明CMOS电池已经快没电了,只要更换新的电池即可。 2.CMOS check sum error-Defaults loaded 中文:CMOS执行全部检查时发现错误,要载入系统预设值。 解释:一般来说出现这句话都是说电池快没电了,可以先换个电池试试,如果问题还是没有解决,那么说明CMOS RAM可能有问题,如果没过一年就到经销商处换一块主板,过了一年就让经销商送回生产厂家修一下吧! l m+~l 3.Press ESC to skip memory test 中文:正在进行内存检查,可按ESC键跳过。 解释:这是因为在CMOS内没有设定跳过存储器的第二、三、四次测试,开机就会执行四次内存测试,当然你也可以按ESC键结束内存检查,不过每次都要这样太麻烦了,你可以进入COMS设置后选择BIOS FEATURS SETUP,将其中的Quick Power On Self Test设为Enabled,储存后重新启动即可。 4.Keyboard error or no keyboard present 中文:键盘错误或者未接键盘。 解释:检查一下键盘的连线是否松动或者损坏。 5.Hard disk install failure 中文:硬盘安装失败。 解释:这是因为硬盘的电源线或数据线可能未接好或者硬盘跳线设置不当。你可以检查一下硬盘的各根连线是否插好,看看同一根数据线上的两个硬盘的跳线的设置是否一样,如果一样,只要将两个硬盘的跳线设置的不一样即可(一个设为Master,另一个设为Slave)。 6.Secondary slave hard fail 中文:检测从盘失败 解释:可能是CMOS设置不当,比如说没有从盘但在CMOS里设为有从盘,那么就会出现错误,这时可以进入COMS设置选择IDE HDD AUTO DETECTION进行硬盘自动侦测。也可能是硬盘的电源线、数据线可能未接好或者硬盘跳线设置不当,解决方法参照第5条。 7.Floppy Disk(s) fail或Floppy Disk(s) fail(80)或Floppy Disk(s) fail(40) 中文:无法驱动软盘驱动器。

C语言常见错误分析汇总

C语言常见错误分析汇总 1、 在一个工程里出现两个main函数时 3.obj : error LNK2005: _main already defined in file1.obj Debug/HELLO.exe : fatal error LNK1169: one or more multiply defined symbols found 这个就是说,你的main函数重定义了。你看看是不是你的工程里面,包含了很多个有main函数的文件? 2、 fatal error C1010: unexpected end of file while looking for precompiled header directive 出现这个错误的原因是,工程类型建错了,应该选择win 32 console application 3、拼写错误 (1)#include //头文件拼写错了 void main() { printf("doeifweofupwp"); } fatal error C1083: Cannot open include file: 'stido.h': No such file or directory (2)#inculde //include拼写错了 void main() { printf("doeifweofupwp"); } fatal error C1021: invalid preprocessor command 'inculde'(无效的预编译命令inculde) (3)#include void mian() //main拼写错了 { printf("doeifweofupwp"); }

常见C语言错误提示信息

Ambiguous operators need parentheses 不明确的运算需要用括号括起Ambiguous symbol ''xxx'' 不明确的符号 Argument list syntax error 参数表语法错误 Array bounds missing 丢失数组界限符 Array size toolarge 数组尺寸太大 Bad character in paramenters 参数中有不适当的字符 Bad file name format in include directive 包含命令中文件名格式不正确 Bad ifdef directive synatax 编译预处理ifdef有语法错 Bad undef directive syntax 编译预处理undef有语法错 Bit field too large 位字段太长 Call of non-function 调用未定义的函数 Call to function with no prototype 调用函数时没有函数的说明 Cannot modify a const object 不允许修改常量对象 Case outside of switch 漏掉了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 ) 函数调用缺少右括号

C语言调试常见错误及修改方法(附习题)

1.调试 C 程序时常见的错误类型分析 一般情况下,错误主要分为两大类:一、语法错误。对于这种错误,用编译器很容易解决。所以,改错题的第一步是先编译,解决这类语法错误。下面总结了二级C 语言上机改错题中常见的语法错误: (1) 丢失分号,或分号误写成逗号。 (2) 关键字拼写错误,如本来小写变成大写。 (3) 语句格式错误,例如for 语句中多写或者少写分号。 (4) 表达式声明错误,例如:少了() (5) 函数类型说明错误。与main ()函数中不一致。 (6) 函数形参类型声明错误。例如:少* 等。 (7) 运算符书写错误,例如:/ 写成了。二、逻辑错误,或者叫语义错误,这和实现程序功能紧密相关,一般不能用编译器发现。对于逻辑错误可以按这样的步骤进行查找。 (1) 先读试题,看清题目的功能要求。 (2) 通读程序,看懂程序中算法的实现方法。 (3) 细看程序,发现常见错误点。 2.改错题的改错方式总结,当然这些总结只能对大部分改错行有效 1、若错误行是函数首部,可分为以下几种情况: A、该行最后若有分号则删除,中间若有分号则改成逗号 B、形参类型不一致的问题,特别是指针类型,若后面用到某形参时有指针运算则该形参必为指针类型;若形参是二维数组或指向m 个元素的指针变量,则第二维的长度必须与main 中对应数组的第二维长度相同 C、函数类型不一致的问题,若函数中没有return语句则函数类型为void,若有return语句则函数的类型必须与return 后变量的类型一致。 2、若错误行是if 或while 语句,则首先看有没有用小括号将整个表达式括起,若没有则加上小括号。 3、若错误行中有if、while 、for 则要特别注意条件表达式的错误问题: A、指针变量的应用,若表达式中有指针变量且没有指针运算符,则加上指针运算符 B、若条件表达式中只有一个等于号,则改成两个等于号,若为其它比较运算符则一般是进行逆转或加一个等于号 C、f or 中要用分号分隔表达式,而不是用逗号 4、语法错误 A、语句缺少分号,若错误行中有语句没有用分号结束,则加上分号。 B、大小写不对,若错误行中有大写字母则一般都改成小写字母。 5、指针变量的运用,若错误行中有指针变量,并且该变量名前没有指针运算符则一般都是加上指针运算符 6、若错误行为return 语句,则首先看是否是缺少分号若是则加上分号即可;否则就是return 后的变量或表达式错误(此时可通过看题意,来分析该返回哪一变量或表达式)

总结电脑各种错误代码

总结各种代码(硬盘故障,ADSL错误代码表,Windows死机)一硬盘故障提示信息的含义 (1)Date error(数据错误) 从软盘或硬盘上读取的数据存在不可修复错误,磁盘上有坏扇区和 坏的文件分配表。 (2)Hard disk configuration error(硬盘配置错误) 硬盘配置不正确,跳线不对,硬盘参数设置不正确等。 (3)Hard disk controller failure(硬盘控制器失效) 控制器卡(多功能卡)松动,连线不对,硬盘参数设置不正确等。 (4)Hard disk failure(硬盘失效故障) 控制器卡(多功能卡)故障,硬盘配置不正确,跳线不对,硬盘物 理故障。 (5)Hard disk drive read failure(硬盘驱动器读取失效) 控制器卡(多功能卡)松动,硬盘配置不正确,硬盘参数设置不正 确,硬盘记录数据破坏等。 (6)No boot device available(无引导设备) 系统找不到作为引导设备的软盘或者硬盘。 (7)No boot sector on hard disk drive(硬盘上无引导扇区) 硬盘上引导扇区丢失,感染有病毒或者配置参数不正确。 (8)Non system disk or disk error(非系统盘或者磁盘错误) 作为引导盘的磁盘不是系统盘,不含有系统引导和核心文件,或者 磁盘片本身故障。 (9)Sectornot found(扇区未找到) 系统盘在软盘和硬盘上不能定位给定扇区。 (10)Seek error(搜索错误) 系统在软盘和硬盘上不能定位给定扇区、磁道或磁头。 (11)Reset Failed(硬盘复位失败) 硬盘或硬盘接口的电路故障。 (12)Fatal Error Bad Hard Disk(硬盘致命错误) 硬盘或硬盘接口故障。 (13)No Hard Disk Installed(没有安装硬盘) 没有安装硬盘,但是CMOS参数中设置了硬盘;

c语言中常见的错误

."c" not an argument in function sum 该标识符不是函数的参数 2.array bounds missing ] in function main 缺少数组界限符"]" 3.Array size too large in function main 数组规模太大 4.bad file name format in include directive 在包含指令中的文件名格式不正确. 5.Call of non-function in function main 调用未经过定义的函数. 6.cannot modify a const object in function main 对常量不能进行修改. 7.character constant too long in function main 字符常量太大 8.constant expression required in funtion main 数组定义的时候,数组大小要求是常数 https://www.wendangku.net/doc/6614274681.html,pound statment missing } in function main 复合语句漏掉符号"{" 10.declaration syntax error in function main 宣告语法错误 11.expression syntax in function main 表达式语法错误 12. extra parameter in call to sum in function 调用函数时使用了过多的参数 13.illegal use of floating point in function main 浮点数的不合法使用 14.illegal pionter subtraction in function main 不合法的指针相减 15.invalid pointer addition in function main 无效的指针相加 16.out of memory in function main 内存不足 17.statement missing ; in function main 语句后面漏掉分号. 警告报错 1."k" is assigned a value which is never used 定义了一个变量,但程序从来没用过 2.possibiy incorrect assignment in function main 这样的赋值可能不正确 3. suspicious pointer conversion in function main 可疑的指针转换 4.code has no effect in funtion main 代码对程序没效果 Ambiguous operators need parentheses:不明确的运算需要用括号括起 Ambiguous symbol 'xxx' :不明确的符号 Argument list syntax error:参数表语法错误 Array bounds missing :丢失数组界限符 Array size toolarge :数组尺寸太大 Bad character in paramenters :参数中有不适当的字符 Bad file name format in include directive :包含命令中文件名格式不正确 Bad ifdef directive synatax :编译预处理ifdef有语法错 Bad undef directive syntax :编译预处理undef有语法错 Bit field too large :位字段太长 Call of non-function :调用未定义的函数 Call to function with no prototype :调用函数时没有函数的说明 Cannot modify a const object :不允许修改常量对象 Case outside of switch :漏掉了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 :不允许转换近指针

C语言调试常见错误

C语言调试常见错误 一、第一类错误分析 1在使用变量前未定义。 例如: main() {a=1; b=2; printf(″%d\n″, a+b); } 2语句后面漏写分号或不该加分号的地方加了分号。 C语言规定,语句必须以分号结束,分号是C语句不可缺少的一部分,这也是和其它高级语言不同的一点。初学者往往容易忽略这个分号。 如: x=1 y=2; 又如在复合语句中漏写最后一个语句的分号: {t=x; x=y; y=t } 3不该有空格的地方加了空格 例如,在用/*...*/对C程序中的任何部分作注释时,/与*之间都不应当有空格。 又如,在关系运算符<=,>=,==和!=中,两个符号之间也不允许有空格。 4定义或引用数组的方式不对。 C语言规定,在对数组进行定义或对数组元素进行引用时必须要用方括号(对二维数组或多维数组的每一维数据都必须分别用方括号括起来),例如以下写法都将造成编译时出错: int a(10); int b[5,4]; printf(″%d\n″, b[1+2,2]); 5混淆字符和字符串 C语言中的字符常量是由一对单引号括起来的单个字符;而字符串常量是用一对双引号括起来的字符序列。字符常量存放在字符型变量中,而字符串常量只能存放在字符型数组中。例如, 假设已说明num是字符型变量,则以下赋值语句是非法的: num=″1″; 6在引用数组元素或指针变量之前没对其赋初值。 例如: main() main() {int a[6],b; {int *ptr, i=1; b=a[5]; *ptr=i

┇ ┇ }} 以上两个程序段在编译时均会出现警告信息。 7混淆数组名与指针变量 在C语言中,数组名代表数组的首地址,它的值是一个常量,不能被修改。例如,在以下程序段中,用a++是不合法的。 main() {int i, a[10]; for (i=0;i<10;i++) scanf(″%d″, a++); ┇ } 8混淆不同类型的指针。 若有以下语句: int *p1, a=1; float *p2; p1=&a; 则赋值语句p2=p1是非法的。 9混淆指针说明语句中的*号和执行语句中的*号。 设有以下说明语句: int *p1, i=1; 则 *p1=&i;是不合法的。 10误将函数形参和函数中的局部变量一起定义。 例如: fun(x,y) float x, y, z; {x++; y++; z=x+y; ┇ } 11所调用的函数在调用前未定义。 main() {float a=10, b=20, c; c=fun(a,b); ┇ } float fun(x, y) float x, y; {x++; y++; ┇ } 12混淆结构体类型名和结构体变量名。 若定义了以下结构体类型student:

电脑各种错误信息的中文意思

电脑各种错误信息的中文意思 一、BIOS中的提示信息 Drive A error 驱动器A错误 System halt 系统挂起 Keyboard controller error 键盘控制器错误 Keyboard error or no keyboard present 键盘错误或者键盘不存在 BIOS ROM checksum error BIOS ROM 校验错误 Single hardisk cable fail 当硬盘使用Cable选项时硬盘安装位置不正确 FDD Controller Failure BIOS 软盘控制器错误 HDD Controller Failure BIOS 硬盘控制器错误 Driver Error 驱动器错误 Cache Memory Bad, Do not Enable Cache 高速缓存Cache损坏,不能使用 Error: Unable to control A20 line 错误提示:不能使用A20地址控制线 Memory write/Read failure 内存读写失败 Memory allocation error 内存定位错误 CMOS Battery state Low CMOS没电了 Keyboard interface error 键盘接口错误 Hard disk drive failure 加载硬盘失败 Hard disk not present 硬盘不存在 Floppy disk(s) fail (40) 软盘驱动器加载失败,一般是数据线插反,电源线没有插接,CMOS内部软驱设置错误 CMOS checksum error-efaults loaded. CMOS校验错误,装入缺省(默认)设置 二、BIOS刷新失败后,Bootblock启动时出现的提示信息 Detecting floppy drive A media... 检测软驱A的格式 Drive media is : 1.44Mb1.2Mb 720Kb 360K 驱动器格式是1.44Mb、12Mb、720kb、360kb的一种 DISK BOOT FAILURE, INSERT SYSTEM DISK AND PRESS ENTER 磁盘引导失败,插入系统盘后按任意键继续 三、MBR主引导区提示信息 Invalid partition table 无效的分区表 Error loading operating sy stem 不能装入引导系统 Missing operating system 系统引导文件丢失 说明:如果在计算机启动过程中,在硬件配置清单下方(也就时在平时正常启动时出现Starting Windows 98…的地方)出现不可识别字符,此时可判断硬盘分区表损坏。如果你的硬盘上有重要资料,这时你不要轻易进行分区,可找专业的数据恢复公司。 四、DOS活动分区中的提示信息 Invalid system disk 无效的系统盘 Disk I/O error, Replace the disk and press any key. 磁盘I/O错误,替换磁盘后按任意键(当C 盘系统文件丢失或被破坏时出现该提示信息。这时可能SYS C:为修复系统文件) Invalid Media Type reaching Drive C: 无效的C盘媒体格式说明。也就是C盘没有格式化或者是其他操作系统的磁盘格式如NTFS Invalid Boot Diskette Boot Failure 无效的启动盘,启动失败 五、IO.SYS中的提示信息 Insert diskette for drive and press any key when ready 插入磁盘到驱动器中后按任意键 Your program caused a divide overflow error If the problem persists, contact your program vendor 你的程序导致溢出错误。如果该问题还存在,请联系你的程序供应商

常见电脑开机错误提示信息

常见电脑开机错误提示信息 1、开机提示“CMOS battery failed”信息 提示信息的意思是CMOS电池没有电了,更换主板上的锂电池即可。 2、开机提示“CMOS checksum error-Defaults loaded”信息 这种情况发生的大部分原因都是因为电力供应造成的。如超频失败后CMOS放电可出现这种情况。应该立刻保存CMOS设置。如果再次出现这个问题,建议更换锂电池。在更换电池仍无用的情况下,则将主板送修,因为CMOS芯片可能已被损坏。 3、开机提示“Display switch is set incorrectly”信息。 一般来说,老主板上有一个跳线用来设置屏幕为单色或彩色。 出现此信息表示主板上的设置和BIOS设置不一致,所以只要判断主板和BIOS设置哪个是正确的,然后更改错误的设置即可。 4、开机提示“CMOS CRC Error”信息 该故障是由于在开机的POST自动检测过程中发现CMOS RAM校验和CRC错误。 排除该故障的方法如下: 1)重新启动电脑,在显示启动信息后按下Delete键进入BIOS设置,读取BIOS默认设置,设置完毕后按下F10键保存并退出BIOS设置。 2)再次启动电脑,系统正常运行,即排除故障。 提示:一般情况下,该故障并不影响系统的正常运行,重新设置CMOS参数后即可排除故障。 5、开机提示“HARD DISK initializing Please wait a moment”信息 这种信息只会出现在较老的硬盘上,主要是因为其速度较慢。换上速度较快的硬盘即可解决问题。 6、开机提示“Hard disk install”信息 检测任何与硬盘有关的硬件设置,包括电源线、数据线和硬盘的跳线设置。如果是新购买的大容量硬盘,也要检查主板是否支持。 如果上述都没有问题,那很可能是硬件出现问题,IDE口或者硬盘损坏,拿去送修。 7、开机提示“Primary master hard fail” “Primary slave hard fail” “Secondary master hard fail” 或“Secondary slavehard fail”信息 可能是BIOS设置不当,如没有从盘,但在BIOS设置里设为从盘,就会出现此错误。也可能是硬盘的电源线、数据线为接好或者硬盘跳线设置不当。 可进入BIOS设置“IDE HDD Auto Detection”项中对硬盘进行自动检测。 8、开机提示“Hard disk(s)diagno sis fail”信息

分析C语言编程中常见错误及解决办法

龙源期刊网 https://www.wendangku.net/doc/6614274681.html, 分析C语言编程中常见错误及解决办法 作者:胡金荣 来源:《数码设计》2018年第03期 摘要:C语言是计算机基础教学中被广泛利用的一种教学语言,是目前计算机技术应用的重要内容,利用C语言程序的编写可以为办公自动化提供更为便捷的条件,因此强调其在具体实践中的利用现实意义显著。在学习应用C语言编程发现其在实践中存在着一些比较常见的错误,这些错误对办公质量和效率有重要的影响,所以要对其进行有效的解决。本文就C语言编程中常见的错误和解决方法做具体分析,旨在指导实践工作,提升编程的效率和质量。 关键词:C语言编程;常见错误;解决办法 中图分类号:TP312.1 文献标识码:A 文章编号:1672-9129(2018)03-0021-02 Analyze Common Mistakes in C Language Programming and Solutions HU Jinrong* (Xinjiang Shihezi Engineering Technology School, Xinjiang Shihezi, 832000, China) Abstract:C language is a widely used teaching language in computer basic education. It is an important content of computer technology application. The use of C language program can provide more convenient conditions for office automation. Therefore, it emphasizes its practice. The use of real significance in the. Learning to use the C language programming found that there are some common mistakes in practice, these errors have an important impact on office quality and efficiency, so we must effectively solve it. This article analyzes the common mistakes and solutions in C language programming and aims to guide practical work and improve the efficiency and quality of programming. Keywords:C programming; common mistakes; solutions 引用:胡金荣. 分析C语言编程中常见错误及解决办法[J]. 数码设计, 2018, 7(3): 21-22. Cite:HU Jinrong. Analyze Common Mistakes in C Language Programming and Solutions[J]. Peak Data Science, 2018, 7(3): 21-22. 引言 C语言是计算机基础教学中被广泛利用的一种教学语言,从具体的分析来看,C语言的显著特点是功能比较强、使用方便且灵活,而且对语法的检查不像其他的语言那样严格。这些显

电脑各种错误信息中英文对照

一、BIOS中的提示信息提示信息说明 Drive A error 驱动器A错误 System halt 系统挂起 Keyboard controller error 键盘控制器错误 Keyboard error or no keyboard present 键盘错误或者键盘不存在 BIOS ROM checksum error BIOS ROM 校验错误 Single hardisk cable fail 当硬盘使用Cable选项时硬盘安装位置不正确 FDD Controller Failure BIOS 软盘控制器错误 HDD Controller Failure BIOS 硬盘控制器错误 Driver Error 驱动器错误 Cache Memory Bad, Do not Enable Cache 高速缓存Cache损坏,不能使用 Error: Unable to control A20 line 错误提示:不能使用A20地址控制线 Memory write/Read failure 内存读写失败 Memory allocation error 内存定位错误 CMOS Battery state Low CMOS没电了 Keyboard interface error 键盘接口错误 Hard disk drive failure 加载硬盘失败 Hard disk not present 硬盘不存在 Floppy disk(s) fail (40) 软盘驱动器加载失败,一般是数据线插反,电源线没有插接,CMOS内部软驱设置错误 CMOS checksum error-efaults loaded. CMOS校验错误,装入缺省(默认)设置二、BIOS刷新失败后,Bootblock启动时出现的提示信息提示信息说明 Detecting floppy drive A media... 检测软驱A的格式 Drive media is : 1.44Mb1.2Mb 720Kb 360K 驱动器格式是1.44Mb、12Mb、720kb、360kb的一种DISK BOOT FAILURE, INSERT SYSTEM DISK AND PRESS ENTER 磁盘引导失败,插入系统盘后按任意键继续三、MBR主引导区提示信息提示信息说明 Invalid partition table 无效的分区表 Error loading operating sy stem 不能装入引导系统 Missing operating system 系统引导文件丢失说明:如果在计算机启动过程中,在硬件配置清单下

电脑开机出错英文提示翻译解释

电脑开机出错英文提示翻译解释 1.bat command or file name 错误语法,命令错误。 2.data error 数据错误磁盘上有坏的区 3.deacre asing available memory 可以存贮器容量小,内存条安装不正确,内存坏,病毒。 4.diskette read failvre 软盘读取错误,软盘软驱没有接好 5.hard disk config wration error 硬盘配置不对,coms有错重新修改,硬盘数据线没有连好。 6.inavlid fconfig uratian information 无效的配置信息,coms中记录有系统信息不对。 7.no bat device available 无引导设备 8.no boot sectoron harddisk error 硬盘上无引导系统,引导扇区,病毒,参数不对 9.nonsystem diskor disk error 非系统盘或者硬盘错误,引导的磁盘不是系统盘或者磁盘有问题。 10.invalid disk drive 无效的磁盘驱动器,分区表坏,引导扇区坏,系统不正硬 11.no fised disk resent 硬盘不存在 12.keybard keypressed please hit bxpass 有无效有键请按F1跳过 https://www.wendangku.net/doc/6614274681.html,as parameters invalid coms芯片有中错误 14.missing operation system 操做系统丢失commandcom.sys 解决:用一个启动盘引导系统,用sys c: 传导或者copy到c: 15.bad or mission command interdre ter 命令解释程序错误或丢失 16.error llading oerating system 装入操作系统出错 https://www.wendangku.net/doc/6614274681.html,s bateery failed coms电池失效 https://www.wendangku.net/doc/6614274681.html,s eheck sun error-----dofavlts loaded coms检验错误 19.press esc to skiiip rnemory test 按ESC健跳过内存自检 20.hard disk lnstall railure 硬盘安装失败不正确,coms不正确

相关文档