All ASCII chracters generation

Discussion in 'C' started by shabbir, Oct 2, 2006.

  1. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,374
    Likes Received:
    388
    Trophy Points:
    83

    Introduction



    I always like smilies and the ASCII characters can behave like good smileys and so I wrote a small utility to get all tha ASCII values of the characters and I can easily add them anywhere I prefer

    The Code


    Code:
    int i;
    FILE *fp;
    fp = fopen("c:\\code.txt","w");
    for(i=0;i<256;i++)
    {
    	fprintf(fp,"%d\t%c\n",i,i);
    	printf("%d\t%c\n",i,i);
    }
    fclose(fp);
    
    Attachment contains the table of ASCII value to the corresponding characters.
     

    Attached Files:

  2. aisha.ansari84

    aisha.ansari84 New Member

    Joined:
    Feb 13, 2008
    Messages:
    82
    Likes Received:
    1
    Trophy Points:
    0
    i didnt get all the codes
     
  3. rahul.mca2001

    rahul.mca2001 New Member

    Joined:
    Feb 13, 2008
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    0

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice