Quick advice

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ineedhelp
    New Member
    • Dec 2006
    • 1

    Quick advice

    hi, im a noob on this site and on C++.

    how do i display a £ symbol in C++. can someone help me from scratch eg calling any libraries where to put the asci code etc... would much appriciate it!


    cheerz
  • seforo
    New Member
    • Nov 2006
    • 60

    #2
    Unfortunately I cound not find pound sign in ASCII, but to print say $, you can look at its octal value which is which is 044 then you can just write

    cout<<char(044) <<endl;

    Comment

    • willakawill
      Top Contributor
      • Oct 2006
      • 1646

      #3
      Originally posted by ineedhelp
      hi, im a noob on this site and on C++.

      how do i display a £ symbol in C++. can someone help me from scratch eg calling any libraries where to put the asci code etc... would much appriciate it!


      cheerz
      the £ symbol is the unicode character 163. You project needs to be set to UNICODE.

      Comment

      • sonic
        New Member
        • Nov 2006
        • 40

        #4
        Just curious, how do you set it to unicode. Is it:

        #include <unicode>

        Something like that?

        Comment

        • willakawill
          Top Contributor
          • Oct 2006
          • 1646

          #5
          Originally posted by sonic
          Just curious, how do you set it to unicode. Is it:

          #include <unicode>

          Something like that?
          It is part of the project preferences

          Comment

          Working...