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; Dears kindly need your help I wrote program all thing oK BUT i use outtext and when I use symble ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    11

    need help : Symbol probem in graphics

    Dears
    kindly need your help I wrote program all thing oK BUT i use outtext and when I use symble like ? / and letter it not display the symble and display thing not readed can any one help me
    note that in my PC CPU Core duo 2 not ok
    but in another PC CPU Core duo 1 work

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    / is the escape character for character and string literals.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,489
    > kindly need your help I wrote program all thing oK BUT i use outtext
    Ooh, lemme guess - Turbo C right?

    > note that in my PC CPU Core duo 2 not ok
    > but in another PC CPU Core duo 1 work
    Fantastic. Of the Gigabytes of memory, and multiple processors, you've managed to reduce it to a single processor with 640K of memory.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User
    Join Date
    Oct 2008
    Posts
    11
    Dears
    When use graphics and outtext symble and number did not display as it
    Please help me i try it on another pc it work

  5. #5
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,538
    Update your compiler to a modern one.
    http://cpwiki.sf.net/IDE
    And \ is the escape symbol...
    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. #6
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Ok... lets try a different approach to explaining what tabstop said. '\' tells your compiler that you are going to use a special character. Thus if you wish to use the '\' character you must type '\\' to let the compiler know you are not trying to use a special type of character known as an escape character. For example \n or \t are escape characters (newline and tab, respectively).

  7. #7
    Registered User
    Join Date
    Oct 2008
    Posts
    11
    i mean in outtext i know / and // what mean

    outtextxy(200,115,"TEST/TEST12");

    here / or any number like 12 not appear when i run
    i use Borland C++v3.1

  8. #8
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,538
    Borland C++ 3.1 is old, so upgrade to a modern compiler.
    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.

  9. #9
    Registered User
    Join Date
    Oct 2008
    Posts
    11
    I try c++ 4.5 it same problem where can i found last verision if you think it will solve problem

  10. #10
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    outtextxy(200,115,"TEST/Twhich is an unknown characterEST12");

  11. #11
    Registered User
    Join Date
    Oct 2008
    Posts
    11
    Any symble or number

  12. #12
    Registered User
    Join Date
    Oct 2008
    Posts
    11
    Any symble or number not appear

  13. #13
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,538
    Screw Borland and get a real IDE & compiler.
    Once again, the link: http://cpwiki.sf.net/IDE
    What is with the whole / is an escape character? \ is the escape character.
    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.

  14. #14
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    outtextxy(200,115,"TEST/TEST12");

    Means on line 115th, in the 200th spot write out "TEST/TEST12" Unlike:

    outtextxy(200,115,"TEST\TEST12");

    Which will write "TEST EST12" in the same position.

  15. #15
    Registered User
    Join Date
    Oct 2008
    Posts
    11
    Yes put / and 12 appear like rapish

Page 1 of 2 12 LastLast
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, 02:07 AM
  2. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 01:28 PM
  3. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 04:44 PM
  4. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 04:27 AM
  5. <list>
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-24-2002, 03:07 PM

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