Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.33/5 (2 votes)
See more:
I want to define a graph not a tree with some nodes and edges and be able to add and remove nodes and edges (no help of graphics.h library). tnx
Posted
Updated 19-Jan-15 9:51am
v2

That is a graphics (I believe you also wanted to say Graphics instead of Graph) object and C is not very good choice for creating graphics objects and you're also trying to ignore any library (graphics.h) to be used in order to create such object. All of the online tutorials that you're going to find would also make a good use of that library, so without it I don't think you can create it (unless you're an expert or beyond).

http://www.programmingsimplified.com/c-graphics-programming-tutorial[^] (also uses graphics.h library).
 
Share this answer
 
Comments
Suzan Samivand 19-Jan-15 11:53am    
Ive read this , but no help,can i define the library then use it?
Afzaal Ahmad Zeeshan 19-Jan-15 12:03pm    
Why do you need to re-define the library, just use the already build in library. Developers of the C language faced the nightmares so that developers like us can use them for our purposes rather than re-creating the logics again.
Suzan Samivand 20-Jan-15 4:04am    
but im not allowed to include the library i thought maybe i define it then i use it
Afzaal Ahmad Zeeshan 20-Jan-15 9:14am    
Sadly you cannot, unless you gain enough knowledge about these core concepts of programming, like pixels, how to change them (color them) and what limit of pixels your application is going to target to paint etc. It is not a simple task, who stopped you from doing so? Tell him/her that you're just a beginner...
This is not as easy as it appears.
For a tutorial, try C Program to generate Graph using grphics.h [^].
 
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