⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graphfile.cpp

📁 这是个人脸识别程序
💻 CPP
字号:
// $masm\graphfile.cpp 1.5 milbo$ routines for graph files// Warning: this is raw research code -- expect it to be quite messy.// milbo durban May06//-----------------------------------------------------------------------------// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.//// A copy of the GNU General Public License is available at// http://www.r-project.org/Licenses///-----------------------------------------------------------------------------#include "all.hpp"static FILE *pgGraphFile;//-----------------------------------------------------------------------------FILE *pOpenGraph (const char sPrefix[], int iPoint){char sFile[FLEN];DASSERT(pgGraphFile == NULL);if (iPoint < 0)	sprintf(sFile, "graph/ga%s.txt", sPrefix);else	sprintf(sFile, "graph/g%s%2.2d.txt", sPrefix, iPoint);lprintf("Dumping to %s\n", sFile);pgGraphFile = Fopen(sFile, "w");return pgGraphFile;}//-----------------------------------------------------------------------------void CloseGraph (void){DASSERT(pgGraphFile != NULL);fclose(pgGraphFile);pgGraphFile = NULL;}//-----------------------------------------------------------------------------void WriteGraphComment (char sComment[], int i, int j){DASSERT(pgGraphFile != NULL);fprintf(pgGraphFile, sComment, i, j);}//-----------------------------------------------------------------------------void WriteGraphPoint (int i, double Data0){DASSERT(pgGraphFile != NULL);fprintf(pgGraphFile, "%d\t%g\n", i, Data0);}//-----------------------------------------------------------------------------void WriteGraphPoint (int i, double Data0, double Data1){DASSERT(pgGraphFile != NULL);fprintf(pgGraphFile, "%d\t%g\t%g\n", i, Data0, Data1);}

⌨️ 快捷键说明

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