Re: [Dev-C++] how to draw a graph in a .xls file with C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Eric <eri...@cl...> - 2005-01-03 20:16:38
|
As Alfred said ".XLS is a formatted file"
Is this homework to a C++ class?
you say "built a graph" and "using the two columns"
I think what is the mathematics function of the graph? e.g. just a simple x=y+1.
I am sure a graph needs more than "two columns"
man what a weird project.
----- Original Message -----
From: "george_y" <geo...@li...>
To: "dev-cpp-users" <dev...@li...>
Sent: Monday, January 03, 2005 1:21 PM
Subject: [Dev-C++] how to draw a graph in a .xls file with C++
In the following simple program I have to write the code to built a graph in
the .xls output file using the two columns that have been created.
Thanks,
George
#include <fstream>
using namespace std;
int main()
{
double a[10]= {1,2,3,4,5,6,7,8,9,10};
double b[10]= {11,12,13,14,15,16,17,18,19,20};
ofstream fout;
fout.open("www.xls");
int n= 0;
for(n= 0; n< 10; n++)
{
fout<< a[n]<<"\t"<<b[n]<<endl;
}
fout.close();
return 0;
}
____________________________________________________________
Regala e regalati Libero ADSL: 3 mesi gratis e navighi veloce. 1.2 Mega di musica, film, video e sport.
Abbonati subito senza costi di attivazione su http://www.libero.it
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|