September 25th, 2012, 09:19 PM
First, why do you need to read character by character? That is very slow. Read in an entire line and process the characters as you see fit.
The following code works correctly:
...
September 25th, 2012, 08:55 PM
So you're saying the problem is with the get() function??
What are "rough digits"?
This shouldn't be hard -- open your input file in a hex editor (not a text editor, a hex editor). Look at the...
September 25th, 2012, 08:51 PM
Where are the files? All I see are images.
Regards,
Paul McKenzie
September 25th, 2012, 08:24 PM
Also, the correct while() loop would be this:
while ( ! inputfile.eof() && i < 50 ) Your other while loop() would fail miserably if the file has less than 30 characters.,
Regards,
Paul...
September 25th, 2012, 08:16 PM
Forget about the file for a moment. What is the value of array[i]? Is it the correct value? If so, then the next questions should concern the file, otherwise please confirm what the value of...
September 25th, 2012, 07:32 PM
If your file has more than 50 characters, your program corrupts memory.
wchar_t arry[50];
//...
int i=0;
while ( ! inputfile.eof() )
{
arry[i] = inputfile.get();