Hi..
I have to make a program in c++ for plotting a sine curve..using arrays ..in horizontal direction not vertical ..
can I have an alogarithm or just a hint how to go on making ...thanks :)
aminura
0
Light Poster
Recommended Answers
Jump to PostIt depends how sophisticated you want to get. If it is a simple text based console program, you can make an array of strings. Each string contains let's say eighty characters, all spaces but for one asterisk. It will be your genius to place the lonely asterisk at the right …
Jump to PostOops, if you want to go in the horizontal direction there might be more than one astrisk in the string! Fuzzy thinking on my part!
All 8 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
aminura
0
Light Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
aminura
0
Light Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Alexoo
-1
Newbie Poster
Salem
commented:
Go away you sponge - this is a forum, not a stopover for you to boardcast your homework and then sit back and hope an anwer gets into your inbox
-1
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.