自定义Notepad++语言高亮与提醒

自定义Notepad++语言高亮与提醒
自定义Notepad++语言高亮与提醒

AUTOCAD中写lisp程序不可避免用到界面程序语言框架:DCL。但在notepad++中并没有DCL程序编写的高亮和语法自动补全,这让已经习惯在notepad++中写lisp代码的我感到十分不爽,于是按照notepad++中的自定义语言方法,自己定义了一个,作为备忘。步骤如下:

1.安装notepad++,这是免费软件,没太多可说。

2.单击【视图】→【自定义语言对话框】如下图:

打开如下图所示【自定义语言格式对话框】,在自定义语言项目中加入“DCL”,扩展名也输入“DCL”:

填写完毕之后,单击【语言】,会出现DCL的语言选项,如下图:

在下面的四个tab中分别按照下面四张图形进行设置:

注意:关键字列表中的层次关系可以自己调整关键词,我个人比较喜欢现在这种,四类关键字如下:

第一分组:

boxed_column boxed_radio_column boxed_radio_row boxed_row button column concatenation dialog edit_box image image_button list_box paragraph popup_list radio_button radio_column radio_row row slider spacer text text_part toggle acad_attedit acad_ddatte acad_dwgmod acad_files acad_group acad_icon acad_mtprop

acad_newdwg acad_opendwg acad_plan acad_plot acad_reinit

acad_snap acad_tstyle acad_tstyle_sym acad_txtedit

第二分组:

action action_tile add_list

cancel_buttonchildren_alignmentchildren_fixed_height

children_fixed_width color_palette_0_9 color_palette_1_7

color_palette_1_9 color_palette_250_255 column

concatenation:cluster ddfcf default_button default_dcl_setting

dimx_tiledimy_tiledone_dialog edit12_box edit32_box end_image end_listerrtile f0 f2 f0he fcf_ebox fcf_ebox1 fcf_ibut fcf_ibut1

files_bottomdffiles_topdf fill_imageget_attrget_tile help_button icon_imageimage_block info_button initial_focus is_bold is_cancel

is_default is_enabled is_tab_stop paragraph:cluster password_char LispEd load_dialog mledit mnemonic mode_tile mstyle

multiple_select new_dialog ok_only ok_cancel ok_cancel_err

ok_cancel_help ok_cancel_help_errtile ok_cancel_help_info

pstylerq_chroma set_tileslide_image spacer_0 spacer_1

start_dialogstart_image start_list std_rq_color swatchterm_dialog tabs tab_truncate text_25 unload_dialog vector_image ok_button cancel_button info_button ok_cancel

第三分组:

allow_accept aspect_ratio color value width label max_value

min_value height fixed_height fixed_width edit_width list key alignment edit_limit fixed_width_font small_increment big_increment layout multi_select

第四分组:

centered left right false true vertical

改完之后点右上角叉退出。

3.进入路径:C:\Program Files\Notepad++\plugins\APIs ,在其中新建一个名为“DCL.xml”的文件,把如下等号线内(不含等号线)粗体文字复制粘贴,之

后保存,显然,这就是语法补全的设定项目,如果你还感觉缺哪个,自己往里按格式填,必须严格按字母排列顺序填,否则不能保证正确的语法高亮顺序,切记切记,最后保存退出即可。老衲一个关键字一个关键字敲的,善哉善哉...

============================================== ==================================

============================================== ==================================

4.语法高亮的设置文件被notepad++放在了“C:\Documents and Settings\Administrator\Application Data\Notepad++”路径下的langs.xml 文件里,按语言字母的顺序,在所谓的“D”语言后面,增加一段高亮设定代码:

============================================== ==================================

boxed_column boxed_radio_column boxed_radio_row boxed_row button column concatenation dialog edit_box image image_button list_box paragraph popup_list

radio_button radio_column radio_row row slider spacer text text_part toggle

acad_attedit acad_ddatte

acad_dwgmod acad_files acad_group acad_icon acad_mtprop

acad_newdwg acad_opendwg acad_plan acad_plot acad_reinit

acad_snap acad_tstyle acad_tstyle_sym acad_txtedit action action_tile add_list alignment allow_accept aspect_ratio big_increment

cancel_button children_alignment children_fixed_height

children_fixed_width color color_palette_0_9 color_palette_1_7

color_palette_1_9 color_palette_250_255 column

concatenation:cluster ddfcf default_button default_dcl_setting

dimx_tile dimy_tile done_dialog edit_limit edit12_box edit32_box end_image end_list errtile f0 f2 f0he fcf_ebox fcf_ebox1 fcf_ibut

fcf_ibut1 files_bottomdf files_topdf fill_image fixed_width_font

