文档库 最新最全的文档下载
当前位置:文档库 › C++错误英汉对照

C++错误英汉对照

C++错误英汉对照
C++错误英汉对照

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 ; ----------------说明缺少";"houjiuming

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 -----------------函数调用缺少右括号

Fuction definition out of place ------------------函数定义位置错误

Fuction 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进制数字houjiuming Illegal pointer subtraction ------------------非法的指针相减

Illegal structure operation ------------------非法的结构体操作

Illegal use of floating point -----------------非法的浮点运算

Illegal use of pointer --------------------指针使用非法

Improper use of a typedefsymbol ----------------类型定义符号使用不恰当-In-line assembly not allowed -----------------不允许使用行间汇编Incompatible storage class -----------------存储类别不相容Incompatible type conversion --------------------不相容的类型转换Incorrect number format -----------------------错误的数据格式Incorrect use of default --------------------- Default使用不当

Invalid indirection ---------------------无效的间接运算

Invalid pointer addition ------------------指针相加无效

Irreducible expression tree -----------------------无法执行的表达式运算

Lvalue 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 houjiuming

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 -------------------内存不够用houjiuming

Parameter ''xxx'' is never used ------------------能数xxx没有用到

Pointer required on left side of -> -----------------------符号->的左边必须是指针

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

Possibly incorrect assignment ----------------赋值可能不正确Redeclaration of ''xxx'' -------------------重复定义了xxx

Redefinition of ''xxx'' is not identical ------------------- xxx的两次定义不一致

Register allocation failure ------------------寄存器定址失败

Repeat count needs an lvalue ------------------重复计数需要逻辑值

Size of structure or array not known ------------------结构体或数给大小不确定

Statement missing ; ------------------语句后缺少";"

Sructure tor union syntax error --------------结构体或联合体语法错误Structure size too large ----------------结构体尺寸太大

Sub scripting missing ] ----------------下标缺少右方括号

Superfluous & with function or array ------------------函数或数组中有多余的"&"

Suspicious pointer conversion ---------------------可疑的指针转换Symbol limit exceeded ---------------符号超限

Too few parameters in call -----------------函数调用时的实参少于函数的参数不

Too many default cases ------------------- Default太多(switch语句中一个)

Too many error or warning messages --------------------错误或警告信息太多

Too many type in declaration -----------------说明中类型太多houjiuming-

Too much auto memory in function -----------------函数用到的局部存储太多

Too much global data defined in file ------------------文件中全局数据太多

Two 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

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 assemble instruction ----------------未知的汇编结构houjiuming-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 of arguments -----------------调用函数的参数数目错

''xxx'' not an argument ----------------- xxx不是参数

''xxx'' not part of structure -------------------- xxx不是结构体的一部分

xxx statement missing ( -------------------- xxx语句缺少左括号

xxx statement missing ) ------------------ xxx语句缺少右括号

xxx statement missing ; -------------------- xxx缺少分号houjiuming

xxx'' declared but never used -------------------说明了xxx但没有使用

xxx'' is assigned a value which is never used ----------------------给xxx赋了值但未用过

Zero length structure ------------------结构体的长度为零

matlab常见的错误提示及其解决方法

matlab常见的错误提示及其解决方法 (2011-07-23 09:08:09) 分类:matlab学习 标签: matlab 常见错误 原因 解决方法 it 今天在百度知道上收到求助,说想知道matlab常见错误。个人虽然也学了点matlab皮毛,并且碰过不少问题,但从没有认真总结过常见的错误。于是上网搜索一番,整理出常见的错误,当前以整理出的内容如下,不足之处待以后补充,也期待看到此篇博文的朋友帮忙指出不足。 1.Undefined function or variable "U" 中文解释:函数或变量 U 没有定义 出错原因:函数或变量 U 没有定义 解决办法:仔细检查错误所指向的位置,寻找没有定义的函数或者变量,加以定义。 2.Unexpected MATLAB expression. 中文解释:不规范的matlab表达式 出错原因:少了运算符号,或者括号等情况 解决办法:仔细检查错误所指向的位置,检查是否少了乘号,或者逗号、分号、括号等。 3.Subscript indices must either be real positive integers or logicals

