capturing text

Reply

Join Date: Aug 2003
Posts: 1
Reputation: dejaqkl is an unknown quantity at this point 
Solved Threads: 0
dejaqkl dejaqkl is offline Offline
Newbie Poster

capturing text

 
0
  #1
Aug 26th, 2003
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2003
Posts: 208
Reputation: camelNotation is an unknown quantity at this point 
Solved Threads: 2
camelNotation's Avatar
camelNotation camelNotation is offline Offline
Posting Whiz in Training

Re: capturing text

 
0
  #2
Sep 12th, 2003
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC