need urgent help for string processing 
Author Message
 need urgent help for string processing

                  Hi: I need your help to solve a c program

                   Question:

                   If we have to write certain tags in an HTML page
                  multiple times, it may be easier to define a
                  constant once and replace it (much
                   like the #define in C). For example, if I have to
                  add a hyperlink to http://www.*-*-*.com/ . I could
                  type:
                    http://www.*-*-*.com/

                   which will show up as http://www.*-*-*.com/
                  web browser. I would prefer to do the following.
                    #define LINK(string)
                  http://www.*-*-*.com/
                    . . .
                    LINK(people)<br>
                    LINK(courses)<br>

                   so that I can use it more than one times. My
                  program will do the preprocessing before I put the
                  page on the web. The output
                   of the file should look somthing like.
                    . . .
                    http://www.*-*-*.com/ ;br>
                    http://www.*-*-*.com/ ;br>

                   The link is just one examples. There are as much
                  as 10 defines. fopen function cannot be used, the
                  unix command line will read input file and give
                  outputfile.
                   Thank you very much.



Mon, 18 Mar 2002 03:00:00 GMT  
 need urgent help for string processing

Go to http://www.engelschall.com/sw/wml

it is the answer for creating html (for programmers)

Quote:

>                  Hi: I need your help to solve a c program

>                    Question:

>                    If we have to write certain tags in an HTML page
>                   multiple times, it may be easier to define a
>                   constant once and replace it (much
>                    like the #define in C). For example, if I have to
>                   add a hyperlink to http://www.yahoo.com. I could
>                   type:
>                    http://www.yahoo.com/

>                    which will show up as http://www.yahoo.com/ on a
>                   web browser. I would prefer to do the following.
>                     #define LINK(string)
>                  http://www.yahoo.com/string
>                     . . .
>                     LINK(people)<br>
>                     LINK(courses)<br>

>                    so that I can use it more than one times. My
>                   program will do the preprocessing before I put the
>                   page on the web. The output
>                    of the file should look somthing like.
>                     . . .
>                    http://www.yahoo.com/people <br>
>                    http://www.yahoo.com/courses <br>

>                    The link is just one examples. There are as much
>                   as 10 defines. fopen function cannot be used, the
>                   unix command line will read input file and give
>                   outputfile.
>                    Thank you very much.



Sun, 24 Mar 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. need urgent help for string processing

2. Help needed with process class......kind of urgent

3. string too big, urgent help needed !

4. URGENT URGENT dlopen() help needed...

5. C program string processing - Extreme Urgent !!!!!!

6. newbie needs help to strings, strings, strings

7. Urgent Help Needed-Calling the help file.

8. URGENT HELP in declaring arrays of strings

9. URGENT HELP with a simple problem: reading file into string

10. HELP (URGENT) STRING INPUT TO FLEX TO AVOID FILE I/O

11. Urgent Need help

12. Need Urgent Help::::: Printer

 

 
Powered by phpBB® Forum Software