中文解释:下标索引必须是正整数类型或者逻辑类型 出错原因:在访问矩阵(包括向量、二维矩阵、多维数组,下同)的过程中,下标索引要么从 0 开始,要么出 现了负数。注:matlab 的语法规定矩阵的索引从 1 开始,这与 C 等编程语言的习惯不一样。 解决办法:自己调试一下程序,把下标为 0 或者负数的地方修正。 4.Matrix dimensions must agree 中文解释:矩阵的维数必须一致 出错原因:这是由于运算符(= + - / * 等)两边的运算对象维数不匹配造成的,典型的出错原因是错用了矩阵运 算符。matlab 通过“.”来区分矩阵运算和元素运算。 解决办法:自己调试一下程序,保证运算符两边的运算对象维数一致。 5.Function definitions are not permitted at the prompt or in scripts 中文解释:不能在命令窗口或者脚本文件中定义函数 出错原因:一旦在命令窗口写 function c = myPlus(a,b),此错误就会出现,因为函数只能定义在 m 文件中。 关于脚本文件和 m 文件的区别可查阅 matlab 基础书。 简言之: 1) 如果你写成 function 的形式,那么必须写在 m 文件中,且以function 开头(即 function 语句前不能包含其他语句,所有语句必须放在function 中,当然,function 的定义可以有多个,各 function 之间是并列关系,不能嵌套); 2) 如果你写成脚本的形式,则既可以写在命令窗口中,也可以写在 m 文件中,但两者均不能包含 function 语句(即不能进行函数的定义) 解决办法:新建一个 m 文件,然后再进行函数的定义

c语言错误大全

C语言上机常见错误提示 编译中的常见错误 (1) 警告类错误 ?‘XXX’declare but never used变量XXX已定义但从未用过。 ?‘XXX’is assigned a value which is never used变量XXX已赋值但从未用过。 ? Code has no effect 程序中含有没有实际作用的代码。 ? Non-portable pointer conversion 不适当的指针转换,可能是在应该使用指针的地方用了一个非0的数值。 ?Possible use of ‘XXX’before definition表达式中使用了未赋值的变量 ? Redeclaration of ‘main’一个程序文件中主函数main不止一个。 ? Suspicious pointer conversion 可疑的指针转换。通常是使用了基本类型不匹配的指针。 ? Unreachable code 程序含有不能执行到的代码。 (2) 错误或致命错误 ? Compound statement missing } in function main 程序结尾缺少括号}。 ?“}”expected;“(”expected等复合语句或数组初始化的结尾缺少“)”;“(”。 ? Case outside of switch case 不属于Switch结构,多由于switch结构中的花括号不配对所致。 ?Case statement missing ‘:’ switch结构中的某个case之后缺少冒号。 ? Constant expression required 定义数组时指定的数组长度不是常量表达式。 ? Declaration syntax error 结构体或联合类型的定义后缺少分号。 ? Declaration was expected 缺少说明,通常是因为缺少分界符如逗号、分号、右圆括号等所引起的。

matlab常用操作命令

matlab常用操作备忘(1)2007-11-30 22:01:06 分类: 北京理工大学 20981 陈罡 帮助朋友做几个数据的卷积的仿真,一用才知道,呵呵,发现对不住偶的导师了。。。好多matlab的关键字和指令都忘记了。特意收集回顾一下: (1)管理命令和函数 addpath :添加目录到MATLAB搜索路径 doc :在Web浏览器上现实HTML文档 help :显示Matlab命令和M文件的在线帮助 helpwin helpdesk :help 兄弟几个 lookfor :在基于Matlab搜索路径的所有M文件中搜索关键字 partialpath:部分路径名 8*) path :所有关于路径名的处理 pathtool :一个不错的窗口路径处理界面 rmpath :删除搜索路径中指定目录 type :显示指定文件的内容 ver :版本信息 version :版本号 web :打开web页 what :列出当前目录吓所有的M文件 Mat文件和 Mex文件 whatsnew :显示readme文件 which :显示文件位置 (2)管理变量和工作区 clear :从内存中删除所有变量,clear x y z是删除某个变量 disp :显示文本或数组内容 length :数组长度(最长维数) load :重新载入变量(从磁盘上) mlock :锁定文件,防止文件被错误删除 munlock :解锁文件 openvar :在数组编辑器中打开变量 pack :整理内存空间 save :保存变量到文件 8*) size :数组维数

