📄 abc.cpp
字号:
#include"stdio.h"
#include"stdlib.h"
#include"string.h"
#include"malloc.h"
typedef union
{
char atom;
struct
{
struct GLNode *hp,*tp;
}htp;
}atomhtp;
typedef struct GLNode
{
int tag;
atomhtp atom_htp;
}GLNode,*GList;
void main()
{
GLNode g;
g.atom_htp.htp
}
/*typedef union
{
char atom;
struct
{
//struct GLNode *hp,*tp;
int a,b;
}htp;
}uni;
void main()
{
uni g;
g.htp
}*/
/*#include"stdio.h"
struct a
{char ch[40];};
void main()
{
//char s[15];
/*for(i=0;i<3;i++)
{
scanf("%c",&s[i]);
}
printf("输入为:");
s[2]='\n';
for(i=0;i<15;i++)
printf("%c",s[i]);*/
//gets(s);
//struct a haha;
//char s[]="()\0";
//haha.ch=s;
//gets(haha.ch);
//puts(haha.ch);*/
/*#include"stdio.h"
#include"stdlib.h"
#include"string.h"
typedef struct
{
char ch[40];
int len;
}SString;
int StrLength(SString s)
{
return(s.len);
}
int SubString(SString *sub,SString s,int pos,int len)
{
int i;
if(pos<0||pos>s.len||len<1||len>s.len-pos)
{
sub->len=0;
return(0);
}
else
{
for(i=0;i<len;i++)
sub->ch[i]=s.ch[i+pos];
sub->len=len;
return(1);
}
}
void main()
{
SString s1,s2;
gets(s1.ch);
s1.len=strlen(s1.ch);
SubString(&s2,s1,1,StrLength(s1)-2);
printf("%s",s2.ch);
}*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -