📄 test.c
字号:
#include "component.h"
#include "graph.h"
#include "drive.h"
void handler ()
{
network_ctx ctx;
int i;
/* set up equations */
i = network_first (&ctx);
while (i>=0) {
EQ_reset ();
network_closure (i);
dump_link ();
link_circuit ();
dump_EQ ();
EQ_resolve ();
link_voltage ();
link_reset ();
i = network_next (&ctx);
}
}
main()
{
extern FILE *yyin;
FILE *fp=fopen ("a.net","rt");
yyin=fp;
comp_init();
node_init();
yyparse();
fclose(fp);
vars_init ();
dump_pins();
dump_nodes();
drive_start (handler, 1e-6);
drive_run ();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -