Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want a code only in c_language using fn called "DrawText" to draw an equation like (pow(x,3/x)+pow(x,0.5))/sin(x)
to be in mathematical forum ..support the root shape ..and the fraction line and the power...
Posted
Comments
Albert Holguin 27-Jun-11 21:23pm    
I'm pretty sure I've seen this exact question before...
spiderh 27-Jun-11 21:30pm    
where??
Albert Holguin 27-Jun-11 21:37pm    
Maybe I'm just remembering this:
draw equation in mathmatically form and its graph[^]

Anyway, C and C++ are very similar... so if you find something very close to what you want/need... try converting it over... it really wouldn't be that hard.
Christian Graus 27-Jun-11 21:49pm    
On the contrary, as C and C++ both have no support for drawing, if he finds a C++ example, odds are good it will use a C++ based library, such as MFC, which he can't access in C. Assuming he's even on a PC.
Albert Holguin 27-Jun-11 21:54pm    
MFC is a WinAPI wrapper, you can make all the calls directly to the API. He's already attempting to use DrawText(), a WinAPI call.

1 solution

Well, there's a few issues here. First of all, we're not here to do the work of people who don't try to do it themselves. Second, as the C language ( and also C++ ) have no support for any sort of drawing, what you want is impossible, without first telling us what platform you're using, what libraries will provide you with drawing functionality, etc. Based on the lack of research you've done, and your request to do all your work for you, and how difficult C is compared to C++ or even C#, I'd say you're in the wrong course, or, heaven forbid, the wrong job.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900