Getting C++ data into an excel graph

M

metalimi

Hello,

Let me start off by saying I am not the best C++ program in the
world(and probablly in the room). I have been tasked to take a
histogram and put it into a 2D graph in EXCEL. I have looked around for
wrappers that would help with this but they either won't compile
correctly or are a bit to complicated. I dont need any special
functionality except this one graph from excel. Basically I need to
input 256 numbers and put them on a bar graph from C++.

Thank you for any help or guidance
 
A

Alf P. Steinbach

* (e-mail address removed):
Let me start off by saying I am not the best C++ program in the
world(and probablly in the room). I have been tasked to take a
histogram and put it into a 2D graph in EXCEL. I have looked around for
wrappers that would help with this but they either won't compile
correctly or are a bit to complicated. I dont need any special
functionality except this one graph from excel. Basically I need to
input 256 numbers and put them on a bar graph from C++.

C++ is a great language for some things, but not for scripting
applications. To script an application, use a scripting language. For
example, that application's scripting language.

In other respects your question is off-topic in this newsgroup.
 
J

Jack Klein

Hello,

Let me start off by saying I am not the best C++ program in the
world(and probablly in the room). I have been tasked to take a
histogram and put it into a 2D graph in EXCEL. I have looked around for
wrappers that would help with this but they either won't compile
correctly or are a bit to complicated. I dont need any special
functionality except this one graph from excel. Basically I need to
input 256 numbers and put them on a bar graph from C++.

Thank you for any help or guidance

All that standard C++, the only topic discussed here, can do for you
is to write the numbers to a text file. Depending on the organization
of the data, that might be one number per line, or multiple numbers
separated by delimiters like ',' or tab ('\t').

You can then quite easily import the delimited text file into Excel
and have it create your graph.

If this manual step is unacceptable to you, and you want to completely
automate the process, you'll need to ask about it in Windows or
Microsoft specific groups, there's nothing in the standard C++
language to help you.
 
B

benben

If this manual step is unacceptable to you, and you want to completely
automate the process, you'll need to ask about it in Windows or
Microsoft specific groups, there's nothing in the standard C++
language to help you.

Alternatively, if execution speed isn't an issue, use C++ to write a
script and save it to a file, make a shell call to run the script. The
shell call is not part of the standard library, however, you should be
able to use the one provided by the platform quite easily.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top