From: 7stud -- Date: 2009-04-27T12:39:39+09:00 Subject: Re: Deleting numbers in array 7stud -- wrote: > > if(str.find_first_of(bad_numbers) != string::npos) > return true; //found a bad number in str > else if(str.find("1") == string::npos) > return true; //found '1' in str Bad comment for the last line. It should be: > else if(str.find("1") == string::npos) > return true; //did not find a '1' in str -- Posted via http://www.ruby-forum.com/.