|
||||||||||||||||||
Add Forum to Favorites | Send Topic To a Friend | View Forum FAQ | Track this topic |
Last Thread Next Thread ![]() |
| Algorithmic Forays Part 5 |
|
![]() Madhed Member since: 6/13/2001 From: Berlin, Germany |
||||
|
|
||||
| Like always... good work :) nothing to add keep it up! |
||||
|
||||
![]() spur4444 Member since: 3/9/2004 From: Haifa, Holy Land |
||||
|
|
||||
| Thanks ! I'm a little worried about the "pace" of the articles which seems "killer" to me. I wonder if people with no previous experience in these topics manage to follow through... |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| string scanner::preprocess(string in) { string out=""; string::const_iterator c = in.begin(), up = c + 1; // in this loop c is the current char of in, up is the next one // for (; up != in.end(); ++c, ++up) { out.push_back(out,*c); if ((isalnum(*c) || *c == ')' || *c == '*' || *c == '?') && (*up != ')' && *up != '|' && *up != '*' && *up != '?')) out.append('.'); } // don't forget the last char ... // if (c != in.end()) out.push_back(*c); return out; } This function why doesnt it works?? it says u cant use push_back with the string out?? any ways out how could i change it ? |
||||
|
||||
All times are ET (US)![]() |
Last Thread Next Thread ![]() |
|