亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? yacasmain-win32.cpp

?? 計算機代數系統
?? CPP
字號:
/* * Example terminal client for the yacas Computer Algebra library. * It is heavily tailored to Unix (Linux), but you should be able * to easily make a version that links with libyacas.a and provides * an interface for a different platform. * The platform-dependent parts are readline.cpp (which maintains * a history for keyed-in expressions on the command line), and * the directories it looks in for input files. */#include <stdio.h>#include "yacas.h"#include "win32commandline.h"#include "standard.h"// what's up with this VERSION define?//#define VERSION "Windows-latest"#include "GPL_stuff.h"CYacas* yacas=NULL;char scriptdir[512];static LispBoolean busy=true;static LispBoolean scripts=false;static char yacas_dir[_MAX_PATH];static char cfg_file_name[_MAX_PATH];static char *init_script="yacasinit.ys";static char *root_dir=NULL;void ReportNrCurrent(){#ifdef LISP_DEBUGHEAP    extern long theNrCurrent;    extern long theNrConstructed;    extern long theNrDestructed;    extern long theNrTokens;    extern long theNrDefinedBuiltIn;    extern long theNrDefinedUser;    printf("left-over: %ld objects\n",theNrCurrent);    printf("%ld constructed, %ld destructed\n",theNrConstructed,theNrDestructed);    printf("nr tokens: %ld \n",theNrTokens);    printf("-------------------------------\n");    printf("Total %d functions defined (%d built-in, %d user)\n",           theNrDefinedBuiltIn+theNrDefinedUser,           theNrDefinedBuiltIn,theNrDefinedUser);#endif}LispBoolean Busy(){    return busy;}void LispExit(LispEnvironment& aEnvironment, LispPtr& aResult,              LispPtr& aArguments){    busy = false;    InternalTrue(aEnvironment, aResult);}void my_exit(void){    delete yacas;    ReportNrCurrent();}void ShowResult(char *prompt){    if (yacas->Error()[0] != '\0')    {        printf("%s\n", yacas->Error());    }    else    {        printf("%s%s\n",prompt, yacas->Result());    }    fflush(stdout);}void loadYacasScriptDir(void);void parseCommandLine(int argc, char *argv[]);void runYacasCalculations(char *arg);void runYacasTestScript(void);void processMemoryOptions(int argc, char *argv[]){#ifndef NO_GLOBALS	for (int i = 1; i < argc; i++) {        if (!strcmp(argv[i], "-m")) {            extern void Malloc_SetHooks( void *(*malloc_func)(size_t),                                 void *(*calloc_func)(size_t, size_t),                                 void *(*realloc_func)(void *, size_t),                                 void (*free_func)(void *) );            Malloc_SetHooks( malloc, calloc, realloc, free );            return;        }    }#endif}int main(int argc, char *argv[]){    {       const char* yacas_exe = argv[0];       char yacas_drive[_MAX_DRIVE]; char fname[_MAX_FNAME]; char ext[_MAX_EXT];       _splitpath( yacas_exe, yacas_drive, yacas_dir, fname, ext );       if(yacas_dir[strlen(yacas_dir)-1] == '\\'){        yacas_dir[strlen(yacas_dir)-1] = 0;       }       sprintf(cfg_file_name, "%s%s\\%s", yacas_drive, yacas_dir, "yacas.cfg");    }    int line = 0;    processMemoryOptions(argc, argv);    yacas = CYacas::NewL();    atexit(my_exit);	if(argc > 1)		parseCommandLine(argc, argv);    (*yacas)()().Commands().SetAssociation(LispEvaluator(LispExit),         (*yacas)()().HashTable().LookUp("Exit"));	loadYacasScriptDir();	CWin32CommandLine commandline;    printf("Yacas " VERSION "\n");    printf(GPL_blurb_nohelp);    printf("To exit Yacas, enter  Exit(); or Ctrl-c. Type ?? for help.\n");    printf("Or type ?function for help on a function.\n");    printf("To see example commands, keep typing Example();\n");    while (Busy()) {        commandline.iLine = "";        commandline.ReadLine("In> ");        char *inpline = commandline.iLine.String();        if (inpline && *inpline) {            yacas->Evaluate(inpline);            ShowResult("Out> ");            line++;        }    }    printf("Quitting...\n");    return 0;}void loadYacasScriptDir(){	// Are the scripts already loaded?	if (scripts) return;	FILE *config;	char fullpath[512];    if (root_dir)    {      strcpy(scriptdir,root_dir);        {          char*ptr=scriptdir;          while (*ptr)          {            if (*ptr=='\\')              *ptr='/';            ptr++;          }        }        sprintf(fullpath, "DefaultDirectory(\"%s\");", scriptdir);        printf("Default directory: %s \n", scriptdir);		  yacas->Evaluate(fullpath);		  if(yacas->Error()[0] != '\0'){        {          if(config = fopen(cfg_file_name, "r")) goto LOADDIR;          goto getdir;        }		  }    }else    if(config = fopen(cfg_file_name, "r")) {LOADDIR:		fgets(scriptdir, 512, config);	// Use the location specified        sprintf(fullpath, "DefaultDirectory(\"%s\")", scriptdir);        printf("Default directory: %s \n", scriptdir);		yacas->Evaluate(fullpath);		fclose(config);		if(yacas->Error()[0] != '\0'){			goto getdir;		}	} else {getdir:		config = fopen(cfg_file_name, "w");		printf("Directory where the scripts are (use a full path name)\n");		printf("Path: ");		gets(scriptdir);		unsigned i = 0;		for(i = 0; i <= strlen(scriptdir); i++){			if(scriptdir[i] == '\\')				scriptdir[i] = '/';		}		// Make sure the end has a ending backslash		if(scriptdir[i-2] != '/'){			scriptdir[--i] = '/';			scriptdir[++i] = '\0';		}        printf("Saving script path %s in %s \n", scriptdir, cfg_file_name);		fputs(scriptdir, config);			// Store the location of scripts for											// reference later  	fclose(config);	}	strcpy(fullpath, "DefaultDirectory(\"");	strcat(fullpath, scriptdir);	strcat(fullpath, "\");");    yacas->Evaluate(fullpath);    {      char buf[500];      sprintf(buf,"Load(\"%s\");",init_script);      yacas->Evaluate(buf);    }    //yacas->Evaluate("FullForm(a_3+a_4)");    if (yacas->Error()[0] != '\0'){        ShowResult("");    }	scripts = true;}void runYacasCalculations(char *arg){	loadYacasScriptDir();	char s[200];	sprintf(s,"Load(\"%s\");", arg);	yacas->Evaluate(s);	exit(0);}void runYacasTestScript(void){	char fullpath[512];	loadYacasScriptDir();    sprintf(fullpath, "Load(\"%sexamples/tests.ys\");", scriptdir);	yacas->Evaluate(fullpath);}void parseCommandLine(int argc, char *argv[]) {	for (int i = 1; i < argc; i++) {		if (!strcmp(argv[i],"-d") || !strcmp(argv[i],"--scriptdir")) {			loadYacasScriptDir();			printf("%s\n",scriptdir);		}else		if (!strcmp(argv[i],"-h") || !strcmp(argv[i],"--help") || !strcmp(argv[i],"/?")) {			printf("Yacas Windows client -- version %s\n", VERSION);			printf("The following command line options are available:\n\n");			printf("\t-d  --scriptdir\t\tPrints the path of the script directory.\n");			printf("\t-f  --runfile\t\tLoad and evaluate the file provided\n");			printf("\t-h  --help\t\tPrints this message.\n");			printf("\t-t  --test\t\tRuns the test script.\n");            printf("\t-e  --eval\t\tEvaluate the expression passed in the command line.\n");			printf("\t-v  --version\t\tPrints version of yacas this client uses.\n");		}else		if (!strcmp(argv[i],"-t") || !strcmp(argv[i],"--test")) {			runYacasTestScript();		}else		if (!strcmp(argv[i],"-v") || !strcmp(argv[i],"--version")) {			puts(VERSION);		}else		if (!strcmp(argv[i],"-f") || !strcmp(argv[i],"--runfile")) {			if (i + 1 <= argc) {				runYacasCalculations(argv[++i]);			} else {				printf("%s: you need to supply a filename for \'%s\'\n",					   argv[0], argv[i]);				exit(1);			}		}else    if (!strcmp(argv[i],"--init"))    {        i++;        init_script = argv[i];            continue;    }    else if (!strcmp(argv[i],"--rootdir"))    {        i++;        root_dir = argv[i];            continue;    } else                   if(!strcmp(argv[i],"-e") || !strcmp(argv[i],"--eval")) {            i++;            loadYacasScriptDir();            const char* inpline = argv[i];            printf("In> %s \n", inpline);            yacas->Evaluate(inpline);            ShowResult("Out> ");        }else        if(!strcmp(argv[i],"-m")) {            // do nothing here            continue;        }else{            printf("Invalid argument %s \n", argv[i]);        }            exit(0);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线中文字幕一区| 国产麻豆精品一区二区| 国产成a人亚洲| 欧美日韩另类一区| 欧美国产日产图区| 亚洲午夜一区二区| 久久精品久久精品| 色呦呦国产精品| 久久九九久久九九| 天堂va蜜桃一区二区三区漫画版| 成人av在线资源网| 久久久久国产精品麻豆| 亚洲激情自拍视频| 国产69精品一区二区亚洲孕妇| 欧美伊人久久久久久午夜久久久久| 久久婷婷成人综合色| 一区二区三区四区在线| 美国十次了思思久久精品导航| 91视频在线看| 国产视频不卡一区| 青青草91视频| 欧美性大战久久久久久久蜜臀| 久久久99久久| 日韩成人av影视| 色婷婷综合激情| 国产女同互慰高潮91漫画| 欧美aⅴ一区二区三区视频| 在线精品视频免费观看| 久久丝袜美腿综合| 日本91福利区| 精品污污网站免费看| 18欧美乱大交hd1984| 国产精品资源站在线| 欧美一级日韩免费不卡| 亚洲国产裸拍裸体视频在线观看乱了| av毛片久久久久**hd| 午夜在线电影亚洲一区| 97精品国产露脸对白| 中文子幕无线码一区tr| 国产成人在线电影| 日本一区二区三区四区在线视频| 国产精品99久久久久久宅男| 欧美成人午夜电影| 免费观看在线综合色| 欧美日本在线一区| 亚洲一区二区黄色| 色激情天天射综合网| 1024成人网色www| av中文字幕在线不卡| 国产精品素人视频| 国产精品综合在线视频| 精品av久久707| 激情丁香综合五月| 久久精品在这里| 国产一区二区电影| 精品久久久久久久久久久久久久久久久 | 天天亚洲美女在线视频| 国产·精品毛片| 在线播放日韩导航| 欧美a一区二区| 日韩视频免费观看高清完整版在线观看 | 91精品国产手机| 天天综合网天天综合色| 欧美一区二区三区日韩视频| 美女尤物国产一区| 久久精品人人做人人爽人人| 成人免费毛片片v| 亚洲精品日韩综合观看成人91| 欧美日韩一区二区三区不卡 | 国产精品国产a级| 欧美三级在线视频| 久99久精品视频免费观看| 久久综合九色综合97婷婷| 国产一区二区三区在线观看免费| 久久久久青草大香线综合精品| 粉嫩aⅴ一区二区三区四区五区| 国产精品天天看| 色av一区二区| 日本欧美加勒比视频| 精品sm捆绑视频| 成人午夜激情影院| 亚洲一区二区欧美激情| 69精品人人人人| 捆绑调教美女网站视频一区| 2020日本不卡一区二区视频| 成人激情文学综合网| 一区二区成人在线观看| 色综合久久88色综合天天免费| 亚洲国产人成综合网站| 国产精品久久一级| 欧美色老头old∨ideo| 亚洲色图都市小说| 色天天综合色天天久久| 日韩精彩视频在线观看| 亚洲国产精华液网站w| 欧美在线观看视频一区二区| 美国十次综合导航| 国产精品福利在线播放| 在线不卡a资源高清| 国产精品996| 亚洲电影在线免费观看| 亚洲精品一线二线三线| 99v久久综合狠狠综合久久| 午夜精品爽啪视频| 国产夜色精品一区二区av| 色偷偷久久人人79超碰人人澡 | 久久精品在线免费观看| 91在线你懂得| 青草av.久久免费一区| 中文字幕不卡在线观看| 欧美日本一区二区| 国v精品久久久网| 婷婷激情综合网| 国产精品欧美一级免费| 欧美日韩高清一区二区三区| 国产精品小仙女| 五月激情综合色| 国产精品热久久久久夜色精品三区 | 国产女人18毛片水真多成人如厕 | 久久电影国产免费久久电影| 亚洲男人电影天堂| 26uuuu精品一区二区| 欧美在线不卡视频| 成人永久看片免费视频天堂| 婷婷六月综合网| 最新成人av在线| 久久久久97国产精华液好用吗| 欧美三电影在线| 成人黄色电影在线 | 91麻豆国产香蕉久久精品| 黄页视频在线91| 午夜精品一区在线观看| 国产精品第四页| 精品国产一区二区三区忘忧草| 国产高清不卡二三区| 欧美aa在线视频| 亚洲chinese男男1069| 亚洲欧洲日产国码二区| 欧美精品一区二区三区四区| 国产精品的网站| 欧美精品一区二区三区在线播放 | 另类小说欧美激情| 亚洲电影视频在线| 国产精品萝li| 久久久久久久网| 精品国产伦理网| 69av一区二区三区| 欧美在线观看一区| 色婷婷av一区二区三区之一色屋| 黄色成人免费在线| 日日骚欧美日韩| 亚洲一区二区欧美日韩| 亚洲视频在线一区观看| 国产精品女人毛片| 欧美国产综合一区二区| 精品国产精品网麻豆系列| 日韩一区二区三区三四区视频在线观看| 91麻豆高清视频| 91无套直看片红桃| 色妹子一区二区| 欧美日韩一级片在线观看| 欧美日本精品一区二区三区| 欧美美女一区二区| 日韩一级欧美一级| 精品国产一二三| 国产亚洲人成网站| 国产精品嫩草影院av蜜臀| 亚洲欧美综合色| 亚洲一区二区三区中文字幕| 亚洲国产日韩a在线播放性色| 日韩精品欧美成人高清一区二区| 久久精品国产一区二区| 国产高清精品网站| 91在线视频官网| 欧美日韩国产bt| 欧美sm美女调教| 日本一区二区不卡视频| 2023国产一二三区日本精品2022| 久久理论电影网| 国产日韩欧美一区二区三区乱码| 国产精品美女久久久久av爽李琼| 亚洲色图视频网| 亚洲一区影音先锋| 久久69国产一区二区蜜臀| 蜜臀av一级做a爰片久久| 精品一区二区三区久久| 成人国产精品免费观看动漫| 成人理论电影网| 欧美三级电影在线看| 91官网在线免费观看| 欧洲精品一区二区| 99riav一区二区三区| 欧美日韩黄色一区二区| 久久看人人爽人人| 国产精品成人一区二区三区夜夜夜| 亚洲综合色噜噜狠狠| 久国产精品韩国三级视频| 成人三级伦理片| 欧美福利电影网| 久久亚洲一级片|