Thread: How to make circle in C++?

  1. #31
    Registered User userxbw's Avatar
    Join Date
    Aug 2017
    Posts
    523
    Quote Originally Posted by RITESHKAKKAR View Post
    hello,
    Sir


    i have no idea how to use graphics library please tell how to this?
    you have a link to one in my post, did you miss it?
    I think it is time you at least searched for some free material on line so you can at least read up a little on programming in the language you're attempting to try to code in.

    get the basics down first and learn some programing logic along the way. It will benefit you in a long run.
    Last edited by userxbw; 1 Week Ago at 08:13 AM.

  2. #32
    Registered User
    Join Date
    Dec 2007
    Posts
    114
    I'm just going to give my two cents here. It is more likely than not this guy is either a troll or still in early grade school. I can understand not everyone speaks English very well or knows how to use a C++ compiler (trust me, it was intimidating when I was new, too), but the fact is he is the epitome of a "help vampire." He does no research of his own, the forum is his first stop for "help," he's vague beyond all reason, and when he receives "help," he pushes and pushes until you guys just flat out give him the code. What does he do next? He asks for the solution to a very similar problem that could be solved with what he already has.

    I'm not making fun of anyone new to C++ or non-English speakers, but it is clearly evident that he won't bother to solve anything by himself. I would advise you to stop feeding the troll.

  3. #33
    Registered User
    Join Date
    Oct 2017
    Posts
    29
    how to install and use graphic file

  4. #34
    Registered User
    Join Date
    May 2009
    Posts
    3,190
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  5. #35
    Registered User
    Join Date
    Oct 2017
    Posts
    29
    hello
    please help me with graphic install where to download and install to make circle

  6. #36
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,381
    al_draw_circle - Allegro 5 Manual

    In the same site you will find instructions on how to install and use the library.
    Devoted my life to programming...

  7. #37
    Registered User
    Join Date
    Oct 2017
    Posts
    29
    HI SIR
    IT IS NOT WORKING
    how to innstall graphics please tell in step how to do this?

  8. #38
    Registered User
    Join Date
    May 2009
    Posts
    3,190
    1. Learn what a compiler is.
    2. Learn what compiler you are using and what version it is.
    3. Find a Graphic library that work with your compiler

    allegro Files

    Never used allegro; but, it might work. But, it is unlikely that you will work to make it work.

    Help Vampire you have been called; no idea if you are one; but, you appear to be either lazy or very ignorant.
    I posted a link on how to ask a smart question; but, maybe you are not smart enough to follow links.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  9. #39
    misoturbutc Hodor's Avatar
    Join Date
    Nov 2013
    Posts
    1,206
    Ok, I'll just give you the code

    circle.c
    Code:
    #include <stdio.h>
    
    int main(void)
    {
            int n;
            const char *s = 
                "18_4A15_4A22_\n18 4V15 4V\n18 (2_)15 (2_)\n19 \\ \\15 / /\n20 "
                "\\ \\3 2\\3|2/3 / /\n21 > \\3 _3 _3 / <\n22 > \\ / \\ / \\ / <"
                "\n23 > 2\\_o_o_2/ <\n24 > ( (_) ) <\n25 >|5 |<\n24 / |\\3_/| \\"
                "\n24 / (5_) \\\n24 /9 \\\n25 /3 o3 \\\n26 ) 3_ (\n25 / /3 \\ \\"
                "\n24 ( /5 \\ )\n24 ><7 ><\n23 3/\\5 /3\\\n23 3'7 3'\n";
            
            for (; *s; s++) {
                    for (n = 0; *s >= '0' && *s <= '9'; s++)
                            n = *s - '0' + n*10;
                    for (n += !n; n--; putchar(*s))
                            ;
            }
            return 0;
    }

  10. #40
    Registered User
    Join Date
    Oct 2017
    Posts
    29
    Ok, I'll just give you the code

    circle.c
    hELLO
    it is working but not circle i want to study graphics and allegro

  11. #41
    Registered User
    Join Date
    Oct 2017
    Posts
    29
    2. Learn what compiler you are using and what version it is.
    3. Find a Graphic library that work with your compiler
    how to know i am using dev c++

  12. #42
    Registered User userxbw's Avatar
    Join Date
    Aug 2017
    Posts
    523
    You MiGhT want to try a different coding language. Visual Pascal might suit you it has graphics build in. Something called Lazarus and open Pascal it is free and runs on Windows and Linux, and it is relatively easy to install, and it is GUI as well as command line.

  13. #43
    Registered User
    Join Date
    Dec 2007
    Posts
    114
    slash7 with Amy Hoy >> Blog Archive >> Help Vampires: A Spotter’s Guide

    How do I know this? Because some mod with an astronomical god complex on the Arch Linux forums assumed I didn't just spend hours on google trying to look up my problem, and when he was vague and I asked for more info, he tossed that term at me.

  14. #44
    Registered User
    Join Date
    Oct 2017
    Posts
    29
    I want to do in c++

  15. #45
    Registered User
    Join Date
    Oct 2017
    Posts
    29
    How to start visual pascal i have run successfullyHow to make circle in C++?-vpascal-jpg simple pascal

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 08-09-2009, 02:39 PM
  2. Replies: 2
    Last Post: 07-08-2006, 04:42 PM
  3. Circle
    By rifatgunduz in forum C++ Programming
    Replies: 1
    Last Post: 01-26-2005, 03:56 PM
  4. Best way to draw circle!!??
    By OneStiffRod in forum Game Programming
    Replies: 12
    Last Post: 04-28-2003, 07:57 AM
  5. Circle in C
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 11-06-2001, 09:00 AM

Tags for this Thread