By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,238 Members | 1,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,238 IT Pros & Developers. It's quick & easy.

How to plot Sin wave ?

P: n/a
I want to use MFC to plot Sin Wave . How can I do ?
Jul 22 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Sloan wrote:
I want to use MFC to plot Sin Wave . How can I do ?


MFC isn't part of standard C++.

Maybe by heading off to

news:microsoft.public.vc.mfc

Stewart.

--
My e-mail is valid but not my primary mailbox. Please keep replies on
the 'group where everyone may benefit.
Jul 22 '05 #2

P: n/a
Sloan wrote:
I want to use MFC to plot Sin Wave . How can I do ?


The _standard_ C++ method to plot a sine wave is to
use ASCII artwork.

For example, use '*' as the point character.
I would create a vector of strings. Each string
represents the points in the horizontal direction.
The vector represents the vertical direction.

Hey, it may not be spectacular but it is portable
and doesn't depend on platform specifics of
untrustworthy mega-businesses.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #3

P: n/a
Thomas Matthews <Th****************************@sbcglobal.net> wrote in message news:<tC****************@newssvr33.news.prodigy.co m>...
Sloan wrote:
I want to use MFC to plot Sin Wave . How can I do ?
The _standard_ C++ method to plot a sine wave is to
use ASCII artwork.


The pragmatic - as in PragProg - method to plot a sine wave with C++ is to
write ASCII output that can be understood by a plotting program, e.g. gnuplot,
or to write a SVG file that can be displayed by a sufficiently capable web
browser.

<SNIP>
Hey, it may not be spectacular but it is portable
and doesn't depend on platform specifics of
untrustworthy mega-businesses.


Such output can be made to look really nice, and you don't need any complicated
framework, whether from untrustworthy mega-businesses or other, more convenient,
sources.

Uwe
Jul 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.