Article View: free.it.visual-basic
Article #1041grafico in excel con C++
From: george
Date: Mon, 03 Jan 2005 00:48
Date: Mon, 03 Jan 2005 00:48
47 lines
1435 bytes
1435 bytes
Potete aiutarmi a scrivere il codice in C++ per creare un grafico in
excel con le due colonne generate nel file .xls dal piccolo programma di
seguito riportato.
#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;
}
Grazie ,
George
--
george
Inviato da www.mynewsgate.net
Technical Details
Message-ID:
<2005010300485213218@mynewsgate.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.mailgate.org!nntp.infostrada.it!news.panservice.it!x-privat.org!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f94ee,bcb6640629003a9b,start X-Google-Attributes: gidf94ee,public X-Google-Language: ENGLISH,ASCII-7-bit From: "george" <george_y@libero.it> Newsgroups: free.it.visual-basic Subject: grafico in excel con C++ Message-ID: <2005010300485213218@mynewsgate.net> Date: Mon, 03 Jan 2005 00:48:52 GMT X-Newsreader: www.mynewsgate.net X-Complaints-To: abuse@mynewsgate.net NNTP-Posting-Host: 80.104.143.73 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.mailgate.org!nntp.infostrada.it!news.panservice.it!x-privat.org!not-for-mail Lines: 47