Computer Chess Club Archives


Search

Terms

Messages

Subject: Problem with C++ while supporting PGN i/o

Author: James Robertson

Date: 20:50:28 10/17/98


Help!!!
I have a problem I cannot seem to get over! With this piece of code:

char c;
ifstream ifs;
ifs.open(fileName, ios::in);

c = ifs.get();
while (!ifs.eof()) {
    switch (c) {
    case '{':
       doStuff();
       break;
    default:
       break;

}



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.