📄 keyword.h
字号:
int Keyword( char *s )
{
char k_word[69][17]=
{"asm","auto","bool","break",
"case","catch","char","class",
"const","const_cast","continue","default",
"delete","do","double","dynamic_cast",
"else","enum","except","explicit",
"extern","false","finally","float",
"for","friend","goto","if",
"inline","int","long","mutable",
"namespace","new","operator","private",
"protected","public","register","reinterpret_cast",
"return","short","signed","sizeof",
"static","static_cast","struct",
"switch","template","this","throw",
"true","try","type_info","typedef",
"typeid","typename","union","unsigned",
"using","virtual","void","volatile","while", /*64*/
"include","iostream.h","main","cout","cin"};
int i ;
for ( i = 0 ; i < 69 ; i++ )
{
if ( strcmp(s,k_word[i]) == 0 ) break ;
}
if ( i==69 ) return 0 ;
else return 1 ;
}
int Divmarks( char *s )
{
//const int t=8 ;
char divmarks[8][2]={"(",")","<",">","[","]","{","}"};
int i ;
for ( i = 0 ; i < 8 ; i++ )
{
if ( strcmp(s,divmarks[i]) == 0 ) break ;
}
if ( i==8 ) return 0 ;
else return 1 ;
}
int Operatormarks( char *s )
{
//const int t=37 ;
char operatormarks[37][4]=
{"::",".","->","++","--",
"+","-","!","~","&","*",
".*","->*","/","%","<<",">>",
"<",">","<=",">=","==","!=",
"^","|","&&","||","=","+=",
"-=","*=","/=","%=","&=","^=",
"<<=",">>="};
int i ;
for ( i = 0 ; i < 37 ; i++ )
{
if ( strcmp(s,operatormarks[i]) == 0 ) break ;
}
if ( i==37 ) return 0 ;
else return 1 ;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -