C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 24th, 2005, 10:09 PM
madnaveen madnaveen is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 2 madnaveen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 45 sec
Reputation Power: 0
Parsing an input string

Hello,
I want to do the following
1. given an input string say "aaababcac."
2. i want to parse it into phrases like a,aa,b,ab,c,ac
3. basically i wan to parse the entire string to check if a character is already present in the dictionary or not.
4. if not present, the character becomes the phrase; if present it checks for a combination of this character and the next to see if that combination exists and so on

i would like to implement it in c but am not able to do it successfully. can you suggest how to go about it. the algorithm is simple but how to implement it

thanks
naveen

Reply With Quote
  #2  
Old September 25th, 2005, 06:07 AM
madnaveen madnaveen is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 2 madnaveen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 45 sec
Reputation Power: 0
Please ignore

hello,
please ignore the original thread. I have successfully implemented it. There was a small bug which i could not figure out before i posted the problem. Its now solved and thanks for your time

Naveen

Quote:
Originally Posted by madnaveen
Hello,
I want to do the following
1. given an input string say "aaababcac."
2. i want to parse it into phrases like a,aa,b,ab,c,ac
3. basically i wan to parse the entire string to check if a character is already present in the dictionary or not.
4. if not present, the character becomes the phrase; if present it checks for a combination of this character and the next to see if that combination exists and so on

i would like to implement it in c but am not able to do it successfully. can you suggest how to go about it. the algorithm is simple but how to implement it

thanks
naveen

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Parsing an input string


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway