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

📄 basicexcelpresentation.cpp

📁 financal instrument pricing using c
💻 CPP
字号:
// BasicExcelPresentation.cpp
//
// Implementation of Presentation activity.
// Creates charts of the functions in MS Excel.
//
// Datasim Education BV (c) 2003
// 
// Modification dates:
// 23 July 2003 - MB - Started.
// 29 July 2003 - MB - Using shared ExcelDriver instance.
// 2003-9-15 DD Simplified version

#include <iostream>
#include <string>
#include <list>
using namespace std;

#include "Vector.cpp"
#include "ExcelDriver.cpp"

// Create Excel spreadsheet and show values.
void Present( const Vector<double, int> & x, const Vector<double, int> & function,
				const string& chartTitle, const string& cellTitle) 
{
	try
	{
		// Excel is invisible initially.
		cout << "Creating Excel output, please wait a moment..." << endl;

		// Create and initialize excel.
		ExcelDriver & excel = ExcelDriver::Instance();
		excel.MakeVisible(true);		// Default is INVISIBLE!

		// Create list with function + derivatives and their labels.
		list<Vector<double, int> > functions;
		list<string> labels;
		functions.push_back(function);
		labels.push_back(cellTitle);

		// Display list of function + derivatives in single chart.
		excel.CreateChart(x, labels, functions, chartTitle, "XX", "YY");

	}
	catch( string error )
	{
		cout << error << endl;
	}
}

⌨️ 快捷键说明

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