Abbottsburg o34078e6.tif http://www.archive.org/download/usgs_drg_nc_34078_e6/o34078e6.tif Acme o34078c2.tif http://www.archive.org/download/usgs_drg_nc_34078_c2/o34078c2.tif |
Abbottsburg e6.tif //www.archive.org/download/usgs_drg_nc_34078_e6/o34078e6.tif me 4078c2.tif ttp://www.archive.org/download/usgs_drg_nc_34078_c2/o34078c2.tif |
|
|
|
|
|
|
C:\Documents and Settings\HP_Administrator\Desktop\C++ Map Renamer>"Map Renamer. exe" badbit is false failbit is false Line Number: 1 Abbottsburg Now at pos: 19 badbit is false failbit is false Line Number: 2 e6.tif Now at pos: 32 badbit is false failbit is false Line Number: 3 //www.archive.org/download/usgs_drg_nc_34078_e6/o34078e6.tif Now at pos: 98 badbit is false failbit is false Line Number: 4 me Now at pos: 104 badbit is false failbit is false Line Number: 5 4078c2.tif Now at pos: 117 badbit is false failbit is false Line Number: 6 ttp://www.archive.org/download/usgs_drg_nc_34078_c2/o34078c2.tif Now at pos: 183 badbit is false failbit is false Line Number: 7 Now at pos: -1 badbit is false failbit is true |
Line Number: 1 Abbottsburg Now at pos: 13 Line Number: 2 o34078e6.tif Now at pos: 27 Line Number: 3 http://www.archive.org/download/usgs_drg_nc_34078_e6/o34078e6.tif Now at pos: 94 Line Number: 4 Now at pos: 96 Line Number: 5 Acme Now at pos: 102 Line Number: 6 o34078c2.tif Now at pos: 116 Line Number: 7 http://www.archive.org/download/usgs_drg_nc_34078_c2/o34078c2.tif Now at pos: 181 |
int main()
because you don't in both programs...
int main()
???ifstream MasterListStream (MasterList, ios::binary);
Do you have the opening bracket after the int main() ??? |
const char* MasterList = "OutputFile.txt";
|
|
|
|
It is a known bug with GCC. You cannot use ::getline() and tellg() together. (I suspect it is because the getline() function tries to be sneaky and reads a whole bunch of characters at once instead of one at a time...) In any case, it is one of those things still broken with GCC. The answer is: don't use tellg() with ::getline(). (Sorry.) |
2. Lines 15 and 17. Don't use .eof() to terminate a file-read loop. If something goes wrong, you'll get an infinite loop. There is no reason to separate everything. Use .good() instead (either explicitly or implicitly) and check why the loop terminated after it terminates. |
3. You aren't saving yourself any memory to use a string * over a plain old string. More on this in your other thread. |
Are there are other more stable, free compilers that are out there? |
I just thought that I had to do things that way... |
Open Watcom's standard template library is a work in progress and is currently incomplete. Specifically the IOStreams operators for strings have not yet been implemented. |