get_attr get_tile help_button icon_image image_block info_button initial_focus is_bold is_cancel is_default is_enabled* is_tab_stop key paragraph:cluster paragraph password_char layout LispEd

load_dialog mledit mnemonic mode_tile mstyle multiple_select

new_dialog ok_only ok_cancel ok_cancel_err ok_cancel_help

ok_cancel_help_errtile ok_cancel_help_info pstyle rq_chroma set_tile slide_image small_increment spacer_0 spacer_1 start_dialog

start_image start_list std_rq_color swatch term_dialog tabs

tab_truncate text_25 unload_dialog vector_image value width label max_value min_value height fixed_height fixed_width edit_width list ok_button cancel_button info_button

============================================== ==================================

将上述代码复制粘贴到langs.xml文件中,保存退出,但这段文字中在粘贴时必须先退出notepad++,然后用其他文字软件做,然后重新打开notepad++,高亮就生效了。

必须注意如下两点:

1).编写DCL文件必须在新建一个文件后,先单击【语言】→【DCL】,然后语法规则才能生效;

2).AUTOCAD的DCL语言使用的单行和区块注释关键词为“//”和"\*...*\",因此在【视图】→【自定义语言对话框】中,第四个tab选项中不能选择“/”、"\"、"*"作为运算符(放在左边的“可用符号”框内),如下图所示:

现在notepad++中写DCL框架,怎一个爽字了得!

Notepad++ 插件及使用技巧介绍

Notepad++是一款强力推荐、炒鸡好的代码编辑器,没有编译功能,但是有很多很有用的插件,还有统一的快捷键,可以很有效地提升写代码的速度。平时只需先在Notepad++上写完代码,然后复制到编译器上编译即可。下面介绍Notepad++的用法和一些插件: 下载地址: https://www.360docs.net/doc/636360827.html,/sw-search-sp/soft/cc/13478/npp.6.7.4.Installer.1421032427.exe 用法很简单,先选代码语言: 然后就可以直接写了

