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 :)

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.