who whos :列出内存变量 workspace :显示工作空间窗口 (3)管理命令控制窗口(command窗口) clc :清空命令窗口 echo :禁止或允许显示执行过程 format :设置输出显示格式 home :光标移动到命令窗口左上角 more :设置命令窗口页输出格式 (4)文件和工作环境 cd :改变工作目录 copyfile :复制文件 delete :删除文件和图形对象 diary :把命令窗口的人机交互保存到文件 dir :显示目录 edit :编辑文本文件 fileparts :返回文件的各个部分 fullfile :使用指定部分建立文件全名 inmem :返回内存(伪代码区)的matlab函数名 ls :在unix系统中列出目录(win中亦可) matlabroot :根目录 mkdir :新建目录 open :打开文件 pwd :显示当前目录 tempdir :返回系统临时目录的名字 tempname :随机给出一个临时字符串(可用作文件名) ! :直接调用操作系统command命令 (5)启动和推出matlab matlabrc :Matlab的启动M文件 exit quit :退出Matlab startup :运行matlab启动文件 (6)程序设计 builtin :从可重载方法中调用内置函数 eval :执行包含可执行表达式的字符串

《教父》剧本台词中英文对照

你绝对很意外的我能弄到这些很不容易啊 教父经典语录!一、人生与处世 1、生活是这样美丽。 2、一个人只有一个命运。 3、不要让别人知道你的想法。 4、不要让人知道你伸手要抓什么。 5、我们都是伪君子。 6、当你说不时,你要使不听上去象是一样好听。 7、我一生为家族服务,而不愿成为大人物手下的玩偶。 8、如果历史教育了我们什么,如果生活教给我们什么,那就是我们可以杀任何人。 9、我将给他一个他无法拒绝的理由。 10、把意外当作对个人尊严侮辱的人永远不会再遭遇意外。 11、不要让女人左右你的思维。 12、如果一个人很慷慨,那他就必须把自己的慷慨表现得充满感情。 13、我只可能被杀害,但永远不可能被捕。 14、如果你认为我不知道其中的真相,那就是在侮辱我的智慧。 15、最好的威胁是不采取行动,一旦采取了行动而没有收到效果,人们就不再怕威胁了。 16、不要让外人知道家族内部的不同意见。 17、女人和小孩可以无忧无虑,男人不行。 18、伟大的人不是生下来就伟大的,而是在成长过程中显示其伟大的。 19、我相信友谊,并且愿意首先表示出我的友谊。 20、友谊可以筑起一道坚实的防线。 21、我绝不会把友谊强加给不需要友谊——认为我无足轻重的人。 22、让朋友低估你的优点,让敌人高估你的缺点。 23、永远不要恨你的敌人 ,因为这会影响你的判断力。 24、跟朋友要亲密,跟敌人要更亲密。 25、第一个帮你敌人说话的兄弟是叛徒。 26、痛苦不象死亡那样无可挽回! 二、社会的真实 1、巨大财富的背后,都隐藏着罪恶。 2、政治和犯罪是一样的。 3、金融就是手枪,政治就是知道何时扣动扳机。 4、无法掌控权力的人将被权力毁灭。 5、一个提着公文包的律师所抢到的钱比一千个拿着冲锋枪的抢到的钱还要多。 6、世界上有什么事情能那么肯定?只有一个---复仇。 三、家庭 1、你是我的家人,我爱你。 2、首先,你不能对你所热爱的人说不。 3、爸爸在吃饭时从不谈生意。 4、你花时间和你的家人在一起吗? 不照顾家人的男人,根本算不上是个男人。

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/65940499.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内存不足

matlab安装常见问题解决方案

1、安装MATLAB7时弹出以下警告对话框,显示 " The installer cannot read the mwinstall.dll file, This is probably due to a CD reader which can only read files with an eight.three naming convention. Please see the technical support page at " 解决的办法是在【我的电脑】-右键-【属性】然后选择【高级】-【环境变量】,将环境变量中位于上部的用户变量中的TEMP和TMP修改为C:/temp即可,并备份好原来的路径。安装文件一定要放在英文目录下,如:E:\software\matlab 7.0就可以,而E:\软件\matlab 7.0就不行。 2、我的matlab7.0也出现这种毛病,打开就自动关闭,请问怎么解决? 完成后你会发现打开后一会就自动关闭,不要惊慌,你的机器cpu一定是amd的,在你的安装文件夹下找到atlas_Athlon.dll文件,是用来让amd芯片进行正常工作的。因为当初mathwork公司是以intel芯片为目标的。找到这个文件比如路径是D:MA TLAB7 \bin\win32\atlas_Athlon.dll,再次右键单击我的电脑属性,高级,环境变量,系统变量新建变量名:BLAS_VERSION,值为D:MATLAB7 \bin\win32\atlas_Athlon.dll 3、问题: 启动Matlab以后显示: The element type "name" must be terminated by the matching end-tag "". Could not parse the file: d:\matlab7\toolbox\ccslink\ccslink\info.xml 解决: 打开matlab7.0就出现如下的提示 The element type "name" must be terminated by the matching end-tag "". Could not parse the file: d:\matlab7\toolbox\ccslink\ccslink\info.xml. 解决方法是: 找到d:\matlab7\toolbox\ccslink\ccslink\info.xml 这个文件(如果是装在C盘则在C盘目录下),一定要用写字板打开这个文件,找到有一行这样的Link for Code Composer Studio?/name>,大概是在第七行吧,把这句的/name>改成,再保存一下这文件。

matlab常见错误命令

matlab常见错误命令 >> a=【0 1 2 3 4 5 6 7 8 9】 ??? a=【0 1 2 3 4 5 6 7 8 9】 Error: The input character is not valid in MATLAB statements or expressions. error ['er?]n. 错误,过失input ['input]n. 输入character ['k?rikt?]n. 个性,字符,人物valid ['v?lid]a。有确实根据的,有效的,正当的statement ['steitm?nt]n. 声明,陈述expression [iks'pre??n]n. 表达,表示,表现,表情,措辞,词句expressions n.表示式公式>> x=-5:5;y=-5:5;z=x^2+y^2;polt(x,y,z) Error using ==> mpower Matrix must be square. matrix ['meitriks]n. 母体,子宫,细胞,脉石,字母n.矩阵 square [skw??]n. 正方形,街区,平方a. 正方形的,正直的,公正的v. 一致,符合,使...成方形>> x=-5:5;y=-5:5;z=x.^2+y.^2;polt(x,y,z) Undefined function or method 'polt' for input arguments of type 'double'. undefined ['?ndi'faind]未定义的function ['f??k??n]n.功能,函数,重大聚会vi. 运行,起作用method ['meθ?d]n. 方法,办法argument ['ɑ:gjum?nt]n. 辩论,争论,论据,理由

爱丽丝梦游仙境话剧中英文剧本

