A teljes C++ program
enum status {norm, abnorm};
void read(status& sa, string& da);
sx = x.eof() ? abnorm : norm;
while(sx==norm && (dx==' ' || dx=='\n')){
sx = x.eof() ? abnorm : norm;
void A::read(status& sa, string& da)
while(sx==norm && dx!=' ' && dx!='\n'){
sx = x.eof() ? abnorm : norm;
while(sx==norm && (dx==' ' || dx=='\n')){
sx = x.eof() ? abnorm : norm;
int main(int argc, char *argv[])