Thread: Creating a point

  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    25

    Question Creating a point

    I am brand new at C++ so please be patiant.

    How do you draw simple point on the screen?

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    25
    I've tried that but I always get an error saying

    undeclared (first use this function).

  4. #4
    Registered User
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    267
    I am brand new at C++
    If that's the case, then you shouldn't be worrying about any of this graphical stuff

    undeclared (first use this function).
    you need to include windows.h

    OS: Windows 7, XUbuntu 11.10, Arch Linux
    IDE: CodeBlocks
    Compiler: GCC

  5. #5
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    There is no standard way to draw a pixel on the screen in C++. You will need a graphics API or library for that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why not use an = Operator instead of a Copy Constructor?
    By thetinman in forum C++ Programming
    Replies: 48
    Last Post: 10-15-2007, 03:58 PM
  2. const Point& and const Point are same
    By noobcpp in forum C++ Programming
    Replies: 5
    Last Post: 06-30-2007, 01:39 AM
  3. Point passed rectangle...
    By Hunter2 in forum Game Programming
    Replies: 15
    Last Post: 10-10-2003, 09:57 AM
  4. observing whether a point is in a triangle???
    By hebele in forum C++ Programming
    Replies: 1
    Last Post: 05-19-2003, 03:38 PM