help... urgent,... thanks!

This is a discussion on help... urgent,... thanks! within the C Programming forums, part of the General Programming Boards category; how to do celcius symbol in c??? the ascii code is 176 if i am not wrong.... but how ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    4

    Exclamation help... urgent,... thanks!

    how to do celcius symbol in c???
    the ascii code is 176 if i am not wrong....
    but how come i can't display it in output?
    It give me junk.

    int test=97;

    printf("%c", test);

    this 2 line will return me an "a" output.
    but when i substitude it with 176, how come it can't give me out the symbol that i want???
    It shld be but it give me junk....
    Urgent. Pls help. Thanks!

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    because the proper ascii code for it is 248
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    4
    thanks!

  4. #4
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    176 is the unicode for .


  5. #5
    Registered User
    Join Date
    Feb 2002
    Posts
    4
    thanks again!
    where u guys got the ascill chart?
    can i have it? thanks!

  6. #6
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Try a search online at google. This is common data...
    1978 Silver Anniversary Corvette

  7. #7
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    or, create an ascii to number converter. in asm it takes <100 bytes. here's the code in C:
    Code:
    main(){char c;scanf("%c",&c);printf("%d",c);}
    don't forget the #include
    just alter this code, put it in a for loop, and space it properly
    Last edited by ygfperson; 02-28-2002 at 09:20 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Urgent Help Needed In Writing Algorithm!!
    By Vikramnb in forum C++ Programming
    Replies: 1
    Last Post: 01-09-2009, 11:46 AM
  2. beginner plzz help urgent
    By sara101 in forum C Programming
    Replies: 11
    Last Post: 01-14-2007, 09:38 PM
  3. pls help me urgent..
    By intruder in forum C Programming
    Replies: 4
    Last Post: 01-13-2003, 03:41 AM
  4. Help Needed: Borland C++ 5.5 Installation - URGENT!
    By Linette in forum C++ Programming
    Replies: 12
    Last Post: 03-09-2002, 05:44 PM
  5. Help.... Urgent... Thanks!
    By weihann in forum C Programming
    Replies: 0
    Last Post: 02-27-2002, 09:15 PM

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