User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 456,571 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,609 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 2146 | Replies: 1
Reply
Join Date: Aug 2003
Posts: 1
Reputation: dejaqkl is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dejaqkl dejaqkl is offline Offline
Newbie Poster

capturing text

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2003
Location: deep withing 100100010100
Posts: 201
Reputation: camelNotation is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 1
camelNotation's Avatar
camelNotation camelNotation is offline Offline
Posting Whiz in Training

Re: capturing text

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C Forum

All times are GMT -4. The time now is 6:00 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC