Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Custom Longest Common Substring which includes a number fails whenword appears before number

Reply
Thread Tools

Custom Longest Common Substring which includes a number fails whenword appears before number

 
 
Alec Taylor
Guest
Posts: n/a
 
      11-14-2011
Good morning,

Unfortunately my Custom Longest Common Substring function which includes a number failed when a word appears before the number.

This one works: http://ideone.com/SSoTe

This one fails: http://ideone.com/9xkB5

The second should have the same output as the first.

Can you point out the bug in my code?

Thanks for all suggestions,

Alec Taylor
 
Reply With Quote
 
 
 
 
Alec Taylor
Guest
Posts: n/a
 
      11-14-2011
Okay, got it to work.

http://ideone.com/9xkB5
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
My Custom Longest Common Substring which searches for a pattern failson certain strings Alec Taylor C++ 1 11-14-2011 06:07 PM
[SUMMARY] Longest Repeated Substring (#153) Ruby Quiz Ruby 0 01-24-2008 04:11 PM
[QUIZ] Longest Repeated Substring (#153) Ruby Quiz Ruby 52 01-23-2008 03:05 PM
longest common substring Henry Townsend Perl Misc 4 11-02-2006 02:24 PM
Longest Sites Name With Worlds Longest Stuffs... Vijay Murthy Computer Information 0 02-04-2006 09:57 AM



Advertisments