need help : Symbol probem in graphics

This is a discussion on need help : Symbol probem in graphics within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by Elysia What is with the whole / is an escape character? \ is the escape character. Yeah ...

  1. #16
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Quote Originally Posted by Elysia View Post
    What is with the whole / is an escape character? \ is the escape character.
    Yeah you're right.

  2. #17
    Registered User
    Join Date
    Oct 2008
    Posts
    11
    Dear i need help outtextxy when use it number not appear on pc dual core 2 and geforce 8400
    And need new version of c++

  3. #18
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    That seems seriously unlikely. Could you perhaps post the code that you are having problems with (if it's large, then make a small standalone example).

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #19
    Registered User
    Join Date
    Oct 2008
    Posts
    11
    for example
    Code:
    #include<graphics.h>
    #include<stdlib.h>
    #include<stdio.h>
    #include<conio.h>
    #include<dos.h>
    void main(){
    int gd=0,gm,i=0;
    initgraph(&gd,&gm,"");
    for(i=0;i<=200;i=i+2)
    {clrscr();
    //arc(300,680,60,120,500);
    line(30,230,480,230);
    rectangle(500,150,506,230);
    ellipse(503,100,0,360,15,50);
    rectangle(540,165,546,245);
    ellipse(543,115,0,360,15,50);
    line(100+i,100,100+i,150);
    moveto(100+i,150);
    lineto(50+i,150);
    lineto(50+i,200);
    lineto(150+i,200);
    lineto(150+i,100);
    lineto(100+i,100);
    rectangle(110+i,110,140+i,140);
    circle(100+i,210,20);
    putpixel(100+i,210,15);
    line(150+i,155,190+i,155);
    moveto(275+i,105);
    line(175+i,105,275+i,105);
    lineto(250+i,195);
    lineto(200+i,195);
    lineto(175+i,105);
    circle(225+i,210,20);
    putpixel(225+i,210,15);
    outtextxy(200+i,115,"Here/Problem");
    delay(150);}
    getch();
    closegraph();
    }

  5. #20
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,012
    graphics.h is not provided as part of Visual C++ 2005 Express Edition. It is an old Borland library that provided graphics in MS-DOS applications. If you want examples you'll need Turbo C and Borland C++ information.
    So get on with the times!
    Scrap Borland & Turbo C(++) and scrap graphics.h.
    What exactly do you want to do?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #21
    Registered User
    Join Date
    Oct 2008
    Posts
    11
    I feel like iam in infinity loop i ask for solve this issue i run this on v3.1 its ok just the outtextxy not print the symble / or any number
    Please need help

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  3. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  4. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM
  5. <list>
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-24-2002, 04:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21