爱丽丝梦游仙境话剧中英文剧本 角色: 爱丽丝Alice、兔子Rabbit 、公爵夫人Duchess、皇后Queen 、國王King、貓cat、爱丽丝姐姐Alice sister Scene 1 场景1: N: It was a nice sunny day. Alice and her sister were reading a book. 阳光明媚。爱丽丝和姐姐在看书。 ALS: (困) What?s the use of the book without pictures or conversations? 爱丽丝:没有插图和对话的书有什么用呢? N: When they were talking about the book ,suddenly,a rabbit came out…. 当他们在讨论那本书的时候,突然有只兔子跑出来… Rabbit: Oh dear! I shall be late!(然后开始跑了) 兔子:天啊!我会迟到的! ALS: Wow·What?s that? What?s that? A rabbit with a watch? It?s nice! 爱丽丝:哇!那是什么?那是什么?带表的兔子?它很漂亮! N: Then Alice followed the rabbit to a hole of the big tree and she got into a rabbit-hole car elessly. It went deep into the ground. Alice couldn?t stop herself falling. It?s amazing. 爱丽丝跟着兔子到了一个树洞,她不小心掉进了一个兔子洞。洞通到地下深处。爱丽丝无法控制地跌落下去。太神奇了. ALS: Well!well....help me ... After a falling like this, I can fall anywhere! Where am I now ? 爱丽丝:哎呀!哎呀!救我…经历这样的跌落,我可以落到任何地方了!我现在在哪里啦?Scene 2 Big and Small 场景2:大和小 N: Would she ever stop falling? Suddenly, she was sitting on the ground. She stood up and sa

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 ) 函数调用缺少右括号Fuction definition out of place 函数定义位置错误 Fuction should return a value 函数必需返回一个值 Goto statement missing label Goto语句没有标号 Hexadecimal or octal constant too large 16进制或8进制常数太大 Illegal character ’x’ 非法字符x Illegal initialization 非法的初始化

matlab常见错误

1.Subscript indices must either be real positive integers or logicals 中文解释:下标索引必须是正整数类型或者逻辑类型 出错原因:在访问矩阵(包括向量、二维矩阵、多维数组,下同)的过程中,下标索引要么从 0 开始,要么出现了负数。注:matlab 的语法规定矩阵的索引从1 开始,这与 C 等编程语言的习惯不一样。 解决办法:自己调试一下程序,把下标为 0 或者负数的地方修正。 2.Undefined function or variable "U" 中文解释:函数或变量 U 没有定义 .出错原因及解决办法:可能变量名输入错误,仔细检查 3.Matrix dimensions must agree 中文解释:矩阵的维数必须一致 出错原因:这是由于运算符(= + - / * 等)两边的运算对象维数不匹配造成的,典型的出错原因是错用了矩阵运算符。matlab 通过“.”来区分矩阵运算和元素运算。 解决办法:自己调试一下程序,保证运算符两边的运算对象维数一致。 4.Function definitions are not permitted at the prompt or in scripts 中文解释:不能在命令窗口或者脚本文件中定义函数 出错原因:一旦在命令窗口写 function c = myPlus(a,b),此错误就会出现,因为函数只能定义在 m 文件中。关于脚本文件和 m 文件的区别请查阅 matlab 基础书。简言之: 1) 如果你写成 function 的形式,那么必须写在 m 文件中,且以 function 开头(即 function 语句前不能包含其他语句,所有语句必须放在 function 中,当然,function 的定义可以有多个,各 function 之间是并列关系,不能嵌套); 2) 如果你写成脚本的形式,则既可以写在命令窗口中,也可以写在 m 文件中,但两者均不能包含 function 语句(即不能进行函数的定义) 解决办法:新建一个 m 文件,然后再进行函数的定义 5.One or more output arguments not assigned during call to '...' 中文解释:在调用...函数过程中,一个或多个输出变量没有被赋值 出错原因:函数如果带有输出变量,则每个输出在返回的时候都必须被赋值。容易出现这个错误的两个地方是:在部分条件判断语句(如 if )中没有考虑到输出变量的返回值。 在循环迭代过程中部分变量的维数发生了变化。 解决办法:调试程序,仔细查看函数返回时各输出变量的值。更好的方法是:在条件判断或者执行循环之前对所使用的变量赋初值。 6.??? Index exceeds matrix dimensions.

