ascii frequency array

This is a discussion on ascii frequency array within the C++ Programming forums, part of the General Programming Boards category; i wanna go through a file and increment each character with its ascii equivelent while going thru it Code: while ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    162

    ascii frequency array

    i wanna go through a file and increment each character with its ascii equivelent while going thru it

    Code:
    while (!File.eof())
    {
         ascii[??]++;
    }
    any help?

    edit: nmevermind...alittle using of the brain figured it out

    Code:
    ascii[(int) ch]++;
    Last edited by Jamsan; 03-26-2003 at 11:57 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Have problems with copying my array!
    By AvaGodess in forum C Programming
    Replies: 11
    Last Post: 09-25-2008, 01:56 AM
  2. Replies: 11
    Last Post: 03-24-2006, 11:26 AM
  3. Template Array Class
    By hpy_gilmore8 in forum C++ Programming
    Replies: 15
    Last Post: 04-12-2004, 12:15 AM
  4. two dimensional dynamic array?
    By ichijoji in forum C++ Programming
    Replies: 6
    Last Post: 04-14-2003, 05:27 PM
  5. Sort indexes of frequency array?
    By davidol in forum C++ Programming
    Replies: 2
    Last Post: 06-03-2002, 10:04 AM

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