Author: James Robertson
Date: 20:56:38 10/17/98
Go up one level in this thread
Oops. It posted it before I was done. Anyway:
Help!!!
I have a problem I cannot seem to get over! 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;
}
c = ifs.get();
}
works great if I am trying to do something with, say
case '1': or
case '[':
however, it does not register when I try to detect '{'
It simply skims right on past as if the character had come from the moon. I am
using VC++ 5.0....... Can any one help!??
Thanks!!
James
mr. dud, the inkompetent programming addict :)
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.