C语言常见错误提示

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包含命令中文件名格式不正确 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转换时会丢失意义的数Could not find file ''xxx'' 找不到XXX文件 Declaration missing ; 说明缺少";" Declaration syntax error 说明中出现语法错误 Default outside of switch Default出现在switch语句之外Define directive needs an identifier define命令需要标识符Division by zero 用零作除数 Do statement must have while Do语句中需要while部分Enum syntax error 枚举类型语法错误 Enumeration constant syntax error 枚举常数语法错误Error directive: xxx 错误的编译预处理命令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 函数必需返回一个值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 floating point 非法的浮点运算 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 指针相加无效 Irreducible expression tree 无法执行的表达式运算 Lvalue required 需要左值 Macro argument syntax error 宏参数语法错误 Macro expansion too long 宏的扩展以后太长Mismatched number of parameters in definition定义中参数个数不匹配 Misplaced break 此处不应出现break语句 Misplaced continue 此处不应出现continue语句Misplaced decimal point 此处不应出现小数点 Misplaced else 此处不应出现else 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 -> 符号->的左边必须是指针

泰坦尼克号中英文对照剧本

Titanic 中英文剧本 第一幕: - (Music Box Playing Tune) - (Knock At Door) (Door Opens) 罗斯男友:I know you've been melancholy. 我知道你心情不好 罗斯男友:I don't pretend to know why. 我也不会假装知道原因 罗斯男友:I intended to save this 原本想等到… 罗斯男友:until the engagement gala next week.下星期的订婚宴会才拿出来罗斯男友:But I thought tonight. 但我觉得…今天晚上… 罗斯:Good gracious. 我的天啊! 罗斯男友:Perhaps as a reminder of my feelings for you. 让你知道我对你的真心 罗斯:- Is it a... 这是… 罗斯男友:- Diamond Yes. 对,是钻石 罗斯男友:56 carats to be exact. 五十六克拉 罗斯男友:It was worn by Louis XVI and they called it "Le Coeur DeLa Mer. "原属于路易十六世,他们称它为“海洋之星” 罗斯:The Heart of the Ocean. “海洋之星” 罗斯男友:Yes. 罗斯:It's over whelming. 好贵重 罗斯:Well, it's for royalty. 这是为皇室做的 罗斯男友:We are royalty, Rose. 我们就是皇室

罗斯男友:You know, there's nothing I couldn't give you. 我什么都能给你罗斯男友:There's nothing I'd deny you 我什么都愿意给你 罗斯男友: if you would not deny me. 只要你接受我 罗斯男友:Now open your heart to me, Rose. 用心来爱我,萝丝 第二幕: 旁白:I saw my whole life as if l'd already lived it-- 我当时觉得自己的生活了无生趣 an endless parade of parties and cotillions 不是餐会就是舞会 yachts and polo matches 游艇赛、马球赛 always the same narrow people, the same mindless chatter. 老是跟同一批思想狭隘的人 永远言不及义 Ifelt likel was standing at a great precipice 我仿佛站在悬崖上 with no one to pull me back 没人要拉我一把 no one who cared or even noticed. 没人关心或甚至注意到我 - (Woman Grunts) - (Rose Sobbing) (Running Feet And Sobbing) (Taking Short, Anxious Breaths) 杰克:Don't do it. 别跳 罗斯:Stay back. 退回去 罗斯:Don't come any closer. 别靠近 杰克:Come on. Just give me your hand. I'll pull you back over. 手伸出

常见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 ) 函数调用缺少右括号

Matlab常见语法错

Matlab常见语法错误 Subscript indices must either be real positive integers or logicals 中文解释:下标索引必须是正整数类型或者逻辑类型 出错原因:在访问矩阵(包括向量、二维矩阵、多维数组,下同)的过程中,下标索引要么从0 开始,要么出现了负数。注:matlab的语法规定矩阵的索引从1 开始,这与C 等编程语言的习惯不一样。 解决办法:自己调试一下程序,把下标为0 或者负数的地方修正。关于矩阵的各种访问方式。 举例: 【错误代码】: 1.for s = 0:0.2:2 2. a(s) = 4 * s - 1; 3.end 复制代码 【正确代码】: 1. 2.for s = 1:10 3. a(s) = 4 * s - 1; 4.end 复制代码 当然,这样的赋值使用循环是低效的,因此不提倡