贴上一些有用的快捷键: Ctrl+C 复制 Ctrl+X 剪切 Ctrl+V 粘贴 Ctrl+Z 撤消 Ctrl+Y 恢复 Ctrl+A 全选 Ctrl+F 查找 Ctrl+H 查找+替换对话框 Ctrl+L 删除当前行 Ctrl+T 当行向上移动一行 F3 查找下一个 Shift+F3 查找上一个 Ctrl+S 保存文件 Ctrl+Alt+S 另存为 Ctrl+Shift+S 保存所有文件 ALT+鼠标左键单击列选择 Tab 插入缩进 Shift+Tab 删除缩进 Ctrl+Q 块注释/消除注释 Ctrl +鼠标滚轮钮放大缩小 F11 全屏模式 Alt+(1~8) 折叠级别(1~8) Alt+Shift+(1~8) 展开级别(1~8) CTRL+U 转换为小写 Ctrl+Shift+U 转换为大写 Ctrl+B 转至匹配的括号 修改方法 菜单<设置>-<管理快捷键> 下面介绍一些的插件,我觉得很有用的有 FingerText(超好用,可以大幅提升写代码速度) AutoSave(自动保存,防止有时候电脑突然没电或者忘记保存)Hex-Editor(十六进制查看/编辑器) Light Explorer(打开、管理文件比较方便) NppAutoIndent(自动缩进,即换行时该空两格时会自动帮你往右空两

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.360docs.net/doc/636360827.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 语句后面漏掉分号. 警告报错

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 缺少说明,通常是因为缺少分界符如逗号、分号、右圆括号等所引起的。

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.360docs.net/doc/636360827.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内存不足

notepad++手册

Notepad++手册 版本:1.0 作者:gyhong 日期:2008年11月 1.超酷编辑工具 1.1.功能介绍 资料来源你官方网址https://www.360docs.net/doc/636360827.html, Notepad++是在微軟視窗環境之下的一個免費的代碼編輯器。 為了產生小巧且有效率的代碼編輯器,這個在GPL許可證下的自由軟體開發專案採用win32api和STL 以C++程式語言撰寫成,並且選用功能強大的編輯模組Scintilla。 藉由加強與優化許多函數及演算法,Notepad++致力於減少世界二氧化碳的排放。當使用較少的CPU功率,降低電腦系統能源消耗,Notepad++間接造就了綠化的環境。多虧它的輕巧與執行效率,Notepad++可

完美地取代微軟視窗的記事本。 這個軟體開發專案已臻於成熟階段,然而目前只有一個人從事軟體開發與維護的工作,瑕疵是無法避免的。如果你有任何關於Notepad++的建議,歡迎來信與我聯繫,但我不保證你的提議一定會被採用。 希望你使用Notepad++就像我開發它一樣充滿樂趣。 Notepad++的主要功能: 語法高亮度顯示及語法摺疊功能 支援的程式語言: C C++Java C#XML HTML PHP CSS makefile ASCII art(.nfo)doxygen ini file batch file JavascriptASP VB/VBS SQLObjective-C RC resource file Pascal Perl Python Lua TeX TCLAssembler Ruby Lisp Scheme Properties Diff Smalltalk PostscriptVHDL Ada Caml AutoIt KiXtart Matlab Verilog Haskell InnoSetup CMake YAML 列印所見即所得(WYSIWYG) 如果你有彩色印表機,你可以把你的原始碼以多種顏色列印出來。 用戶自定程式語言 用戶可自定程式語言:自定的程式語言不僅有語法高亮度顯示功能,而且有語法摺疊功能功能。註解關鍵字及運算符號亦可自定。詳情請參考用戶自定程式語言線上輔助(畫面一,畫面二,畫面三,畫面四)。 字詞自動完成功能(Auto-completion) 用戶能做自己的API列表(或從下載專區下載你需要的api檔案)。一旦api檔案建立完成且在正確的路徑系統,鍵入Ctrl+Space(你可以修改這個鍵盤捷徑)啟動字詞自動完成功能(參考字詞自動完成功能畫面)。欲知更詳盡的資訊,請參考字詞自動完成功能線上輔助。 支援同時編輯多重文件 你可以同時開啟多頁面來編輯。 支援多重視窗同步編輯 用戶可同時有兩個視窗對比排列。你不但能開啟兩個不同文件在分別兩個不同的視窗內(畫面),並且能開啟一個單獨文件在兩個不同的視窗內(clone mode)進行同步編輯。同步編輯的成果將在兩個的視窗內同時更新。請參考同步編輯畫面。 支援Regular Expression搜尋及取代 用戶可用Regular Expression來搜尋及取代一個字串。 完全支援拖曳功能 你可用拖曳功能來開啟文件。你也可以用拖曳功能來變換開啟文件的位置。你甚至可拖曳開啟文件從一個視窗到另一個視窗。 內部視窗位置可任意移動 請參考畫面. 自動偵測開啟檔案狀態 如果外部修改(或刪除)Notepad++已開啟檔案,用戶將會被通知更新檔案內容(或移除檔案)。 放大與縮小功能 不需要多做介紹,畫面將說明一切。 支援多國語言 支援中日韓視窗環境,及阿拉伯語與希柏來文的視窗環境。請參考Notepad++在中文視窗下,阿拉伯語視窗下以及希柏來文視窗下的畫面。

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:

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 非法的初始化

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的数值。 ?Possib le use of ‘XXX’before definition表达式中使用了未赋值的变量 ?Possibly incorrect assignment这样的赋值可能不正确 ?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 缺少说明,通常是因为缺少分界符如逗号、分号、右圆 括号等所引起的。 ?Default outside switch Default部分放到了switch结构之外,一般是因为花括号 不匹配而引起的。 ?do statement must have while do语句中缺少相应的while部分。 ? Expression syntax 表达式语法错。如表达式中含有两个连续的运算符

C语言命语法错误大全

fatal error C1004:unexpected end of file found 未找到文件末尾(可能是括号匹配问题) fatal error C1021:invalid preprocessor command'1nclude' 无效的编译预处理命令'1nclude' fatal error C1083:Cannot open include file:'stdi.h':No such file or directory 不能打开头文件'stdi.h',文件或文件夹不存在 error C2101:'&'on constant 不能计算常量的地址 error C2059:syntax error:'while' 在'while'附近,存在语法错误 error C2061:syntax error:identifier'x' 标识符x的附近,存在语法错误 error C2065:'i':undeclared identifier 变量i未定义 error C2078:too many initializers 数组/结构等变量初始化时的数据太多 error C2087:'':missing subscript 丢失数组下标 error C2106:'=':left operand must be l-value '='的左侧应当是左值,即不能是常量 error C2115:'=':incompatible types '='两侧的类型不兼容 error C2133:'a':unknown size a(可能是数组名)的大小不确定。 error C2137:empty character constant 空的字符常量 error C2143:syntax error:missing';'before...... 在......之前,缺少';' error C2146:syntax error:missing')'before identifier'......' 在标识符'......'之前缺少')' error C2181:illegal else without matching if else缺少匹配的if error C2198:'printf':too few actual parameters 'printf'函数的参数太少 error C2223:left of'->x'must point to struct/union '->x'的左侧应是结构类型变量或联合类型变量 error C2224:left of'.x'must have struct/union type '.x'的左侧应是结构类型变量或联合类型变量 error C2371:'f1':redefinition;different basic types 函数'f1'的接口被重定义,参数类型或返回值类型不一致

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 -> 符号->的左边必须是指针

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.360docs.net/doc/636360827.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 :不允许转换近指针

Notepad正则表达式

Notepad++快捷键&正则表达式替换字符串&插件使用介绍 发布者:lovelclxf 时间:04-21 阅读数:798 点评:Notepad++绝对是windows下进行程序编辑的神器之一,要更快速的使用以媲美VIM,必须灵活掌握它的快捷键,下面对notepad++默认的快捷键做个整理(其中有颜色的为常用招数) Notepad++绝对是windows下进行程序编辑的神器之一,要更快速的使用以媲美VIM,必须灵活掌握它的快捷键,下面对notepad++默认的快捷键做个整理(其中有颜色的为常用招数): 1. 文件相关 快捷键动作定义 Ctrl-O 打开文件 Ctrl-N 新建文件 Ctrl-S 保存文件 Ctrl-Alt-S 文件另存为 Ctrl-Shift-S 保存所有打开文件 Ctrl-P 打印 Alt-F4 退出程序 Ctrl-Tab 文件标签跳转,跳至下一个打开文件 Ctrl-Shift-Tab 文件标签跳转,跳至上一个打开文件 Ctrl-W 关闭当前文件 2.编辑相关 快捷键动作定义 Ctrl-C 复制 Ctrl-Insert 同上,复制 Ctrl-Shift-T 复制当前行至剪贴板 Ctrl-X 剪切 Shift-Delete 同上,剪切

Ctrl-V 粘帖 Shift-Insert 同上,粘帖 Ctrl-Z 撤销上一次操作 Alt-Backspace 同上 Ctrl-Y 重做,注:撤销后,重做刚刚撤销的动作Ctrl-A 全选 Alt-Shift-方向键 或Alt + 鼠标左键 列选择模式 Ctrl + 鼠标左键非连续性的多区域选择 ALT-C 列编辑器 Ctrl-D 复制当前行至下方,或者复制选中区域至其后 Ctrl-T 复制当前行至剪贴板(注:帮助中说是将当前行与上一行交换位置) Ctrl-Alt-T 与上一行进行交换Ctrl-Shift-Up 将当前行上移一行Ctrl-Shift-Down 将当前行下移一行Ctrl-L 删除当前行 Ctrl-I -(注:帮助中是分割多行,不过最新版中不起作用) Ctrl-J 合并多行(注:使用时要选择中需要合并的行) Ctrl-G 跳转至某行对话框 Ctrl-Q 添加/删除注释 Ctrl-Shift-Q 区块添加/删除注释 Tab (selection of one or more full lines) 插入Tab Shift-Tab (selection of one or more full lines) 删除位置之前的Tab Ctrl-BackSpace 删除当前位置至单词开始的内容Ctrl-Delete 删除当前位置至单词结尾的内容Ctrl-Shift-BackSpace 删除当前位置至行首的内容 Ctrl-Shift-Delete 删除当前位置至行尾的内容 Ctrl-U 转换为小写 Ctrl-Shift-U 转换为大写 Ctrl-B 跳转至配对的括号 Ctrl-Space 触发函数自动完成列表 Ctrl-Shift-Space 触发函数参数提示 Ctrl-Enter 触发关键字自动完成列表

常见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语言经典错误

C语言命语法错误大全 C语言命语法错误大全 fatalerrorC1004:unexpectedendoffilefound 未找到文件末尾(可能是括号匹配问题) fatalerrorC1021:invalidpreprocessorcommand'1nclude' 无效的编译预处理命令'1nclude' fatalerrorC1083:Cannotopenincludefile:'stdi.h':Nosuchfileordirectory 不能打开头文件'stdi.h',文件或文件夹不存在 errorC2101:'&'onconstant C语言命语法错误大全 fatalerrorC1004:unexpectedendoffilefound 未找到文件末尾(可能是括号匹配问题) fatalerrorC1021:invalidpreprocessorcommand'1nclude' 无效的编译预处理命令'1nclude' fatalerrorC1083:Cannotopenincludefile:'stdi.h':Nosuchfileordirectory 不能打开头文件'stdi.h',文件或文件夹不存在 errorC2101:'&'onconstant

不能计算常量的地址 errorC2059:syntaxerror:'while' 在'while'附近,存在语法错误 errorC2061:syntaxerror:identifier'x' 标识符x的附近,存在语法错误 errorC2065:'i':undeclaredidentifier 变量i未定义 errorC2078:toomanyinitializers 数组/结构等变量初始化时的数据太多 errorC2087:'':missingsubscript 丢失数组下标 errorC2106:'=':leftoperandmustbel-value '='的左侧应当是左值,即不能是常量 errorC2115:'=':incompatibletypes '='两侧的类型不兼容 errorC2133:'a':unknownsize a(可能是数组名)的大小不确定。 errorC2137:emptycharacterconstant

相关文档
最新文档