i wanna go through a file and increment each character with its ascii equivelent while going thru it
any help?Code:while (!File.eof()) { ascii[??]++; }
edit: nmevermind...alittle using of the brain figured it out
Code:ascii[(int) ch]++;
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 ...
i wanna go through a file and increment each character with its ascii equivelent while going thru it
any help?Code:while (!File.eof()) { ascii[??]++; }
edit: nmevermind...alittle using of the brain figured it out
Code:ascii[(int) ch]++;
Last edited by Jamsan; 03-26-2003 at 10:57 AM.