Undefined function or variable "a" 中文解释:函数或变量 a 没有定义 出错原因及解决办法: 1. 如果 a 是变量,则参见[原创]写给学习 matlab 的新手们一贴中技巧 6 后半部分 2. 如果 a 是函数,则这是因为matlab在所有已添加的路径中都无法找到该函数对应的m 文件而导致的,对此,把该m文件移动到当前路径下再运行便可。(注:何谓“所有已添加的路径”——在命令窗口中输入 pathtool 可以查看;何谓“当前路径”——在命令窗口中输入 pwd 可以查看) 举例: myPlus.m: 1.function d = myPlus(a,b) 2. d = a + b; 复制代码 【错误调用】: 命令窗口: 1.>> z = myPlus(a,b) 复制代码 【正确调用】: 命令窗口: 1.>> x = 2; 2.>> y = 5; 3.>> z = myPlus(x,y) 复制代码

美女与野兽英汉对照剧本

美女与野兽英汉对照剧本 一共7人,角色分别是美女的父亲,野兽,花花公子,美女的大姐,美女的二姐,美女,旁白 旁白:Hello,everyboby!I will tell you a very beautiful story.Now let me introduce the members of this story firet.大家好!我将告诉你们一个非常美丽的故事。现在让我介绍这个故事的成员。(一个一个指着说)Beauty’s father,the beast,playboy,the beauty of the elder sister,the beauty of the second sister,our leading character in the story—the beauty.Now,our beautiful story is beginning. 美女的父亲,野兽,花花公子,美女的大姐,美女的二姐,我们的故事的主角——美女。现在,我们美丽的故事开始了。 第一幕 出场人物:美女的父亲,美女的大姐,美女的二姐,美女 美女的父亲(依依不舍的):My dear daughters,I must go.我亲爱的女儿,我必须走了。 三姐妹(很担心的):Where will you go,father?Don’t leave us!你要去哪里,爸爸?不要离开我们! 美女的父亲:I must go to a far away place,to make a big business.If I talk succeed,then I will make very much money. 我必须去一个遥远的地方,洽谈一笔大生意。如果我说成功,我将赚很多钱。 美女的姐姐们:What?Oh yeah!Father,if you succeed,please bring us some pretty thing!什么?太好了!爸爸,如果你成功了,请给我们带一些漂亮的东西! 美女的父亲:What pretty thing do you want,my dear daughters?你想要什么漂亮的东西,我亲爱的女儿? 美女的大姐:I just want a diamond,my dear father!我只是想要一颗钻石,我亲爱的父亲。 美女的二姐:I just want a skirt and a perfume,my dear father!我只是想要一条裙子和一瓶香水,我亲爱的父亲。 美女的父亲:OK,I will bring them to you.And you,(对着美女)my dear little daughter,what do you want?好的,我会把它们给你们。你呢?我亲爱的小女儿,你想要什么? 美女:I want a pretty flower,daddy.I will miss you.我想要朵漂亮的花,爸爸,我会想你的。 美女的父亲:I'll miss you too.But I have to leave.(转身离去)我也会想念你,但是我不得不离开了。 美女的姐姐们:Good bye, father,rember to bring us a diamond,a skirt and a perfume!再见,爸爸,记得要带给我们一颗钻石,一条裙子和香水! 美女:Good bye, father. 再见,爸爸。 第二幕 出场人物:美女的父亲,野兽 旁白:One day, b eauty’s father find he was lost his way.But a big castle appeared in his eyes.一天,美女的父亲发现他迷路了,但在他的眼前出现了一座大城堡。 美女的父亲:(上前敲门)Hello!你好!(发现门是开着的,走了进去)Is someone there?I don’t

相关文档