2015年3月29日星期日

Search String from a file

1. If you have never used regular expression, try regular expression now. It can improve your work efficiency. Take searching string from a stringstream as an example.













Then, test it.













The result shows on the console.








Change istream to ifstream to easily find matched strings in a file.

没有评论:

发表评论