943,469 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 2778
  • C RSS
Aug 26th, 2003
0

capturing text

Expand Post »
heya guys I mud and I use a client that is not all that powerful I'm new to c+ but have spent the last 2 weeks reading hard on it, I'm trying to write a few scripts and my client doesnt have all the necesary commands heres what I need in c+

need a formula for where i get a repeated word in a string ie

somewhere-
somewhere-
somewhere-
somewhere-

now what i want to do is replace somewhere with
1-
2-
3-
4-
whats the fomula to do this?

also I want to capture certain line of text (room names) these room names always end with [obvious exits] 1 line directly below, any ideas how to do this?

hope to get some feed back thanks for reading
Last edited by dejaqkl; Aug 26th, 2003 at 10:29 pm.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dejaqkl is offline Offline
1 posts
since Aug 2003
Sep 12th, 2003
0

Re: capturing text

I'm not sure about your question! Are those variables or constants?
enum (something that makes sense without the brackets) { somewhere=1,somewhere=2,somewhere=3,somewhere=4}---constants
and maybe u can use the typedef keyword for using one word as a synonym but u want them to be replaced by numbers so it's better to use const.
Reputation Points: 16
Solved Threads: 2
Posting Whiz in Training
camelNotation is offline Offline
208 posts
since Sep 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: ATL Web Service
Next Thread in C Forum Timeline: file input and output





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC