The following code doesn't appear to run correctly compiled with Visual
C++ 6.0. I haven't gotten a chance to try this in GCC yet. "A" is
never output, not even on the first iteration. I have heard of
something called a stacking error, could someone please explain this to
me?
while(infile>>c){
cout << "A";
while(flag){
cout << "B";
if(isalpha(c)){
total++;
} else {
flag=false;
}
}
words++;
flag=true;
}