Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 12th, 2008, 8:27 AM   #1
pzycho
Newbie
 
Join Date: Oct 2008
Posts: 3
Rep Power: 0 pzycho is on a distinguished road
drawing in C

I have to draw the graphics of the SIN() and COS() functions using C. If anyone can help, please answer here, so i can give some more details.
pzycho is offline   Reply With Quote
Old Oct 12th, 2008, 8:59 AM   #2
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 600
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: drawing in C

depends on the operating system. If you are using MS-Windows/DOS then dig up an ancient copy of TurboC which makes drawing pretty easy. Here are a few tutorials -- never used them so I don't know if they are any good or not.
__________________
<<Freelance Programmer>> << Hobby Site>>
Ancient Dragon is offline   Reply With Quote
Old Oct 12th, 2008, 9:03 AM   #3
pzycho
Newbie
 
Join Date: Oct 2008
Posts: 3
Rep Power: 0 pzycho is on a distinguished road
Re: drawing in C

thanks for the quick response, but i have to do it in Visual Studio 6. and i already saw these tutorials The main thing is that i need to do something like:
a = A*sin(wt + f);
b = B*cos(wt + f);
and then draw these graphics on screen.
pzycho is offline   Reply With Quote
Old Oct 12th, 2008, 2:48 PM   #4
Benoit
Expert Programmer
 
Benoit's Avatar
 
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 579
Rep Power: 5 Benoit is on a distinguished road
Re: drawing in C

You could do this using a library such as SDL (Simple Direct Media Layer), which would also make it portable to other platforms
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4
Benoit is offline   Reply With Quote
Old Oct 12th, 2008, 3:03 PM   #5
pzycho
Newbie
 
Join Date: Oct 2008
Posts: 3
Rep Power: 0 pzycho is on a distinguished road
Re: drawing in C

thanks for the advice, i'll google this up. if i have any more questions i'll post them here
pzycho is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drawing Trees in with Swing hoffmandirt Java 2 Oct 1st, 2008 2:58 AM
Drawing shapes venkatramasamy ASP.NET 0 Dec 19th, 2007 11:22 PM
Drawing in console (UNIX) Wizard1988 C 2 Nov 15th, 2007 2:06 PM
Drawing To ImageList HackeZ Visual Basic 0 Dec 19th, 2005 1:17 PM
Keep Drawing Pixels without previous ones cleared. JavaMan Java 4 Oct 27th, 2005 8:43 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:12 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC