1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

All ASCII chracters generation

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

  1. shabbir

    shabbir Administrator Staff Member

    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

    i didnt get all the codes
     
  3. rahul.mca2001

    rahul.mca2001 New Member

    i works fine
     

Share This Page