nepcmain.c

来自「是一个小计算器的例子」· C语言 代码 · 共 27 行

C
27
字号
#include <stdio.h>#include "y.tab.c"extern int yyparse();extern FILE * yyin;void motd(){    printf("--------------------------------------------------------------\n");    printf(">> nepc-0.2-r2 - A mini limited precision interpreting calculator.\n");    printf(">> Copyright (C) 2005 neplusultra@linuxsir.org\n");    printf(">> nepc is open software; you can redistribute it and/or modify\n\   it under the terms of the version 2.1 of the GNU Lesser \n\   General Public License as published by the Free Software\n\   Foundation.\n>> Type 'exit' to quit, type 'help' to get help.\n");    printf("--------------------------------------------------------------\n");}int main(void) {    motd();    yyin=stdin; /* set parse stream to standard input */    yyparse(); /* begin parse */    fclose(yyin);    return 0;}

⌨️ 快捷键说明

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