[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: george_y <geo...@li...> - 2005-01-03 00:21:31
|
In the following simple program I have to write the code to built a grap=
h in
the .xls output file using the two columns that have been created.=0D
=
Thanks,
George
#include <fstream>
using namespace std=
;
int main()
{
double a[10]=3D {1,2=
,3,4,5,6,7,8,9,10};
double b[10]=3D {11,12,13,14,15,16,17,18,19,20=
};
ofstream fout; =0D
=
fout.open("www.xls");
int n=3D 0;
for(=
n=3D 0; n< 10; n++)
{
fout<< a[n]<<"\t"<<b[n]<<endl;
} =
fout.close();
return 0;
} =0A=0A=
=0A=0A____________________________________________________________=0ARega=
la e regalati Libero ADSL: 3 mesi gratis e navighi veloce. 1.2 Mega di mu=
sica, film, video e sport. =0AAbbonati subito senza costi di attivazione =
su http://www.libero.it=0A=0A
|