test_sample.ch

来自「模拟器提供了一个简单易用的平台」· CH 代码 · 共 62 行

CH
62
字号
@x l.32@t\4@>int main()@yint main(void)@z@x l.165static void pr_vert();   /* a subroutine for printing a vertex is declared below */static void pr_arc(); /* likewise for arcs */static void pr_util(); /* and for utility fields in general */static void print_sample(g,n)  Graph *g; /* graph to be sampled and destroyed */  int n; /* index to the sampled vertex */@ystatic void pr_vert(Vertex *,int,char *);   /* a subroutine for printing a vertex is declared below */static void pr_arc(Arc *,int,char *); /* likewise for arcs */static void pr_util(util,char,int,char *); /* and for utility fields in general */static void print_sample(@t\1\1@>  Graph *g, /* graph to be sampled and destroyed */  int n@t\2\2@>) /* index to the sampled vertex */@z@x l.191static void pr_vert(v,l,s)  Vertex *v; /* vertex to be printed */  int l; /* |<=0| if the output should be terse */  char *s; /* format for graph utility fields */@ystatic void pr_vert(@t\1\1@>  Vertex *v, /* vertex to be printed */  int l, /* |<=0| if the output should be terse */  char *s@t\2\2@>) /* format for graph utility fields */@z@x l.216static void pr_arc(a,l,s)  Arc *a; /* non-null arc to be printed */  int l; /* |<=0| if the output should be terse */  char *s; /* format for graph utility fields */@ystatic void pr_arc(@t\1\1@>  Arc *a, /* non-null arc to be printed */  int l, /* |<=0| if the output should be terse */  char *s@t\2\2@>) /* format for graph utility fields */@z@x l.231static void pr_util(u,c,l,s)  util u; /* a utility field to be printed */  char c; /* its type code */  int l; /* 0 if output should be terse, |-1| if pointers omitted */  char *s; /* utility types for overall graph */@ystatic void pr_util(@t\1\1@>  util u, /* a utility field to be printed */  char c, /* its type code */  int l, /* 0 if output should be terse, |-1| if pointers omitted */  char *s@t\2\2@>) /* utility types for overall graph */@z

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?